From 854296634a449153fa47256a57f6427da3c74c6a Mon Sep 17 00:00:00 2001 From: William Cheng Date: Fri, 26 Mar 2021 18:21:59 +0800 Subject: [PATCH 01/32] better logging (#9090) --- .../codegen/languages/AbstractDartCodegen.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java index 8f892b7b17..3ec1928bcc 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java @@ -385,14 +385,14 @@ public abstract class AbstractDartCodegen extends DefaultCodegen { // model name cannot use reserved keyword, e.g. return if (isReservedWord(camelizedName)) { final String modelName = "Model" + camelizedName; - LOGGER.warn(camelizedName + " (reserved word) cannot be used as model name. Renamed to " + modelName); + LOGGER.warn("{} (reserved word) cannot be used as model name. Renamed to {}", camelizedName, modelName); return modelName; } // model name starts with number if (camelizedName.matches("^\\d.*")) { final String modelName = "Model" + camelizedName; // e.g. 200Response => Model200Response (after camelize) - LOGGER.warn(name + " (model name starts with number) cannot be used as model name. Renamed to " + modelName); + LOGGER.warn("{} (model name starts with number) cannot be used as model name. Renamed to {}", name, modelName); return modelName; } @@ -471,7 +471,7 @@ public abstract class AbstractDartCodegen extends DefaultCodegen { public String getSchemaType(Schema p) { String openAPIType = super.getSchemaType(p); if (openAPIType == null) { - LOGGER.error("No Type defined for Schema " + p); + LOGGER.error("No Type defined for Schema {}", p); } if (typeMapping.containsKey(openAPIType)) { return typeMapping.get(openAPIType); @@ -601,13 +601,13 @@ public abstract class AbstractDartCodegen extends DefaultCodegen { // method name cannot use reserved keyword, e.g. return if (isReservedWord(operationId)) { String newOperationId = camelize("call_" + operationId, true); - LOGGER.warn(operationId + " (reserved word) cannot be used as method name. Renamed to " + newOperationId); + LOGGER.warn("{} (reserved word) cannot be used as method name. Renamed to {}", operationId, newOperationId); return newOperationId; } // operationId starts with a number if (operationId.matches("^\\d.*")) { - LOGGER.warn(operationId + " (starting with a number) cannot be used as method name. Renamed to " + camelize("call_" + operationId), true); + LOGGER.warn("{} (starting with a number) cannot be used as method name. Renamed to {}", operationId, camelize("call_" + operationId), true); operationId = camelize("call_" + operationId, true); } From 5abf020be31669396fbb36ff9696d4006444b2fb Mon Sep 17 00:00:00 2001 From: William Cheng Date: Fri, 26 Mar 2021 21:41:24 +0800 Subject: [PATCH 02/32] use interrupted exception instead of just exception (#9092) --- .../openapitools/codegen/languages/AbstractDartCodegen.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java index 3ec1928bcc..6f320377c5 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractDartCodegen.java @@ -685,8 +685,10 @@ public abstract class AbstractDartCodegen extends DefaultCodegen { } else { LOGGER.info("Successfully executed: {}", command); } - } catch (Exception e) { + } catch (InterruptedException | IOException e) { LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage()); + // Restore interrupted state + Thread.currentThread().interrupt(); } } } From 7e6ce69c6437244cb0c0e68ea669553dc7615e4e Mon Sep 17 00:00:00 2001 From: leonluc-dev Date: Sat, 27 Mar 2021 02:56:37 +0100 Subject: [PATCH 03/32] [ASPNETCORE 3.x] Microsoft.AspNetCore.Authorization directive no longer requires useSwashbuckle condition (#8368) * Update controller.mustache Moved using directive for Microsoft.AspNetCore.Authorization outside of useSwashbuckle tag to prevent compilation errors with Authorize tag if Swashbuckle is disabled. * Updated aspnetcore-3.x samples --- .../src/main/resources/aspnetcore/3.0/controller.mustache | 2 +- .../aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs | 2 +- .../aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs | 2 +- .../aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs | 2 +- .../aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs | 1 + .../aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/aspnetcore/3.0/controller.mustache b/modules/openapi-generator/src/main/resources/aspnetcore/3.0/controller.mustache index 0ff9c36448..9de20cebc1 100644 --- a/modules/openapi-generator/src/main/resources/aspnetcore/3.0/controller.mustache +++ b/modules/openapi-generator/src/main/resources/aspnetcore/3.0/controller.mustache @@ -5,11 +5,11 @@ using System.ComponentModel.DataAnnotations; {{#operationResultTask}} using System.Threading.Tasks; {{/operationResultTask}} +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; {{#useSwashbuckle}} using Swashbuckle.AspNetCore.Annotations; -using Microsoft.AspNetCore.Authorization; using Swashbuckle.AspNetCore.SwaggerGen; {{/useSwashbuckle}} {{^isLibrary}} 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 ed7095c238..d58ff968d3 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 @@ -11,10 +11,10 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Swashbuckle.AspNetCore.Annotations; -using Microsoft.AspNetCore.Authorization; using Swashbuckle.AspNetCore.SwaggerGen; using Newtonsoft.Json; using Org.OpenAPITools.Attributes; 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 fca782c4b3..79c62f5c67 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 @@ -11,10 +11,10 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Swashbuckle.AspNetCore.Annotations; -using Microsoft.AspNetCore.Authorization; using Swashbuckle.AspNetCore.SwaggerGen; using Newtonsoft.Json; using Org.OpenAPITools.Attributes; 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 2047b00644..17fdac817a 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 @@ -11,10 +11,10 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Swashbuckle.AspNetCore.Annotations; -using Microsoft.AspNetCore.Authorization; using Swashbuckle.AspNetCore.SwaggerGen; using Newtonsoft.Json; using Org.OpenAPITools.Attributes; 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 ed7095c238..d58ff968d3 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 @@ -11,10 +11,10 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Swashbuckle.AspNetCore.Annotations; -using Microsoft.AspNetCore.Authorization; using Swashbuckle.AspNetCore.SwaggerGen; using Newtonsoft.Json; using Org.OpenAPITools.Attributes; 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 fca782c4b3..3f14f179ef 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 @@ -11,6 +11,7 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Swashbuckle.AspNetCore.Annotations; 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 2047b00644..17fdac817a 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 @@ -11,10 +11,10 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Swashbuckle.AspNetCore.Annotations; -using Microsoft.AspNetCore.Authorization; using Swashbuckle.AspNetCore.SwaggerGen; using Newtonsoft.Json; using Org.OpenAPITools.Attributes; From 764d7f3035773e978b7a1b22e342a325e295218a Mon Sep 17 00:00:00 2001 From: sullis Date: Fri, 26 Mar 2021 18:57:23 -0700 Subject: [PATCH 04/32] maven-jar-plugin 3.2.0 (#8248) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 798f04ac10..c1365e6aee 100644 --- a/pom.xml +++ b/pom.xml @@ -271,7 +271,7 @@ org.apache.maven.plugins maven-jar-plugin - 3.1.0 + 3.2.0 From 25256398753011d152ac2992d37f8dca77699697 Mon Sep 17 00:00:00 2001 From: avbenavides <62693723+avbenavides@users.noreply.github.com> Date: Sat, 27 Mar 2021 02:59:53 +0100 Subject: [PATCH 05/32] Update client.mustache (#8970) Bash Client Escapes parameters with a 't' to %09 and leaves tabs unescaped Fixes https://github.com/OpenAPITools/openapi-generator/issues/7303 --- .../openapi-generator/src/main/resources/bash/client.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/bash/client.mustache b/modules/openapi-generator/src/main/resources/bash/client.mustache index 4fd8231494..ff63a39c60 100644 --- a/modules/openapi-generator/src/main/resources/bash/client.mustache +++ b/modules/openapi-generator/src/main/resources/bash/client.mustache @@ -245,7 +245,7 @@ url_escape() { -e 's/(/%28/g' \ -e 's/)/%29/g' \ -e 's/:/%3A/g' \ - -e 's/\t/%09/g' \ + -e 's/\\t/%09/g' \ -e 's/?/%3F/g' <<<"$raw_url"); echo "$value" From 38b49e77af1aab18ab31fe000f5ecdbac926f76f Mon Sep 17 00:00:00 2001 From: tomred-net Date: Sat, 27 Mar 2021 15:01:39 +1300 Subject: [PATCH 06/32] fix #8755 [BUG] Java (jersey2) ApiClient debug cannot be enabled (#8756) * fix #8755 [BUG] Java (jersey2) ApiClient debug cannot be enabled * fix #8755 updating samples --- .../resources/Java/libraries/jersey2/ApiClient.mustache | 6 ++---- .../src/main/java/org/openapitools/client/ApiClient.java | 6 ++---- .../src/main/java/org/openapitools/client/ApiClient.java | 6 ++---- .../src/main/java/org/openapitools/client/ApiClient.java | 6 ++---- .../src/main/java/org/openapitools/client/ApiClient.java | 6 ++---- .../src/main/java/org/openapitools/client/ApiClient.java | 6 ++---- 6 files changed, 12 insertions(+), 24 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache index d12dec1bbd..65494e8ea0 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/ApiClient.mustache @@ -1229,10 +1229,8 @@ public class ApiClient{{#jsr310}} extends JavaTimeFormatter{{/jsr310}} { * @return Client */ protected Client buildHttpClient() { - // use the default client config if not yet initialized - if (clientConfig == null) { - clientConfig = getDefaultClientConfig(); - } + // recreate the client config to pickup changes + clientConfig = getDefaultClientConfig(); ClientBuilder clientBuilder = ClientBuilder.newBuilder(); customizeClientBuilder(clientBuilder); diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java index 4d67e498c9..32fedf9b73 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java @@ -1143,10 +1143,8 @@ public class ApiClient extends JavaTimeFormatter { * @return Client */ protected Client buildHttpClient() { - // use the default client config if not yet initialized - if (clientConfig == null) { - clientConfig = getDefaultClientConfig(); - } + // recreate the client config to pickup changes + clientConfig = getDefaultClientConfig(); ClientBuilder clientBuilder = ClientBuilder.newBuilder(); customizeClientBuilder(clientBuilder); diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java index 4d67e498c9..32fedf9b73 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java @@ -1143,10 +1143,8 @@ public class ApiClient extends JavaTimeFormatter { * @return Client */ protected Client buildHttpClient() { - // use the default client config if not yet initialized - if (clientConfig == null) { - clientConfig = getDefaultClientConfig(); - } + // recreate the client config to pickup changes + clientConfig = getDefaultClientConfig(); ClientBuilder clientBuilder = ClientBuilder.newBuilder(); customizeClientBuilder(clientBuilder); diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java index 5c32cf83c4..6162256fc1 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/openapi3/client/extensions/x-auth-id-alias/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java @@ -1063,10 +1063,8 @@ public class ApiClient extends JavaTimeFormatter { * @return Client */ protected Client buildHttpClient() { - // use the default client config if not yet initialized - if (clientConfig == null) { - clientConfig = getDefaultClientConfig(); - } + // recreate the client config to pickup changes + clientConfig = getDefaultClientConfig(); ClientBuilder clientBuilder = ClientBuilder.newBuilder(); customizeClientBuilder(clientBuilder); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ApiClient.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ApiClient.java index e595c16334..543f834a5d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/ApiClient.java @@ -1008,10 +1008,8 @@ public class ApiClient extends JavaTimeFormatter { * @return Client */ protected Client buildHttpClient() { - // use the default client config if not yet initialized - if (clientConfig == null) { - clientConfig = getDefaultClientConfig(); - } + // recreate the client config to pickup changes + clientConfig = getDefaultClientConfig(); ClientBuilder clientBuilder = ClientBuilder.newBuilder(); customizeClientBuilder(clientBuilder); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java index 3f5a66745b..266cd2c6d5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java @@ -1227,10 +1227,8 @@ public class ApiClient extends JavaTimeFormatter { * @return Client */ protected Client buildHttpClient() { - // use the default client config if not yet initialized - if (clientConfig == null) { - clientConfig = getDefaultClientConfig(); - } + // recreate the client config to pickup changes + clientConfig = getDefaultClientConfig(); ClientBuilder clientBuilder = ClientBuilder.newBuilder(); customizeClientBuilder(clientBuilder); From 8e7440e2949a95bf25884c962537b23707717799 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 27 Mar 2021 10:03:32 +0800 Subject: [PATCH 07/32] Update actions/cache requirement to v2.1.4 (#8780) Updates the requirements on [actions/cache](https://github.com/actions/cache) to permit the latest version. - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/commits/26968a09c0ea4f3e233fdddbafd1166051a095f6) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/check-supported-versions.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-supported-versions.yaml b/.github/workflows/check-supported-versions.yaml index 0279141bd8..1106efa52f 100644 --- a/.github/workflows/check-supported-versions.yaml +++ b/.github/workflows/check-supported-versions.yaml @@ -28,14 +28,14 @@ jobs: with: java-version: ${{ matrix.java }} - - uses: actions/cache@v1 + - uses: actions/cache@v2.1.4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('pom.xml', 'modules/**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - - uses: actions/cache@v2 + - uses: actions/cache@v2.1.4 with: path: | ~/.gradle/caches From a2401f71b0f975a478bd3770fb5c2395795ca079 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 27 Mar 2021 10:04:09 +0800 Subject: [PATCH 08/32] Bump actions/upload-artifact from v1 to v2.2.2 (#8782) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v1 to v2.2.2. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v1...e448a9b857ee2131e752b06002bf0e093c65e571) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/check-supported-versions.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-supported-versions.yaml b/.github/workflows/check-supported-versions.yaml index 1106efa52f..e92573a72b 100644 --- a/.github/workflows/check-supported-versions.yaml +++ b/.github/workflows/check-supported-versions.yaml @@ -49,7 +49,7 @@ jobs: run: mvn -nsu -B --quiet -Djacoco.skip=true -Dorg.slf4j.simpleLogger.defaultLogLevel=error --no-transfer-progress clean install --file pom.xml ${{ matrix.flags }} - name: Upload Maven build artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2.2.2 if: matrix.java == '8' && matrix.os == 'ubuntu-latest' with: name: artifact From 474df9dd5e347c6e69a7221ae1394ed68065afb2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 27 Mar 2021 10:04:20 +0800 Subject: [PATCH 09/32] Bump actions/download-artifact from v1 to v2.0.8 (#8781) Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from v1 to v2.0.8. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v1...4a7a711286f30c025902c28b541c10e147a9b843) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/check-supported-versions.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-supported-versions.yaml b/.github/workflows/check-supported-versions.yaml index e92573a72b..35c95b5b2a 100644 --- a/.github/workflows/check-supported-versions.yaml +++ b/.github/workflows/check-supported-versions.yaml @@ -80,7 +80,7 @@ jobs: - name: Check out code uses: actions/checkout@v2 - name: Download build artifact - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v2.0.8 with: name: artifact - name: Run Ensures Script From 3579094298be9829d098ee1eb55c5132befab068 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 27 Mar 2021 13:03:16 +0800 Subject: [PATCH 10/32] update samples --- .../aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs | 1 - .../aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs | 2 +- .../aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs | 2 +- .../aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) 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 3f14f179ef..79c62f5c67 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 @@ -15,7 +15,6 @@ using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Swashbuckle.AspNetCore.Annotations; -using Microsoft.AspNetCore.Authorization; using Swashbuckle.AspNetCore.SwaggerGen; using Newtonsoft.Json; using Org.OpenAPITools.Attributes; 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 828913b7c1..3162f82261 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 @@ -11,10 +11,10 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Swashbuckle.AspNetCore.Annotations; -using Microsoft.AspNetCore.Authorization; using Swashbuckle.AspNetCore.SwaggerGen; using Newtonsoft.Json; using Org.OpenAPITools.Attributes; 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 1b6184f555..431fccf190 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 @@ -11,10 +11,10 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Swashbuckle.AspNetCore.Annotations; -using Microsoft.AspNetCore.Authorization; using Swashbuckle.AspNetCore.SwaggerGen; using Newtonsoft.Json; using Org.OpenAPITools.Attributes; 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 041602ee2b..406c969ffb 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 @@ -11,10 +11,10 @@ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Http; using Swashbuckle.AspNetCore.Annotations; -using Microsoft.AspNetCore.Authorization; using Swashbuckle.AspNetCore.SwaggerGen; using Newtonsoft.Json; using Org.OpenAPITools.Attributes; From 23bc2aaf6b95bce55e5c3264065e2597eab2ea00 Mon Sep 17 00:00:00 2001 From: Jacob Burroughs Date: Sat, 27 Mar 2021 00:42:48 -0500 Subject: [PATCH 11/32] Enable useOneOfInterfaces for the ruby generator (#8061) Tested against https://ftc-events.firstinspires.org/swagger/v2.0/swagger.json Used to generate un-runnable code, now it works --- .../src/main/java/org/openapitools/codegen/DefaultCodegen.java | 2 ++ .../org/openapitools/codegen/languages/RubyClientCodegen.java | 1 + 2 files changed, 3 insertions(+) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java index 57e2605edc..0a908ec06b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -622,6 +622,7 @@ public class DefaultCodegen implements CodegenConfig { * * @param objs Map of models * @return maps of models with better enum support + * */ public Map postProcessModelsEnum(Map objs) { List models = (List) objs.get("models"); @@ -6473,6 +6474,7 @@ public class DefaultCodegen implements CodegenConfig { cm.classname = type; cm.vendorExtensions.put("x-is-one-of-interface", true); cm.interfaceModels = new ArrayList(); + cm.classFilename = toModelFilename(type); addOneOfInterfaces.add(cm); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java index 83b020f7b8..49fa4c4e4f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java @@ -92,6 +92,7 @@ public class RubyClientCodegen extends AbstractRubyCodegen { ); supportsInheritance = true; + useOneOfInterfaces = true; // clear import mapping (from default generator) as ruby does not use it // at the moment From e6f56626ede587547e2e65e9487ef6026da1fcb3 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 27 Mar 2021 13:43:31 +0800 Subject: [PATCH 12/32] Revert "Enable useOneOfInterfaces for the ruby generator (#8061)" (#9104) This reverts commit 23bc2aaf6b95bce55e5c3264065e2597eab2ea00. --- .../src/main/java/org/openapitools/codegen/DefaultCodegen.java | 2 -- .../org/openapitools/codegen/languages/RubyClientCodegen.java | 1 - 2 files changed, 3 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java index 0a908ec06b..57e2605edc 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -622,7 +622,6 @@ public class DefaultCodegen implements CodegenConfig { * * @param objs Map of models * @return maps of models with better enum support - * */ public Map postProcessModelsEnum(Map objs) { List models = (List) objs.get("models"); @@ -6474,7 +6473,6 @@ public class DefaultCodegen implements CodegenConfig { cm.classname = type; cm.vendorExtensions.put("x-is-one-of-interface", true); cm.interfaceModels = new ArrayList(); - cm.classFilename = toModelFilename(type); addOneOfInterfaces.add(cm); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java index 49fa4c4e4f..83b020f7b8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java @@ -92,7 +92,6 @@ public class RubyClientCodegen extends AbstractRubyCodegen { ); supportsInheritance = true; - useOneOfInterfaces = true; // clear import mapping (from default generator) as ruby does not use it // at the moment From fa624ef38c78c7ef9dc89807c9bade97067b3ed5 Mon Sep 17 00:00:00 2001 From: Phillip Verheyden Date: Sat, 27 Mar 2021 00:45:11 -0500 Subject: [PATCH 13/32] Use prepare script instead of prepack (#7807) Including the generated JS client library code as a git repository did not work when executing npm install. It complained about not being able to find 'babel'. Apparently when referencing a dependency from git, both prepare and prepack are executing to build the 'dist' directory, but prepack does will not include any devDependencies. Therefore we need to switch this to prepare instead. --- .../src/main/resources/Javascript/es6/package.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache b/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache index 53ee63d2bb..c59eff4b03 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/es6/package.mustache @@ -6,7 +6,7 @@ "main": "dist{{#invokerPackage}}/{{invokerPackage}}{{/invokerPackage}}/index.js", "scripts": { "build": "babel src -d dist", - "prepack": "npm run build", + "prepare": "npm run build", "test": "mocha --require @babel/register --recursive" }, "browser": { From 711ce5431a551d8978d2367cbd89c4a8065ffd83 Mon Sep 17 00:00:00 2001 From: Jakub Surdej Date: Sat, 27 Mar 2021 06:53:30 +0100 Subject: [PATCH 14/32] Add method allowing to apply middleware to request (#7403) Prepare custom auth function template to be optional one Rename auth function to middleware Move middleware execution below operations with context Generate samples for go Modify new line characters in template not to affect default one Generate samples with modified template --- .../src/main/resources/go/client.mustache | 7 +++++++ .../src/main/resources/go/configuration.mustache | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/go/client.mustache b/modules/openapi-generator/src/main/resources/go/client.mustache index 4649157dfd..a68fa9ee1d 100644 --- a/modules/openapi-generator/src/main/resources/go/client.mustache +++ b/modules/openapi-generator/src/main/resources/go/client.mustache @@ -389,6 +389,13 @@ func (c *APIClient) prepareRequest( for header, value := range c.cfg.DefaultHeader { localVarRequest.Header.Add(header, value) } +{{#withCustomMiddlewareFunction}} + + if c.cfg.Middleware != nil { + c.cfg.Middleware(localVarRequest) + } + +{{/withCustomMiddlewareFunction}} {{#hasHttpSignatureMethods}} if ctx != nil { // HTTP Signature Authentication. All request headers must be set (including default headers) diff --git a/modules/openapi-generator/src/main/resources/go/configuration.mustache b/modules/openapi-generator/src/main/resources/go/configuration.mustache index 35cea7c2b6..f33b012fc4 100644 --- a/modules/openapi-generator/src/main/resources/go/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/go/configuration.mustache @@ -93,6 +93,11 @@ type ServerConfiguration struct { // ServerConfigurations stores multiple ServerConfiguration items type ServerConfigurations []ServerConfiguration +{{#withCustomMiddlewareFunction}} +// MiddlewareFunction provides way to implement custom middleware +type MiddlewareFunction func(*http.Request) + +{{/withCustomMiddlewareFunction}} // Configuration stores the configuration of the API client type Configuration struct { Host string `json:"host,omitempty"` @@ -103,6 +108,9 @@ type Configuration struct { Servers ServerConfigurations OperationServers map[string]ServerConfigurations HTTPClient *http.Client + {{#withCustomMiddlewareFunction}} + Middleware MiddlewareFunction + {{/withCustomMiddlewareFunction}} } // NewConfiguration returns a new Configuration object From b1837693b1fa4420c49a34f40f5db91a70db15ad Mon Sep 17 00:00:00 2001 From: Prakhar Gupta Date: Sat, 27 Mar 2021 11:29:49 +0530 Subject: [PATCH 15/32] [JAVA][jaxrs-spec] Added custom methods to add/remove elements from Java Collections (#6468) --- .../resources/JavaJaxRS/spec/pojo.mustache | 40 ++- .../model/AdditionalPropertiesAnyType.java | 1 + .../model/AdditionalPropertiesArray.java | 1 + .../model/AdditionalPropertiesBoolean.java | 1 + .../model/AdditionalPropertiesClass.java | 169 +++++++++++- .../model/AdditionalPropertiesInteger.java | 1 + .../model/AdditionalPropertiesNumber.java | 1 + .../model/AdditionalPropertiesObject.java | 1 + .../model/AdditionalPropertiesString.java | 1 + .../java/org/openapitools/model/Animal.java | 5 +- .../model/ArrayOfArrayOfNumberOnly.java | 17 ++ .../openapitools/model/ArrayOfNumberOnly.java | 17 ++ .../org/openapitools/model/ArrayTest.java | 57 +++- .../java/org/openapitools/model/BigCat.java | 1 + .../org/openapitools/model/BigCatAllOf.java | 1 + .../openapitools/model/Capitalization.java | 21 +- .../gen/java/org/openapitools/model/Cat.java | 1 + .../java/org/openapitools/model/CatAllOf.java | 1 + .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 1 + .../java/org/openapitools/model/Client.java | 1 + .../gen/java/org/openapitools/model/Dog.java | 1 + .../java/org/openapitools/model/DogAllOf.java | 1 + .../org/openapitools/model/EnumArrays.java | 21 +- .../java/org/openapitools/model/EnumTest.java | 17 +- .../model/FileSchemaTestClass.java | 21 +- .../org/openapitools/model/FormatTest.java | 53 +++- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 77 +++++- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../openapitools/model/Model200Response.java | 5 +- .../openapitools/model/ModelApiResponse.java | 9 +- .../org/openapitools/model/ModelReturn.java | 1 + .../gen/java/org/openapitools/model/Name.java | 13 +- .../org/openapitools/model/NumberOnly.java | 1 + .../java/org/openapitools/model/Order.java | 21 +- .../openapitools/model/OuterComposite.java | 9 +- .../gen/java/org/openapitools/model/Pet.java | 53 +++- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 1 + .../gen/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 33 ++- .../openapitools/model/TypeHolderExample.java | 37 ++- .../gen/java/org/openapitools/model/User.java | 29 +- .../java/org/openapitools/model/XmlItem.java | 257 ++++++++++++++++-- .../api/FakeClassnameTags123Api.java | 32 --- .../model/AdditionalPropertiesAnyType.java | 1 + .../model/AdditionalPropertiesArray.java | 1 + .../model/AdditionalPropertiesBoolean.java | 1 + .../model/AdditionalPropertiesClass.java | 169 +++++++++++- .../model/AdditionalPropertiesInteger.java | 1 + .../model/AdditionalPropertiesNumber.java | 1 + .../model/AdditionalPropertiesObject.java | 1 + .../model/AdditionalPropertiesString.java | 1 + .../java/org/openapitools/model/Animal.java | 5 +- .../org/openapitools/model/AnimalFarm.java | 59 ---- .../model/ArrayOfArrayOfNumberOnly.java | 17 ++ .../openapitools/model/ArrayOfNumberOnly.java | 17 ++ .../org/openapitools/model/ArrayTest.java | 57 +++- .../java/org/openapitools/model/BigCat.java | 1 + .../org/openapitools/model/BigCatAllOf.java | 1 + .../openapitools/model/Capitalization.java | 21 +- .../gen/java/org/openapitools/model/Cat.java | 1 + .../java/org/openapitools/model/CatAllOf.java | 1 + .../java/org/openapitools/model/Category.java | 5 +- .../org/openapitools/model/ClassModel.java | 1 + .../java/org/openapitools/model/Client.java | 1 + .../gen/java/org/openapitools/model/Dog.java | 1 + .../java/org/openapitools/model/DogAllOf.java | 1 + .../org/openapitools/model/EnumArrays.java | 21 +- .../java/org/openapitools/model/EnumTest.java | 17 +- .../model/FileSchemaTestClass.java | 21 +- .../org/openapitools/model/FormatTest.java | 53 +++- .../openapitools/model/HasOnlyReadOnly.java | 5 +- .../java/org/openapitools/model/MapTest.java | 77 +++++- ...ropertiesAndAdditionalPropertiesClass.java | 25 +- .../openapitools/model/Model200Response.java | 5 +- .../openapitools/model/ModelApiResponse.java | 9 +- .../org/openapitools/model/ModelReturn.java | 1 + .../gen/java/org/openapitools/model/Name.java | 13 +- .../org/openapitools/model/NumberOnly.java | 1 + .../java/org/openapitools/model/Order.java | 21 +- .../openapitools/model/OuterComposite.java | 9 +- .../gen/java/org/openapitools/model/Pet.java | 53 +++- .../org/openapitools/model/ReadOnlyFirst.java | 5 +- .../openapitools/model/SpecialModelName.java | 1 + .../openapitools/model/StringBooleanMap.java | 58 ---- .../gen/java/org/openapitools/model/Tag.java | 5 +- .../openapitools/model/TypeHolderDefault.java | 33 ++- .../openapitools/model/TypeHolderExample.java | 37 ++- .../gen/java/org/openapitools/model/User.java | 29 +- .../java/org/openapitools/model/XmlItem.java | 257 ++++++++++++++++-- 92 files changed, 1831 insertions(+), 366 deletions(-) delete mode 100644 samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java delete mode 100644 samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AnimalFarm.java delete mode 100644 samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/StringBooleanMap.java diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache index 91c23b9635..90430584ba 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache @@ -49,7 +49,45 @@ import com.fasterxml.jackson.annotation.JsonValue; public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { this.{{name}} = {{name}}; - }{{/vars}} + } + + {{#isListContainer}} + public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) { + if (this.{{name}} == null) { + this.{{name}} = {{{defaultValue}}}; + } + + this.{{name}}.add({{name}}Item); + return this; + } + + public {{classname}} remove{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) { + if ({{name}}Item != null && this.{{name}} != null) { + this.{{name}}.remove({{name}}Item); + } + + return this; + } + {{/isListContainer}} + {{#isMapContainer}} + public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) { + if (this.{{name}} == null) { + this.{{name}} = {{{defaultValue}}}; + } + + this.{{name}}.put(key, {{name}}Item); + return this; + } + + public {{classname}} remove{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) { + if ({{name}}Item != null && this.{{name}} != null) { + this.{{name}}.remove({{name}}Item); + } + + return this; + } + {{/isMapContainer}} + {{/vars}} @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index f252198844..6b9dcfa1ac 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 7cc3e60997..1b504c15f4 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -41,6 +41,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 172c5f42da..d842728a18 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index b646cfb0b0..e745b6846a 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -50,7 +50,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapString(Map mapString) { this.mapString = mapString; - }/** + } + + public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) { + if (this.mapString == null) { + this.mapString = new HashMap(); + } + + this.mapString.put(key, mapStringItem); + return this; + } + + public AdditionalPropertiesClass removeMapStringItem(String mapStringItem) { + if (mapStringItem != null && this.mapString != null) { + this.mapString.remove(mapStringItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapNumber(Map mapNumber) { this.mapNumber = mapNumber; @@ -68,7 +86,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; - }/** + } + + public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) { + if (this.mapNumber == null) { + this.mapNumber = new HashMap(); + } + + this.mapNumber.put(key, mapNumberItem); + return this; + } + + public AdditionalPropertiesClass removeMapNumberItem(BigDecimal mapNumberItem) { + if (mapNumberItem != null && this.mapNumber != null) { + this.mapNumber.remove(mapNumberItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapInteger(Map mapInteger) { this.mapInteger = mapInteger; @@ -86,7 +122,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; - }/** + } + + public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) { + if (this.mapInteger == null) { + this.mapInteger = new HashMap(); + } + + this.mapInteger.put(key, mapIntegerItem); + return this; + } + + public AdditionalPropertiesClass removeMapIntegerItem(Integer mapIntegerItem) { + if (mapIntegerItem != null && this.mapInteger != null) { + this.mapInteger.remove(mapIntegerItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; @@ -104,7 +158,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; - }/** + } + + public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) { + if (this.mapBoolean == null) { + this.mapBoolean = new HashMap(); + } + + this.mapBoolean.put(key, mapBooleanItem); + return this; + } + + public AdditionalPropertiesClass removeMapBooleanItem(Boolean mapBooleanItem) { + if (mapBooleanItem != null && this.mapBoolean != null) { + this.mapBoolean.remove(mapBooleanItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; @@ -122,7 +194,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; - }/** + } + + public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List mapArrayIntegerItem) { + if (this.mapArrayInteger == null) { + this.mapArrayInteger = new HashMap>(); + } + + this.mapArrayInteger.put(key, mapArrayIntegerItem); + return this; + } + + public AdditionalPropertiesClass removeMapArrayIntegerItem(List mapArrayIntegerItem) { + if (mapArrayIntegerItem != null && this.mapArrayInteger != null) { + this.mapArrayInteger.remove(mapArrayIntegerItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; @@ -140,7 +230,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; - }/** + } + + public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List mapArrayAnytypeItem) { + if (this.mapArrayAnytype == null) { + this.mapArrayAnytype = new HashMap>(); + } + + this.mapArrayAnytype.put(key, mapArrayAnytypeItem); + return this; + } + + public AdditionalPropertiesClass removeMapArrayAnytypeItem(List mapArrayAnytypeItem) { + if (mapArrayAnytypeItem != null && this.mapArrayAnytype != null) { + this.mapArrayAnytype.remove(mapArrayAnytypeItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapMapString(Map> mapMapString) { this.mapMapString = mapMapString; @@ -158,7 +266,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; - }/** + } + + public AdditionalPropertiesClass putMapMapStringItem(String key, Map mapMapStringItem) { + if (this.mapMapString == null) { + this.mapMapString = new HashMap>(); + } + + this.mapMapString.put(key, mapMapStringItem); + return this; + } + + public AdditionalPropertiesClass removeMapMapStringItem(Map mapMapStringItem) { + if (mapMapStringItem != null && this.mapMapString != null) { + this.mapMapString.remove(mapMapStringItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; @@ -176,7 +302,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; - }/** + } + + public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map mapMapAnytypeItem) { + if (this.mapMapAnytype == null) { + this.mapMapAnytype = new HashMap>(); + } + + this.mapMapAnytype.put(key, mapMapAnytypeItem); + return this; + } + + public AdditionalPropertiesClass removeMapMapAnytypeItem(Map mapMapAnytypeItem) { + if (mapMapAnytypeItem != null && this.mapMapAnytype != null) { + this.mapMapAnytype.remove(mapMapAnytypeItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass anytype1(Object anytype1) { this.anytype1 = anytype1; @@ -194,7 +338,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; - }/** + } + +/** **/ public AdditionalPropertiesClass anytype2(Object anytype2) { this.anytype2 = anytype2; @@ -212,7 +358,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; - }/** + } + +/** **/ public AdditionalPropertiesClass anytype3(Object anytype3) { this.anytype3 = anytype3; @@ -232,6 +380,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.anytype3 = anytype3; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index 2c2e51fb83..6f925720ab 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4735b0fd5b..884577dcdd 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -41,6 +41,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index 05f7408f9a..cbe4428f3e 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index 03739679cd..16f6a60afd 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Animal.java index 1f0f1e3164..8ddd9ed2f8 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Animal.java @@ -46,7 +46,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setClassName(String className) { this.className = className; - }/** + } + +/** **/ public Animal color(String color) { this.color = color; @@ -66,6 +68,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.color = color; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 77a46a2186..7460869a0d 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -41,6 +41,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayArrayNumber = arrayArrayNumber; } + public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayArrayNumberItem) { + if (this.arrayArrayNumber == null) { + this.arrayArrayNumber = new ArrayList>(); + } + + this.arrayArrayNumber.add(arrayArrayNumberItem); + return this; + } + + public ArrayOfArrayOfNumberOnly removeArrayArrayNumberItem(List arrayArrayNumberItem) { + if (arrayArrayNumberItem != null && this.arrayArrayNumber != null) { + this.arrayArrayNumber.remove(arrayArrayNumberItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 36039422cf..2a02c2c74f 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -41,6 +41,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayNumber = arrayNumber; } + public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { + if (this.arrayNumber == null) { + this.arrayNumber = new ArrayList(); + } + + this.arrayNumber.add(arrayNumberItem); + return this; + } + + public ArrayOfNumberOnly removeArrayNumberItem(BigDecimal arrayNumberItem) { + if (arrayNumberItem != null && this.arrayNumber != null) { + this.arrayNumber.remove(arrayNumberItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java index 374527d8ad..f4c67f4dcc 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java @@ -41,7 +41,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; - }/** + } + + public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { + if (this.arrayOfString == null) { + this.arrayOfString = new ArrayList(); + } + + this.arrayOfString.add(arrayOfStringItem); + return this; + } + + public ArrayTest removeArrayOfStringItem(String arrayOfStringItem) { + if (arrayOfStringItem != null && this.arrayOfString != null) { + this.arrayOfString.remove(arrayOfStringItem); + } + + return this; + } +/** **/ public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -59,7 +77,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; - }/** + } + + public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) { + if (this.arrayArrayOfInteger == null) { + this.arrayArrayOfInteger = new ArrayList>(); + } + + this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem); + return this; + } + + public ArrayTest removeArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) { + if (arrayArrayOfIntegerItem != null && this.arrayArrayOfInteger != null) { + this.arrayArrayOfInteger.remove(arrayArrayOfIntegerItem); + } + + return this; + } +/** **/ public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; @@ -79,6 +115,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayArrayOfModel = arrayArrayOfModel; } + public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelItem) { + if (this.arrayArrayOfModel == null) { + this.arrayArrayOfModel = new ArrayList>(); + } + + this.arrayArrayOfModel.add(arrayArrayOfModelItem); + return this; + } + + public ArrayTest removeArrayArrayOfModelItem(List arrayArrayOfModelItem) { + if (arrayArrayOfModelItem != null && this.arrayArrayOfModel != null) { + this.arrayArrayOfModel.remove(arrayArrayOfModelItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCat.java index 33dff05e83..1a3ddba789 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCat.java @@ -73,6 +73,7 @@ public enum KindEnum { this.kind = kind; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCatAllOf.java index 0b5a153a07..080e86afac 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCatAllOf.java @@ -71,6 +71,7 @@ public enum KindEnum { this.kind = kind; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Capitalization.java index 27f378125d..a65c79d984 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Capitalization.java @@ -41,7 +41,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; - }/** + } + +/** **/ public Capitalization capitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; @@ -59,7 +61,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; - }/** + } + +/** **/ public Capitalization smallSnake(String smallSnake) { this.smallSnake = smallSnake; @@ -77,7 +81,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; - }/** + } + +/** **/ public Capitalization capitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; @@ -95,7 +101,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; - }/** + } + +/** **/ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -113,7 +121,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; - }/** + } + +/** * Name of the pet **/ public Capitalization ATT_NAME(String ATT_NAME) { @@ -134,6 +144,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.ATT_NAME = ATT_NAME; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Cat.java index b0a2eacada..4cc078e223 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Cat.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.declawed = declawed; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/CatAllOf.java index f405b41e87..e56df72d3b 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/CatAllOf.java @@ -38,6 +38,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.declawed = declawed; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Category.java index 32076613c9..9af6f93c7c 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Category.java @@ -37,7 +37,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setId(Long id) { this.id = id; - }/** + } + +/** **/ public Category name(String name) { this.name = name; @@ -58,6 +60,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ClassModel.java index e3153a9f03..f050e12bb2 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ClassModel.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.propertyClass = propertyClass; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Client.java index 81a1033e05..4cdbbef940 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Client.java @@ -38,6 +38,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.client = client; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Dog.java index 01e256a23d..87c3a825ba 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Dog.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.breed = breed; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/DogAllOf.java index 3291b8f7c7..5496e3c891 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/DogAllOf.java @@ -38,6 +38,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.breed = breed; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java index c7ceed68c7..a033bca007 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java @@ -105,7 +105,9 @@ public enum ArrayEnumEnum { public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; - }/** + } + +/** **/ public EnumArrays arrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; @@ -125,6 +127,23 @@ public enum ArrayEnumEnum { this.arrayEnum = arrayEnum; } + public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { + if (this.arrayEnum == null) { + this.arrayEnum = new ArrayList(); + } + + this.arrayEnum.add(arrayEnumItem); + return this; + } + + public EnumArrays removeArrayEnumItem(ArrayEnumEnum arrayEnumItem) { + if (arrayEnumItem != null && this.arrayEnum != null) { + this.arrayEnum.remove(arrayEnumItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumTest.java index d74cb2ff03..6c02f0647c 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumTest.java @@ -173,7 +173,9 @@ public enum EnumNumberEnum { public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; - }/** + } + +/** **/ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -192,7 +194,9 @@ public enum EnumNumberEnum { public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; - }/** + } + +/** **/ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -210,7 +214,9 @@ public enum EnumNumberEnum { public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; - }/** + } + +/** **/ public EnumTest enumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -228,7 +234,9 @@ public enum EnumNumberEnum { public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; - }/** + } + +/** **/ public EnumTest outerEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; @@ -248,6 +256,7 @@ public enum EnumNumberEnum { this.outerEnum = outerEnum; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 8aa815da79..5ad48e0217 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -39,7 +39,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setFile(java.io.File file) { this.file = file; - }/** + } + +/** **/ public FileSchemaTestClass files(List files) { this.files = files; @@ -59,6 +61,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.files = files; } + public FileSchemaTestClass addFilesItem(java.io.File filesItem) { + if (this.files == null) { + this.files = new ArrayList(); + } + + this.files.add(filesItem); + return this; + } + + public FileSchemaTestClass removeFilesItem(java.io.File filesItem) { + if (filesItem != null && this.files != null) { + this.files.remove(filesItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java index 70a7eed2fd..ca11645f9a 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java @@ -56,7 +56,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setInteger(Integer integer) { this.integer = integer; - }/** + } + +/** * minimum: 20 * maximum: 200 **/ @@ -76,7 +78,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setInt32(Integer int32) { this.int32 = int32; - }/** + } + +/** **/ public FormatTest int64(Long int64) { this.int64 = int64; @@ -94,7 +98,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setInt64(Long int64) { this.int64 = int64; - }/** + } + +/** * minimum: 32.1 * maximum: 543.2 **/ @@ -115,7 +121,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNumber(BigDecimal number) { this.number = number; - }/** + } + +/** * minimum: 54.3 * maximum: 987.6 **/ @@ -135,7 +143,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setFloat(Float _float) { this._float = _float; - }/** + } + +/** * minimum: 67.8 * maximum: 123.4 **/ @@ -155,7 +165,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setDouble(Double _double) { this._double = _double; - }/** + } + +/** **/ public FormatTest string(String string) { this.string = string; @@ -173,7 +185,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setString(String string) { this.string = string; - }/** + } + +/** **/ public FormatTest _byte(byte[] _byte) { this._byte = _byte; @@ -192,7 +206,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setByte(byte[] _byte) { this._byte = _byte; - }/** + } + +/** **/ public FormatTest binary(File binary) { this.binary = binary; @@ -210,7 +226,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setBinary(File binary) { this.binary = binary; - }/** + } + +/** **/ public FormatTest date(LocalDate date) { this.date = date; @@ -229,7 +247,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setDate(LocalDate date) { this.date = date; - }/** + } + +/** **/ public FormatTest dateTime(Date dateTime) { this.dateTime = dateTime; @@ -247,7 +267,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setDateTime(Date dateTime) { this.dateTime = dateTime; - }/** + } + +/** **/ public FormatTest uuid(UUID uuid) { this.uuid = uuid; @@ -265,7 +287,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setUuid(UUID uuid) { this.uuid = uuid; - }/** + } + +/** **/ public FormatTest password(String password) { this.password = password; @@ -284,7 +308,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPassword(String password) { this.password = password; - }/** + } + +/** **/ public FormatTest bigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; @@ -304,6 +330,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.bigDecimal = bigDecimal; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index cebb1bb512..6438846d56 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -37,7 +37,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setBar(String bar) { this.bar = bar; - }/** + } + +/** **/ public HasOnlyReadOnly foo(String foo) { this.foo = foo; @@ -57,6 +59,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.foo = foo; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java index be225de067..0462e9f525 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java @@ -75,7 +75,25 @@ public enum InnerEnum { public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; - }/** + } + + public MapTest putMapMapOfStringItem(String key, Map mapMapOfStringItem) { + if (this.mapMapOfString == null) { + this.mapMapOfString = new HashMap>(); + } + + this.mapMapOfString.put(key, mapMapOfStringItem); + return this; + } + + public MapTest removeMapMapOfStringItem(Map mapMapOfStringItem) { + if (mapMapOfStringItem != null && this.mapMapOfString != null) { + this.mapMapOfString.remove(mapMapOfStringItem); + } + + return this; + } +/** **/ public MapTest mapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -93,7 +111,25 @@ public enum InnerEnum { public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; - }/** + } + + public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) { + if (this.mapOfEnumString == null) { + this.mapOfEnumString = new HashMap(); + } + + this.mapOfEnumString.put(key, mapOfEnumStringItem); + return this; + } + + public MapTest removeMapOfEnumStringItem(InnerEnum mapOfEnumStringItem) { + if (mapOfEnumStringItem != null && this.mapOfEnumString != null) { + this.mapOfEnumString.remove(mapOfEnumStringItem); + } + + return this; + } +/** **/ public MapTest directMap(Map directMap) { this.directMap = directMap; @@ -111,7 +147,25 @@ public enum InnerEnum { public void setDirectMap(Map directMap) { this.directMap = directMap; - }/** + } + + public MapTest putDirectMapItem(String key, Boolean directMapItem) { + if (this.directMap == null) { + this.directMap = new HashMap(); + } + + this.directMap.put(key, directMapItem); + return this; + } + + public MapTest removeDirectMapItem(Boolean directMapItem) { + if (directMapItem != null && this.directMap != null) { + this.directMap.remove(directMapItem); + } + + return this; + } +/** **/ public MapTest indirectMap(Map indirectMap) { this.indirectMap = indirectMap; @@ -131,6 +185,23 @@ public enum InnerEnum { this.indirectMap = indirectMap; } + public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { + if (this.indirectMap == null) { + this.indirectMap = new HashMap(); + } + + this.indirectMap.put(key, indirectMapItem); + return this; + } + + public MapTest removeIndirectMapItem(Boolean indirectMapItem) { + if (indirectMapItem != null && this.indirectMap != null) { + this.indirectMap.remove(indirectMapItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 136a4fab11..344620b685 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -44,7 +44,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setUuid(UUID uuid) { this.uuid = uuid; - }/** + } + +/** **/ public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { this.dateTime = dateTime; @@ -62,7 +64,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setDateTime(Date dateTime) { this.dateTime = dateTime; - }/** + } + +/** **/ public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { this.map = map; @@ -82,6 +86,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.map = map; } + public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) { + if (this.map == null) { + this.map = new HashMap(); + } + + this.map.put(key, mapItem); + return this; + } + + public MixedPropertiesAndAdditionalPropertiesClass removeMapItem(Animal mapItem) { + if (mapItem != null && this.map != null) { + this.map.remove(mapItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Model200Response.java index 3a8a04baa8..d96df1acea 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Model200Response.java @@ -39,7 +39,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setName(Integer name) { this.name = name; - }/** + } + +/** **/ public Model200Response propertyClass(String propertyClass) { this.propertyClass = propertyClass; @@ -59,6 +61,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.propertyClass = propertyClass; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelApiResponse.java index f382361e58..952439560b 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -38,7 +38,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setCode(Integer code) { this.code = code; - }/** + } + +/** **/ public ModelApiResponse type(String type) { this.type = type; @@ -56,7 +58,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setType(String type) { this.type = type; - }/** + } + +/** **/ public ModelApiResponse message(String message) { this.message = message; @@ -76,6 +80,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.message = message; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelReturn.java index 30180e1f25..6d6cb5b806 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelReturn.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this._return = _return; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Name.java index 199e9772bf..6fd504dbe9 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Name.java @@ -42,7 +42,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setName(Integer name) { this.name = name; - }/** + } + +/** **/ public Name snakeCase(Integer snakeCase) { this.snakeCase = snakeCase; @@ -60,7 +62,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setSnakeCase(Integer snakeCase) { this.snakeCase = snakeCase; - }/** + } + +/** **/ public Name property(String property) { this.property = property; @@ -78,7 +82,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setProperty(String property) { this.property = property; - }/** + } + +/** **/ public Name _123number(Integer _123number) { this._123number = _123number; @@ -98,6 +104,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this._123number = _123number; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/NumberOnly.java index 6e62b0792c..07a70cd9da 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/NumberOnly.java @@ -39,6 +39,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.justNumber = justNumber; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Order.java index 6a877eda5d..9929a0d504 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Order.java @@ -75,7 +75,9 @@ public enum StatusEnum { public void setId(Long id) { this.id = id; - }/** + } + +/** **/ public Order petId(Long petId) { this.petId = petId; @@ -93,7 +95,9 @@ public enum StatusEnum { public void setPetId(Long petId) { this.petId = petId; - }/** + } + +/** **/ public Order quantity(Integer quantity) { this.quantity = quantity; @@ -111,7 +115,9 @@ public enum StatusEnum { public void setQuantity(Integer quantity) { this.quantity = quantity; - }/** + } + +/** **/ public Order shipDate(Date shipDate) { this.shipDate = shipDate; @@ -129,7 +135,9 @@ public enum StatusEnum { public void setShipDate(Date shipDate) { this.shipDate = shipDate; - }/** + } + +/** * Order Status **/ public Order status(StatusEnum status) { @@ -148,7 +156,9 @@ public enum StatusEnum { public void setStatus(StatusEnum status) { this.status = status; - }/** + } + +/** **/ public Order complete(Boolean complete) { this.complete = complete; @@ -168,6 +178,7 @@ public enum StatusEnum { this.complete = complete; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/OuterComposite.java index 118a92239c..6e34a0e0a8 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/OuterComposite.java @@ -39,7 +39,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; - }/** + } + +/** **/ public OuterComposite myString(String myString) { this.myString = myString; @@ -57,7 +59,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMyString(String myString) { this.myString = myString; - }/** + } + +/** **/ public OuterComposite myBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; @@ -77,6 +81,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.myBoolean = myBoolean; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java index c0e131f545..b009a3df92 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java @@ -80,7 +80,9 @@ public enum StatusEnum { public void setId(Long id) { this.id = id; - }/** + } + +/** **/ public Pet category(Category category) { this.category = category; @@ -98,7 +100,9 @@ public enum StatusEnum { public void setCategory(Category category) { this.category = category; - }/** + } + +/** **/ public Pet name(String name) { this.name = name; @@ -117,7 +121,9 @@ public enum StatusEnum { public void setName(String name) { this.name = name; - }/** + } + +/** **/ public Pet photoUrls(Set photoUrls) { this.photoUrls = photoUrls; @@ -136,7 +142,25 @@ public enum StatusEnum { public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; - }/** + } + + public Pet addPhotoUrlsItem(String photoUrlsItem) { + if (this.photoUrls == null) { + this.photoUrls = new LinkedHashSet(); + } + + this.photoUrls.add(photoUrlsItem); + return this; + } + + public Pet removePhotoUrlsItem(String photoUrlsItem) { + if (photoUrlsItem != null && this.photoUrls != null) { + this.photoUrls.remove(photoUrlsItem); + } + + return this; + } +/** **/ public Pet tags(List tags) { this.tags = tags; @@ -154,7 +178,25 @@ public enum StatusEnum { public void setTags(List tags) { this.tags = tags; - }/** + } + + public Pet addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList(); + } + + this.tags.add(tagsItem); + return this; + } + + public Pet removeTagsItem(Tag tagsItem) { + if (tagsItem != null && this.tags != null) { + this.tags.remove(tagsItem); + } + + return this; + } +/** * pet status in the store **/ public Pet status(StatusEnum status) { @@ -175,6 +217,7 @@ public enum StatusEnum { this.status = status; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 8ab6292e7f..72efcebf52 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -37,7 +37,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setBar(String bar) { this.bar = bar; - }/** + } + +/** **/ public ReadOnlyFirst baz(String baz) { this.baz = baz; @@ -57,6 +59,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.baz = baz; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/SpecialModelName.java index 61f7ae1e72..ece6b68dc3 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -38,6 +38,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.$specialPropertyName = $specialPropertyName; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Tag.java index 5f85573098..1c7c519889 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Tag.java @@ -37,7 +37,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setId(Long id) { this.id = id; - }/** + } + +/** **/ public Tag name(String name) { this.name = name; @@ -57,6 +59,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 8ad93d7553..07a1d5d87e 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -44,7 +44,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setStringItem(String stringItem) { this.stringItem = stringItem; - }/** + } + +/** **/ public TypeHolderDefault numberItem(BigDecimal numberItem) { this.numberItem = numberItem; @@ -63,7 +65,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; - }/** + } + +/** **/ public TypeHolderDefault integerItem(Integer integerItem) { this.integerItem = integerItem; @@ -82,7 +86,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; - }/** + } + +/** **/ public TypeHolderDefault boolItem(Boolean boolItem) { this.boolItem = boolItem; @@ -101,7 +107,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; - }/** + } + +/** **/ public TypeHolderDefault arrayItem(List arrayItem) { this.arrayItem = arrayItem; @@ -122,6 +130,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayItem = arrayItem; } + public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { + if (this.arrayItem == null) { + this.arrayItem = new ArrayList(); + } + + this.arrayItem.add(arrayItemItem); + return this; + } + + public TypeHolderDefault removeArrayItemItem(Integer arrayItemItem) { + if (arrayItemItem != null && this.arrayItem != null) { + this.arrayItem.remove(arrayItemItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java index fe7be2d28e..38951dee34 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -45,7 +45,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setStringItem(String stringItem) { this.stringItem = stringItem; - }/** + } + +/** **/ public TypeHolderExample numberItem(BigDecimal numberItem) { this.numberItem = numberItem; @@ -64,7 +66,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; - }/** + } + +/** **/ public TypeHolderExample floatItem(Float floatItem) { this.floatItem = floatItem; @@ -83,7 +87,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setFloatItem(Float floatItem) { this.floatItem = floatItem; - }/** + } + +/** **/ public TypeHolderExample integerItem(Integer integerItem) { this.integerItem = integerItem; @@ -102,7 +108,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; - }/** + } + +/** **/ public TypeHolderExample boolItem(Boolean boolItem) { this.boolItem = boolItem; @@ -121,7 +129,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; - }/** + } + +/** **/ public TypeHolderExample arrayItem(List arrayItem) { this.arrayItem = arrayItem; @@ -142,6 +152,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayItem = arrayItem; } + public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { + if (this.arrayItem == null) { + this.arrayItem = new ArrayList(); + } + + this.arrayItem.add(arrayItemItem); + return this; + } + + public TypeHolderExample removeArrayItemItem(Integer arrayItemItem) { + if (arrayItemItem != null && this.arrayItem != null) { + this.arrayItem.remove(arrayItemItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/User.java index 6e82dd75fe..ad16074f63 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/User.java @@ -43,7 +43,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setId(Long id) { this.id = id; - }/** + } + +/** **/ public User username(String username) { this.username = username; @@ -61,7 +63,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setUsername(String username) { this.username = username; - }/** + } + +/** **/ public User firstName(String firstName) { this.firstName = firstName; @@ -79,7 +83,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setFirstName(String firstName) { this.firstName = firstName; - }/** + } + +/** **/ public User lastName(String lastName) { this.lastName = lastName; @@ -97,7 +103,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setLastName(String lastName) { this.lastName = lastName; - }/** + } + +/** **/ public User email(String email) { this.email = email; @@ -115,7 +123,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setEmail(String email) { this.email = email; - }/** + } + +/** **/ public User password(String password) { this.password = password; @@ -133,7 +143,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPassword(String password) { this.password = password; - }/** + } + +/** **/ public User phone(String phone) { this.phone = phone; @@ -151,7 +163,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPhone(String phone) { this.phone = phone; - }/** + } + +/** * User Status **/ public User userStatus(Integer userStatus) { @@ -172,6 +186,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.userStatus = userStatus; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java index 596002cf3a..b45dded155 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java @@ -67,7 +67,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAttributeString(String attributeString) { this.attributeString = attributeString; - }/** + } + +/** **/ public XmlItem attributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; @@ -85,7 +87,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; - }/** + } + +/** **/ public XmlItem attributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; @@ -103,7 +107,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; - }/** + } + +/** **/ public XmlItem attributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; @@ -121,7 +127,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; - }/** + } + +/** **/ public XmlItem wrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; @@ -139,7 +147,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; - }/** + } + + public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { + if (this.wrappedArray == null) { + this.wrappedArray = new ArrayList(); + } + + this.wrappedArray.add(wrappedArrayItem); + return this; + } + + public XmlItem removeWrappedArrayItem(Integer wrappedArrayItem) { + if (wrappedArrayItem != null && this.wrappedArray != null) { + this.wrappedArray.remove(wrappedArrayItem); + } + + return this; + } +/** **/ public XmlItem nameString(String nameString) { this.nameString = nameString; @@ -157,7 +183,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameString(String nameString) { this.nameString = nameString; - }/** + } + +/** **/ public XmlItem nameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; @@ -175,7 +203,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; - }/** + } + +/** **/ public XmlItem nameInteger(Integer nameInteger) { this.nameInteger = nameInteger; @@ -193,7 +223,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; - }/** + } + +/** **/ public XmlItem nameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; @@ -211,7 +243,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; - }/** + } + +/** **/ public XmlItem nameArray(List nameArray) { this.nameArray = nameArray; @@ -229,7 +263,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameArray(List nameArray) { this.nameArray = nameArray; - }/** + } + + public XmlItem addNameArrayItem(Integer nameArrayItem) { + if (this.nameArray == null) { + this.nameArray = new ArrayList(); + } + + this.nameArray.add(nameArrayItem); + return this; + } + + public XmlItem removeNameArrayItem(Integer nameArrayItem) { + if (nameArrayItem != null && this.nameArray != null) { + this.nameArray.remove(nameArrayItem); + } + + return this; + } +/** **/ public XmlItem nameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; @@ -247,7 +299,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; - }/** + } + + public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { + if (this.nameWrappedArray == null) { + this.nameWrappedArray = new ArrayList(); + } + + this.nameWrappedArray.add(nameWrappedArrayItem); + return this; + } + + public XmlItem removeNameWrappedArrayItem(Integer nameWrappedArrayItem) { + if (nameWrappedArrayItem != null && this.nameWrappedArray != null) { + this.nameWrappedArray.remove(nameWrappedArrayItem); + } + + return this; + } +/** **/ public XmlItem prefixString(String prefixString) { this.prefixString = prefixString; @@ -265,7 +335,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixString(String prefixString) { this.prefixString = prefixString; - }/** + } + +/** **/ public XmlItem prefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; @@ -283,7 +355,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; - }/** + } + +/** **/ public XmlItem prefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; @@ -301,7 +375,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; - }/** + } + +/** **/ public XmlItem prefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; @@ -319,7 +395,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; - }/** + } + +/** **/ public XmlItem prefixArray(List prefixArray) { this.prefixArray = prefixArray; @@ -337,7 +415,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; - }/** + } + + public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { + if (this.prefixArray == null) { + this.prefixArray = new ArrayList(); + } + + this.prefixArray.add(prefixArrayItem); + return this; + } + + public XmlItem removePrefixArrayItem(Integer prefixArrayItem) { + if (prefixArrayItem != null && this.prefixArray != null) { + this.prefixArray.remove(prefixArrayItem); + } + + return this; + } +/** **/ public XmlItem prefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; @@ -355,7 +451,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; - }/** + } + + public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { + if (this.prefixWrappedArray == null) { + this.prefixWrappedArray = new ArrayList(); + } + + this.prefixWrappedArray.add(prefixWrappedArrayItem); + return this; + } + + public XmlItem removePrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { + if (prefixWrappedArrayItem != null && this.prefixWrappedArray != null) { + this.prefixWrappedArray.remove(prefixWrappedArrayItem); + } + + return this; + } +/** **/ public XmlItem namespaceString(String namespaceString) { this.namespaceString = namespaceString; @@ -373,7 +487,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; - }/** + } + +/** **/ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; @@ -391,7 +507,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; - }/** + } + +/** **/ public XmlItem namespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; @@ -409,7 +527,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; - }/** + } + +/** **/ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; @@ -427,7 +547,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; - }/** + } + +/** **/ public XmlItem namespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; @@ -445,7 +567,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; - }/** + } + + public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { + if (this.namespaceArray == null) { + this.namespaceArray = new ArrayList(); + } + + this.namespaceArray.add(namespaceArrayItem); + return this; + } + + public XmlItem removeNamespaceArrayItem(Integer namespaceArrayItem) { + if (namespaceArrayItem != null && this.namespaceArray != null) { + this.namespaceArray.remove(namespaceArrayItem); + } + + return this; + } +/** **/ public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; @@ -463,7 +603,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; - }/** + } + + public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { + if (this.namespaceWrappedArray == null) { + this.namespaceWrappedArray = new ArrayList(); + } + + this.namespaceWrappedArray.add(namespaceWrappedArrayItem); + return this; + } + + public XmlItem removeNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { + if (namespaceWrappedArrayItem != null && this.namespaceWrappedArray != null) { + this.namespaceWrappedArray.remove(namespaceWrappedArrayItem); + } + + return this; + } +/** **/ public XmlItem prefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; @@ -481,7 +639,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; - }/** + } + +/** **/ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; @@ -499,7 +659,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; - }/** + } + +/** **/ public XmlItem prefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; @@ -517,7 +679,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; - }/** + } + +/** **/ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; @@ -535,7 +699,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; - }/** + } + +/** **/ public XmlItem prefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; @@ -553,7 +719,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; - }/** + } + + public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { + if (this.prefixNsArray == null) { + this.prefixNsArray = new ArrayList(); + } + + this.prefixNsArray.add(prefixNsArrayItem); + return this; + } + + public XmlItem removePrefixNsArrayItem(Integer prefixNsArrayItem) { + if (prefixNsArrayItem != null && this.prefixNsArray != null) { + this.prefixNsArray.remove(prefixNsArrayItem); + } + + return this; + } +/** **/ public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; @@ -573,6 +757,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.prefixNsWrappedArray = prefixNsWrappedArray; } + public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { + if (this.prefixNsWrappedArray == null) { + this.prefixNsWrappedArray = new ArrayList(); + } + + this.prefixNsWrappedArray.add(prefixNsWrappedArrayItem); + return this; + } + + public XmlItem removePrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { + if (prefixNsWrappedArrayItem != null && this.prefixNsWrappedArray != null) { + this.prefixNsWrappedArray.remove(prefixNsWrappedArrayItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java deleted file mode 100644 index 85ee119616..0000000000 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/FakeClassnameTags123Api.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.openapitools.api; - -import org.openapitools.model.Client; - -import javax.ws.rs.*; -import javax.ws.rs.core.Response; - -import io.swagger.annotations.*; - -import java.io.InputStream; -import java.util.Map; -import java.util.List; -import javax.validation.constraints.*; -import javax.validation.Valid; - -@Path("/FakeClassnameTags123") -@Api(description = "the FakeClassnameTags123 API") -public class FakeClassnameTags123Api { - - @PATCH - @Consumes({ "application/json" }) - @Produces({ "application/json" }) - @ApiOperation(value = "To test class name in snake case", notes = "To test class name in snake case", response = Client.class, authorizations = { - @Authorization(value = "api_key_query") - }, tags={ "fake_classname_tags 123#$%^" }) - @ApiResponses(value = { - @ApiResponse(code = 200, message = "successful operation", response = Client.class) - }) - public Response testClassname(@Valid Client body) { - return Response.ok().entity("magic!").build(); - } -} diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index f252198844..6b9dcfa1ac 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 7cc3e60997..1b504c15f4 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -41,6 +41,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 172c5f42da..d842728a18 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index b646cfb0b0..e745b6846a 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -50,7 +50,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapString(Map mapString) { this.mapString = mapString; - }/** + } + + public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) { + if (this.mapString == null) { + this.mapString = new HashMap(); + } + + this.mapString.put(key, mapStringItem); + return this; + } + + public AdditionalPropertiesClass removeMapStringItem(String mapStringItem) { + if (mapStringItem != null && this.mapString != null) { + this.mapString.remove(mapStringItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapNumber(Map mapNumber) { this.mapNumber = mapNumber; @@ -68,7 +86,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; - }/** + } + + public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) { + if (this.mapNumber == null) { + this.mapNumber = new HashMap(); + } + + this.mapNumber.put(key, mapNumberItem); + return this; + } + + public AdditionalPropertiesClass removeMapNumberItem(BigDecimal mapNumberItem) { + if (mapNumberItem != null && this.mapNumber != null) { + this.mapNumber.remove(mapNumberItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapInteger(Map mapInteger) { this.mapInteger = mapInteger; @@ -86,7 +122,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; - }/** + } + + public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) { + if (this.mapInteger == null) { + this.mapInteger = new HashMap(); + } + + this.mapInteger.put(key, mapIntegerItem); + return this; + } + + public AdditionalPropertiesClass removeMapIntegerItem(Integer mapIntegerItem) { + if (mapIntegerItem != null && this.mapInteger != null) { + this.mapInteger.remove(mapIntegerItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; @@ -104,7 +158,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; - }/** + } + + public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) { + if (this.mapBoolean == null) { + this.mapBoolean = new HashMap(); + } + + this.mapBoolean.put(key, mapBooleanItem); + return this; + } + + public AdditionalPropertiesClass removeMapBooleanItem(Boolean mapBooleanItem) { + if (mapBooleanItem != null && this.mapBoolean != null) { + this.mapBoolean.remove(mapBooleanItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; @@ -122,7 +194,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; - }/** + } + + public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List mapArrayIntegerItem) { + if (this.mapArrayInteger == null) { + this.mapArrayInteger = new HashMap>(); + } + + this.mapArrayInteger.put(key, mapArrayIntegerItem); + return this; + } + + public AdditionalPropertiesClass removeMapArrayIntegerItem(List mapArrayIntegerItem) { + if (mapArrayIntegerItem != null && this.mapArrayInteger != null) { + this.mapArrayInteger.remove(mapArrayIntegerItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; @@ -140,7 +230,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; - }/** + } + + public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List mapArrayAnytypeItem) { + if (this.mapArrayAnytype == null) { + this.mapArrayAnytype = new HashMap>(); + } + + this.mapArrayAnytype.put(key, mapArrayAnytypeItem); + return this; + } + + public AdditionalPropertiesClass removeMapArrayAnytypeItem(List mapArrayAnytypeItem) { + if (mapArrayAnytypeItem != null && this.mapArrayAnytype != null) { + this.mapArrayAnytype.remove(mapArrayAnytypeItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapMapString(Map> mapMapString) { this.mapMapString = mapMapString; @@ -158,7 +266,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; - }/** + } + + public AdditionalPropertiesClass putMapMapStringItem(String key, Map mapMapStringItem) { + if (this.mapMapString == null) { + this.mapMapString = new HashMap>(); + } + + this.mapMapString.put(key, mapMapStringItem); + return this; + } + + public AdditionalPropertiesClass removeMapMapStringItem(Map mapMapStringItem) { + if (mapMapStringItem != null && this.mapMapString != null) { + this.mapMapString.remove(mapMapStringItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; @@ -176,7 +302,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; - }/** + } + + public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map mapMapAnytypeItem) { + if (this.mapMapAnytype == null) { + this.mapMapAnytype = new HashMap>(); + } + + this.mapMapAnytype.put(key, mapMapAnytypeItem); + return this; + } + + public AdditionalPropertiesClass removeMapMapAnytypeItem(Map mapMapAnytypeItem) { + if (mapMapAnytypeItem != null && this.mapMapAnytype != null) { + this.mapMapAnytype.remove(mapMapAnytypeItem); + } + + return this; + } +/** **/ public AdditionalPropertiesClass anytype1(Object anytype1) { this.anytype1 = anytype1; @@ -194,7 +338,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; - }/** + } + +/** **/ public AdditionalPropertiesClass anytype2(Object anytype2) { this.anytype2 = anytype2; @@ -212,7 +358,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; - }/** + } + +/** **/ public AdditionalPropertiesClass anytype3(Object anytype3) { this.anytype3 = anytype3; @@ -232,6 +380,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.anytype3 = anytype3; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index 2c2e51fb83..6f925720ab 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index 4735b0fd5b..884577dcdd 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -41,6 +41,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index 05f7408f9a..cbe4428f3e 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index 03739679cd..16f6a60afd 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Animal.java index 1f0f1e3164..8ddd9ed2f8 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Animal.java @@ -46,7 +46,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setClassName(String className) { this.className = className; - }/** + } + +/** **/ public Animal color(String color) { this.color = color; @@ -66,6 +68,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.color = color; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AnimalFarm.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AnimalFarm.java deleted file mode 100644 index 810e56085b..0000000000 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AnimalFarm.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.openapitools.model; - -import java.util.ArrayList; -import java.util.List; -import org.openapitools.model.Animal; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - - - -public class AnimalFarm extends ArrayList implements Serializable { - - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AnimalFarm animalFarm = (AnimalFarm) o; - return true; - } - - @Override - public int hashCode() { - return Objects.hash(); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class AnimalFarm {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 77a46a2186..7460869a0d 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -41,6 +41,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayArrayNumber = arrayArrayNumber; } + public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayArrayNumberItem) { + if (this.arrayArrayNumber == null) { + this.arrayArrayNumber = new ArrayList>(); + } + + this.arrayArrayNumber.add(arrayArrayNumberItem); + return this; + } + + public ArrayOfArrayOfNumberOnly removeArrayArrayNumberItem(List arrayArrayNumberItem) { + if (arrayArrayNumberItem != null && this.arrayArrayNumber != null) { + this.arrayArrayNumber.remove(arrayArrayNumberItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 36039422cf..2a02c2c74f 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -41,6 +41,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayNumber = arrayNumber; } + public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { + if (this.arrayNumber == null) { + this.arrayNumber = new ArrayList(); + } + + this.arrayNumber.add(arrayNumberItem); + return this; + } + + public ArrayOfNumberOnly removeArrayNumberItem(BigDecimal arrayNumberItem) { + if (arrayNumberItem != null && this.arrayNumber != null) { + this.arrayNumber.remove(arrayNumberItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java index 374527d8ad..f4c67f4dcc 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java @@ -41,7 +41,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; - }/** + } + + public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { + if (this.arrayOfString == null) { + this.arrayOfString = new ArrayList(); + } + + this.arrayOfString.add(arrayOfStringItem); + return this; + } + + public ArrayTest removeArrayOfStringItem(String arrayOfStringItem) { + if (arrayOfStringItem != null && this.arrayOfString != null) { + this.arrayOfString.remove(arrayOfStringItem); + } + + return this; + } +/** **/ public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; @@ -59,7 +77,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; - }/** + } + + public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) { + if (this.arrayArrayOfInteger == null) { + this.arrayArrayOfInteger = new ArrayList>(); + } + + this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem); + return this; + } + + public ArrayTest removeArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) { + if (arrayArrayOfIntegerItem != null && this.arrayArrayOfInteger != null) { + this.arrayArrayOfInteger.remove(arrayArrayOfIntegerItem); + } + + return this; + } +/** **/ public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; @@ -79,6 +115,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayArrayOfModel = arrayArrayOfModel; } + public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelItem) { + if (this.arrayArrayOfModel == null) { + this.arrayArrayOfModel = new ArrayList>(); + } + + this.arrayArrayOfModel.add(arrayArrayOfModelItem); + return this; + } + + public ArrayTest removeArrayArrayOfModelItem(List arrayArrayOfModelItem) { + if (arrayArrayOfModelItem != null && this.arrayArrayOfModel != null) { + this.arrayArrayOfModel.remove(arrayArrayOfModelItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/BigCat.java index 33dff05e83..1a3ddba789 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/BigCat.java @@ -73,6 +73,7 @@ public enum KindEnum { this.kind = kind; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/BigCatAllOf.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/BigCatAllOf.java index 0b5a153a07..080e86afac 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/BigCatAllOf.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/BigCatAllOf.java @@ -71,6 +71,7 @@ public enum KindEnum { this.kind = kind; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Capitalization.java index 27f378125d..a65c79d984 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Capitalization.java @@ -41,7 +41,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; - }/** + } + +/** **/ public Capitalization capitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; @@ -59,7 +61,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; - }/** + } + +/** **/ public Capitalization smallSnake(String smallSnake) { this.smallSnake = smallSnake; @@ -77,7 +81,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; - }/** + } + +/** **/ public Capitalization capitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; @@ -95,7 +101,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; - }/** + } + +/** **/ public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; @@ -113,7 +121,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; - }/** + } + +/** * Name of the pet **/ public Capitalization ATT_NAME(String ATT_NAME) { @@ -134,6 +144,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.ATT_NAME = ATT_NAME; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java index b0a2eacada..4cc078e223 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.declawed = declawed; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/CatAllOf.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/CatAllOf.java index f405b41e87..e56df72d3b 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/CatAllOf.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/CatAllOf.java @@ -38,6 +38,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.declawed = declawed; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java index 32076613c9..9af6f93c7c 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java @@ -37,7 +37,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setId(Long id) { this.id = id; - }/** + } + +/** **/ public Category name(String name) { this.name = name; @@ -58,6 +60,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ClassModel.java index e3153a9f03..f050e12bb2 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ClassModel.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.propertyClass = propertyClass; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Client.java index 81a1033e05..4cdbbef940 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Client.java @@ -38,6 +38,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.client = client; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java index 01e256a23d..87c3a825ba 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.breed = breed; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/DogAllOf.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/DogAllOf.java index 3291b8f7c7..5496e3c891 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/DogAllOf.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/DogAllOf.java @@ -38,6 +38,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.breed = breed; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java index c7ceed68c7..a033bca007 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java @@ -105,7 +105,9 @@ public enum ArrayEnumEnum { public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; - }/** + } + +/** **/ public EnumArrays arrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; @@ -125,6 +127,23 @@ public enum ArrayEnumEnum { this.arrayEnum = arrayEnum; } + public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { + if (this.arrayEnum == null) { + this.arrayEnum = new ArrayList(); + } + + this.arrayEnum.add(arrayEnumItem); + return this; + } + + public EnumArrays removeArrayEnumItem(ArrayEnumEnum arrayEnumItem) { + if (arrayEnumItem != null && this.arrayEnum != null) { + this.arrayEnum.remove(arrayEnumItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java index d74cb2ff03..6c02f0647c 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java @@ -173,7 +173,9 @@ public enum EnumNumberEnum { public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; - }/** + } + +/** **/ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; @@ -192,7 +194,9 @@ public enum EnumNumberEnum { public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; - }/** + } + +/** **/ public EnumTest enumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; @@ -210,7 +214,9 @@ public enum EnumNumberEnum { public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; - }/** + } + +/** **/ public EnumTest enumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; @@ -228,7 +234,9 @@ public enum EnumNumberEnum { public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; - }/** + } + +/** **/ public EnumTest outerEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; @@ -248,6 +256,7 @@ public enum EnumNumberEnum { this.outerEnum = outerEnum; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 8aa815da79..5ad48e0217 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -39,7 +39,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setFile(java.io.File file) { this.file = file; - }/** + } + +/** **/ public FileSchemaTestClass files(List files) { this.files = files; @@ -59,6 +61,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.files = files; } + public FileSchemaTestClass addFilesItem(java.io.File filesItem) { + if (this.files == null) { + this.files = new ArrayList(); + } + + this.files.add(filesItem); + return this; + } + + public FileSchemaTestClass removeFilesItem(java.io.File filesItem) { + if (filesItem != null && this.files != null) { + this.files.remove(filesItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java index 70a7eed2fd..ca11645f9a 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java @@ -56,7 +56,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setInteger(Integer integer) { this.integer = integer; - }/** + } + +/** * minimum: 20 * maximum: 200 **/ @@ -76,7 +78,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setInt32(Integer int32) { this.int32 = int32; - }/** + } + +/** **/ public FormatTest int64(Long int64) { this.int64 = int64; @@ -94,7 +98,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setInt64(Long int64) { this.int64 = int64; - }/** + } + +/** * minimum: 32.1 * maximum: 543.2 **/ @@ -115,7 +121,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNumber(BigDecimal number) { this.number = number; - }/** + } + +/** * minimum: 54.3 * maximum: 987.6 **/ @@ -135,7 +143,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setFloat(Float _float) { this._float = _float; - }/** + } + +/** * minimum: 67.8 * maximum: 123.4 **/ @@ -155,7 +165,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setDouble(Double _double) { this._double = _double; - }/** + } + +/** **/ public FormatTest string(String string) { this.string = string; @@ -173,7 +185,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setString(String string) { this.string = string; - }/** + } + +/** **/ public FormatTest _byte(byte[] _byte) { this._byte = _byte; @@ -192,7 +206,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setByte(byte[] _byte) { this._byte = _byte; - }/** + } + +/** **/ public FormatTest binary(File binary) { this.binary = binary; @@ -210,7 +226,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setBinary(File binary) { this.binary = binary; - }/** + } + +/** **/ public FormatTest date(LocalDate date) { this.date = date; @@ -229,7 +247,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setDate(LocalDate date) { this.date = date; - }/** + } + +/** **/ public FormatTest dateTime(Date dateTime) { this.dateTime = dateTime; @@ -247,7 +267,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setDateTime(Date dateTime) { this.dateTime = dateTime; - }/** + } + +/** **/ public FormatTest uuid(UUID uuid) { this.uuid = uuid; @@ -265,7 +287,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setUuid(UUID uuid) { this.uuid = uuid; - }/** + } + +/** **/ public FormatTest password(String password) { this.password = password; @@ -284,7 +308,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPassword(String password) { this.password = password; - }/** + } + +/** **/ public FormatTest bigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; @@ -304,6 +330,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.bigDecimal = bigDecimal; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index cebb1bb512..6438846d56 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -37,7 +37,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setBar(String bar) { this.bar = bar; - }/** + } + +/** **/ public HasOnlyReadOnly foo(String foo) { this.foo = foo; @@ -57,6 +59,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.foo = foo; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java index be225de067..0462e9f525 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java @@ -75,7 +75,25 @@ public enum InnerEnum { public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; - }/** + } + + public MapTest putMapMapOfStringItem(String key, Map mapMapOfStringItem) { + if (this.mapMapOfString == null) { + this.mapMapOfString = new HashMap>(); + } + + this.mapMapOfString.put(key, mapMapOfStringItem); + return this; + } + + public MapTest removeMapMapOfStringItem(Map mapMapOfStringItem) { + if (mapMapOfStringItem != null && this.mapMapOfString != null) { + this.mapMapOfString.remove(mapMapOfStringItem); + } + + return this; + } +/** **/ public MapTest mapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; @@ -93,7 +111,25 @@ public enum InnerEnum { public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; - }/** + } + + public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) { + if (this.mapOfEnumString == null) { + this.mapOfEnumString = new HashMap(); + } + + this.mapOfEnumString.put(key, mapOfEnumStringItem); + return this; + } + + public MapTest removeMapOfEnumStringItem(InnerEnum mapOfEnumStringItem) { + if (mapOfEnumStringItem != null && this.mapOfEnumString != null) { + this.mapOfEnumString.remove(mapOfEnumStringItem); + } + + return this; + } +/** **/ public MapTest directMap(Map directMap) { this.directMap = directMap; @@ -111,7 +147,25 @@ public enum InnerEnum { public void setDirectMap(Map directMap) { this.directMap = directMap; - }/** + } + + public MapTest putDirectMapItem(String key, Boolean directMapItem) { + if (this.directMap == null) { + this.directMap = new HashMap(); + } + + this.directMap.put(key, directMapItem); + return this; + } + + public MapTest removeDirectMapItem(Boolean directMapItem) { + if (directMapItem != null && this.directMap != null) { + this.directMap.remove(directMapItem); + } + + return this; + } +/** **/ public MapTest indirectMap(Map indirectMap) { this.indirectMap = indirectMap; @@ -131,6 +185,23 @@ public enum InnerEnum { this.indirectMap = indirectMap; } + public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { + if (this.indirectMap == null) { + this.indirectMap = new HashMap(); + } + + this.indirectMap.put(key, indirectMapItem); + return this; + } + + public MapTest removeIndirectMapItem(Boolean indirectMapItem) { + if (indirectMapItem != null && this.indirectMap != null) { + this.indirectMap.remove(indirectMapItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 136a4fab11..344620b685 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -44,7 +44,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setUuid(UUID uuid) { this.uuid = uuid; - }/** + } + +/** **/ public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) { this.dateTime = dateTime; @@ -62,7 +64,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setDateTime(Date dateTime) { this.dateTime = dateTime; - }/** + } + +/** **/ public MixedPropertiesAndAdditionalPropertiesClass map(Map map) { this.map = map; @@ -82,6 +86,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.map = map; } + public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) { + if (this.map == null) { + this.map = new HashMap(); + } + + this.map.put(key, mapItem); + return this; + } + + public MixedPropertiesAndAdditionalPropertiesClass removeMapItem(Animal mapItem) { + if (mapItem != null && this.map != null) { + this.map.remove(mapItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Model200Response.java index 3a8a04baa8..d96df1acea 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Model200Response.java @@ -39,7 +39,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setName(Integer name) { this.name = name; - }/** + } + +/** **/ public Model200Response propertyClass(String propertyClass) { this.propertyClass = propertyClass; @@ -59,6 +61,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.propertyClass = propertyClass; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelApiResponse.java index f382361e58..952439560b 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -38,7 +38,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setCode(Integer code) { this.code = code; - }/** + } + +/** **/ public ModelApiResponse type(String type) { this.type = type; @@ -56,7 +58,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setType(String type) { this.type = type; - }/** + } + +/** **/ public ModelApiResponse message(String message) { this.message = message; @@ -76,6 +80,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.message = message; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelReturn.java index 30180e1f25..6d6cb5b806 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ModelReturn.java @@ -40,6 +40,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this._return = _return; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java index 199e9772bf..6fd504dbe9 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java @@ -42,7 +42,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setName(Integer name) { this.name = name; - }/** + } + +/** **/ public Name snakeCase(Integer snakeCase) { this.snakeCase = snakeCase; @@ -60,7 +62,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setSnakeCase(Integer snakeCase) { this.snakeCase = snakeCase; - }/** + } + +/** **/ public Name property(String property) { this.property = property; @@ -78,7 +82,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setProperty(String property) { this.property = property; - }/** + } + +/** **/ public Name _123number(Integer _123number) { this._123number = _123number; @@ -98,6 +104,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this._123number = _123number; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NumberOnly.java index 6e62b0792c..07a70cd9da 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NumberOnly.java @@ -39,6 +39,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.justNumber = justNumber; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Order.java index 6a877eda5d..9929a0d504 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Order.java @@ -75,7 +75,9 @@ public enum StatusEnum { public void setId(Long id) { this.id = id; - }/** + } + +/** **/ public Order petId(Long petId) { this.petId = petId; @@ -93,7 +95,9 @@ public enum StatusEnum { public void setPetId(Long petId) { this.petId = petId; - }/** + } + +/** **/ public Order quantity(Integer quantity) { this.quantity = quantity; @@ -111,7 +115,9 @@ public enum StatusEnum { public void setQuantity(Integer quantity) { this.quantity = quantity; - }/** + } + +/** **/ public Order shipDate(Date shipDate) { this.shipDate = shipDate; @@ -129,7 +135,9 @@ public enum StatusEnum { public void setShipDate(Date shipDate) { this.shipDate = shipDate; - }/** + } + +/** * Order Status **/ public Order status(StatusEnum status) { @@ -148,7 +156,9 @@ public enum StatusEnum { public void setStatus(StatusEnum status) { this.status = status; - }/** + } + +/** **/ public Order complete(Boolean complete) { this.complete = complete; @@ -168,6 +178,7 @@ public enum StatusEnum { this.complete = complete; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterComposite.java index 118a92239c..6e34a0e0a8 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterComposite.java @@ -39,7 +39,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; - }/** + } + +/** **/ public OuterComposite myString(String myString) { this.myString = myString; @@ -57,7 +59,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setMyString(String myString) { this.myString = myString; - }/** + } + +/** **/ public OuterComposite myBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; @@ -77,6 +81,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.myBoolean = myBoolean; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java index c0e131f545..b009a3df92 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java @@ -80,7 +80,9 @@ public enum StatusEnum { public void setId(Long id) { this.id = id; - }/** + } + +/** **/ public Pet category(Category category) { this.category = category; @@ -98,7 +100,9 @@ public enum StatusEnum { public void setCategory(Category category) { this.category = category; - }/** + } + +/** **/ public Pet name(String name) { this.name = name; @@ -117,7 +121,9 @@ public enum StatusEnum { public void setName(String name) { this.name = name; - }/** + } + +/** **/ public Pet photoUrls(Set photoUrls) { this.photoUrls = photoUrls; @@ -136,7 +142,25 @@ public enum StatusEnum { public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; - }/** + } + + public Pet addPhotoUrlsItem(String photoUrlsItem) { + if (this.photoUrls == null) { + this.photoUrls = new LinkedHashSet(); + } + + this.photoUrls.add(photoUrlsItem); + return this; + } + + public Pet removePhotoUrlsItem(String photoUrlsItem) { + if (photoUrlsItem != null && this.photoUrls != null) { + this.photoUrls.remove(photoUrlsItem); + } + + return this; + } +/** **/ public Pet tags(List tags) { this.tags = tags; @@ -154,7 +178,25 @@ public enum StatusEnum { public void setTags(List tags) { this.tags = tags; - }/** + } + + public Pet addTagsItem(Tag tagsItem) { + if (this.tags == null) { + this.tags = new ArrayList(); + } + + this.tags.add(tagsItem); + return this; + } + + public Pet removeTagsItem(Tag tagsItem) { + if (tagsItem != null && this.tags != null) { + this.tags.remove(tagsItem); + } + + return this; + } +/** * pet status in the store **/ public Pet status(StatusEnum status) { @@ -175,6 +217,7 @@ public enum StatusEnum { this.status = status; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 8ab6292e7f..72efcebf52 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -37,7 +37,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setBar(String bar) { this.bar = bar; - }/** + } + +/** **/ public ReadOnlyFirst baz(String baz) { this.baz = baz; @@ -57,6 +59,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.baz = baz; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/SpecialModelName.java index 61f7ae1e72..ece6b68dc3 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -38,6 +38,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.$specialPropertyName = $specialPropertyName; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/StringBooleanMap.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/StringBooleanMap.java deleted file mode 100644 index e48ad0840a..0000000000 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/StringBooleanMap.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.openapitools.model; - -import java.util.HashMap; -import java.util.Map; -import java.io.Serializable; -import javax.validation.constraints.*; -import javax.validation.Valid; - -import io.swagger.annotations.*; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - - - -public class StringBooleanMap extends HashMap implements Serializable { - - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StringBooleanMap stringBooleanMap = (StringBooleanMap) o; - return true; - } - - @Override - public int hashCode() { - return Objects.hash(); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class StringBooleanMap {\n"); - sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} - diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Tag.java index 5f85573098..1c7c519889 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Tag.java @@ -37,7 +37,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setId(Long id) { this.id = id; - }/** + } + +/** **/ public Tag name(String name) { this.name = name; @@ -57,6 +59,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.name = name; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 8ad93d7553..07a1d5d87e 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -44,7 +44,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setStringItem(String stringItem) { this.stringItem = stringItem; - }/** + } + +/** **/ public TypeHolderDefault numberItem(BigDecimal numberItem) { this.numberItem = numberItem; @@ -63,7 +65,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; - }/** + } + +/** **/ public TypeHolderDefault integerItem(Integer integerItem) { this.integerItem = integerItem; @@ -82,7 +86,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; - }/** + } + +/** **/ public TypeHolderDefault boolItem(Boolean boolItem) { this.boolItem = boolItem; @@ -101,7 +107,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; - }/** + } + +/** **/ public TypeHolderDefault arrayItem(List arrayItem) { this.arrayItem = arrayItem; @@ -122,6 +130,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayItem = arrayItem; } + public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { + if (this.arrayItem == null) { + this.arrayItem = new ArrayList(); + } + + this.arrayItem.add(arrayItemItem); + return this; + } + + public TypeHolderDefault removeArrayItemItem(Integer arrayItemItem) { + if (arrayItemItem != null && this.arrayItem != null) { + this.arrayItem.remove(arrayItemItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java index fe7be2d28e..38951dee34 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -45,7 +45,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setStringItem(String stringItem) { this.stringItem = stringItem; - }/** + } + +/** **/ public TypeHolderExample numberItem(BigDecimal numberItem) { this.numberItem = numberItem; @@ -64,7 +66,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; - }/** + } + +/** **/ public TypeHolderExample floatItem(Float floatItem) { this.floatItem = floatItem; @@ -83,7 +87,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setFloatItem(Float floatItem) { this.floatItem = floatItem; - }/** + } + +/** **/ public TypeHolderExample integerItem(Integer integerItem) { this.integerItem = integerItem; @@ -102,7 +108,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; - }/** + } + +/** **/ public TypeHolderExample boolItem(Boolean boolItem) { this.boolItem = boolItem; @@ -121,7 +129,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; - }/** + } + +/** **/ public TypeHolderExample arrayItem(List arrayItem) { this.arrayItem = arrayItem; @@ -142,6 +152,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayItem = arrayItem; } + public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { + if (this.arrayItem == null) { + this.arrayItem = new ArrayList(); + } + + this.arrayItem.add(arrayItemItem); + return this; + } + + public TypeHolderExample removeArrayItemItem(Integer arrayItemItem) { + if (arrayItemItem != null && this.arrayItem != null) { + this.arrayItem.remove(arrayItemItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/User.java index 6e82dd75fe..ad16074f63 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/User.java @@ -43,7 +43,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setId(Long id) { this.id = id; - }/** + } + +/** **/ public User username(String username) { this.username = username; @@ -61,7 +63,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setUsername(String username) { this.username = username; - }/** + } + +/** **/ public User firstName(String firstName) { this.firstName = firstName; @@ -79,7 +83,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setFirstName(String firstName) { this.firstName = firstName; - }/** + } + +/** **/ public User lastName(String lastName) { this.lastName = lastName; @@ -97,7 +103,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setLastName(String lastName) { this.lastName = lastName; - }/** + } + +/** **/ public User email(String email) { this.email = email; @@ -115,7 +123,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setEmail(String email) { this.email = email; - }/** + } + +/** **/ public User password(String password) { this.password = password; @@ -133,7 +143,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPassword(String password) { this.password = password; - }/** + } + +/** **/ public User phone(String phone) { this.phone = phone; @@ -151,7 +163,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPhone(String phone) { this.phone = phone; - }/** + } + +/** * User Status **/ public User userStatus(Integer userStatus) { @@ -172,6 +186,7 @@ import com.fasterxml.jackson.annotation.JsonValue; this.userStatus = userStatus; } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/XmlItem.java index 596002cf3a..b45dded155 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/XmlItem.java @@ -67,7 +67,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAttributeString(String attributeString) { this.attributeString = attributeString; - }/** + } + +/** **/ public XmlItem attributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; @@ -85,7 +87,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; - }/** + } + +/** **/ public XmlItem attributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; @@ -103,7 +107,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; - }/** + } + +/** **/ public XmlItem attributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; @@ -121,7 +127,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; - }/** + } + +/** **/ public XmlItem wrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; @@ -139,7 +147,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; - }/** + } + + public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { + if (this.wrappedArray == null) { + this.wrappedArray = new ArrayList(); + } + + this.wrappedArray.add(wrappedArrayItem); + return this; + } + + public XmlItem removeWrappedArrayItem(Integer wrappedArrayItem) { + if (wrappedArrayItem != null && this.wrappedArray != null) { + this.wrappedArray.remove(wrappedArrayItem); + } + + return this; + } +/** **/ public XmlItem nameString(String nameString) { this.nameString = nameString; @@ -157,7 +183,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameString(String nameString) { this.nameString = nameString; - }/** + } + +/** **/ public XmlItem nameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; @@ -175,7 +203,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; - }/** + } + +/** **/ public XmlItem nameInteger(Integer nameInteger) { this.nameInteger = nameInteger; @@ -193,7 +223,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; - }/** + } + +/** **/ public XmlItem nameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; @@ -211,7 +243,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; - }/** + } + +/** **/ public XmlItem nameArray(List nameArray) { this.nameArray = nameArray; @@ -229,7 +263,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameArray(List nameArray) { this.nameArray = nameArray; - }/** + } + + public XmlItem addNameArrayItem(Integer nameArrayItem) { + if (this.nameArray == null) { + this.nameArray = new ArrayList(); + } + + this.nameArray.add(nameArrayItem); + return this; + } + + public XmlItem removeNameArrayItem(Integer nameArrayItem) { + if (nameArrayItem != null && this.nameArray != null) { + this.nameArray.remove(nameArrayItem); + } + + return this; + } +/** **/ public XmlItem nameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; @@ -247,7 +299,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; - }/** + } + + public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { + if (this.nameWrappedArray == null) { + this.nameWrappedArray = new ArrayList(); + } + + this.nameWrappedArray.add(nameWrappedArrayItem); + return this; + } + + public XmlItem removeNameWrappedArrayItem(Integer nameWrappedArrayItem) { + if (nameWrappedArrayItem != null && this.nameWrappedArray != null) { + this.nameWrappedArray.remove(nameWrappedArrayItem); + } + + return this; + } +/** **/ public XmlItem prefixString(String prefixString) { this.prefixString = prefixString; @@ -265,7 +335,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixString(String prefixString) { this.prefixString = prefixString; - }/** + } + +/** **/ public XmlItem prefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; @@ -283,7 +355,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; - }/** + } + +/** **/ public XmlItem prefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; @@ -301,7 +375,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; - }/** + } + +/** **/ public XmlItem prefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; @@ -319,7 +395,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; - }/** + } + +/** **/ public XmlItem prefixArray(List prefixArray) { this.prefixArray = prefixArray; @@ -337,7 +415,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; - }/** + } + + public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { + if (this.prefixArray == null) { + this.prefixArray = new ArrayList(); + } + + this.prefixArray.add(prefixArrayItem); + return this; + } + + public XmlItem removePrefixArrayItem(Integer prefixArrayItem) { + if (prefixArrayItem != null && this.prefixArray != null) { + this.prefixArray.remove(prefixArrayItem); + } + + return this; + } +/** **/ public XmlItem prefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; @@ -355,7 +451,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; - }/** + } + + public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { + if (this.prefixWrappedArray == null) { + this.prefixWrappedArray = new ArrayList(); + } + + this.prefixWrappedArray.add(prefixWrappedArrayItem); + return this; + } + + public XmlItem removePrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { + if (prefixWrappedArrayItem != null && this.prefixWrappedArray != null) { + this.prefixWrappedArray.remove(prefixWrappedArrayItem); + } + + return this; + } +/** **/ public XmlItem namespaceString(String namespaceString) { this.namespaceString = namespaceString; @@ -373,7 +487,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; - }/** + } + +/** **/ public XmlItem namespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; @@ -391,7 +507,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; - }/** + } + +/** **/ public XmlItem namespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; @@ -409,7 +527,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; - }/** + } + +/** **/ public XmlItem namespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; @@ -427,7 +547,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; - }/** + } + +/** **/ public XmlItem namespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; @@ -445,7 +567,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; - }/** + } + + public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { + if (this.namespaceArray == null) { + this.namespaceArray = new ArrayList(); + } + + this.namespaceArray.add(namespaceArrayItem); + return this; + } + + public XmlItem removeNamespaceArrayItem(Integer namespaceArrayItem) { + if (namespaceArrayItem != null && this.namespaceArray != null) { + this.namespaceArray.remove(namespaceArrayItem); + } + + return this; + } +/** **/ public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; @@ -463,7 +603,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; - }/** + } + + public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { + if (this.namespaceWrappedArray == null) { + this.namespaceWrappedArray = new ArrayList(); + } + + this.namespaceWrappedArray.add(namespaceWrappedArrayItem); + return this; + } + + public XmlItem removeNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { + if (namespaceWrappedArrayItem != null && this.namespaceWrappedArray != null) { + this.namespaceWrappedArray.remove(namespaceWrappedArrayItem); + } + + return this; + } +/** **/ public XmlItem prefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; @@ -481,7 +639,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; - }/** + } + +/** **/ public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; @@ -499,7 +659,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; - }/** + } + +/** **/ public XmlItem prefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; @@ -517,7 +679,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; - }/** + } + +/** **/ public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; @@ -535,7 +699,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; - }/** + } + +/** **/ public XmlItem prefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; @@ -553,7 +719,25 @@ import com.fasterxml.jackson.annotation.JsonValue; public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; - }/** + } + + public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { + if (this.prefixNsArray == null) { + this.prefixNsArray = new ArrayList(); + } + + this.prefixNsArray.add(prefixNsArrayItem); + return this; + } + + public XmlItem removePrefixNsArrayItem(Integer prefixNsArrayItem) { + if (prefixNsArrayItem != null && this.prefixNsArray != null) { + this.prefixNsArray.remove(prefixNsArrayItem); + } + + return this; + } +/** **/ public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; @@ -573,6 +757,23 @@ import com.fasterxml.jackson.annotation.JsonValue; this.prefixNsWrappedArray = prefixNsWrappedArray; } + public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { + if (this.prefixNsWrappedArray == null) { + this.prefixNsWrappedArray = new ArrayList(); + } + + this.prefixNsWrappedArray.add(prefixNsWrappedArrayItem); + return this; + } + + public XmlItem removePrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { + if (prefixNsWrappedArrayItem != null && this.prefixNsWrappedArray != null) { + this.prefixNsWrappedArray.remove(prefixNsWrappedArrayItem); + } + + return this; + } + @Override public boolean equals(Object o) { if (this == o) { From b7f389aacbd4e1e93743409ac0139f5d1bc6fb60 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 27 Mar 2021 14:57:26 +0800 Subject: [PATCH 16/32] minor code improvement (#9091) --- .../languages/AbstractPythonCodegen.java | 56 ++++++++++--------- .../languages/PythonClientCodegen.java | 19 +++---- 2 files changed, 38 insertions(+), 37 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonCodegen.java index c24a3714e0..2765920fab 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonCodegen.java @@ -37,7 +37,7 @@ import java.util.regex.Pattern; import static org.openapitools.codegen.utils.StringUtils.camelize; import static org.openapitools.codegen.utils.StringUtils.underscore; -abstract public class AbstractPythonCodegen extends DefaultCodegen implements CodegenConfig { +public abstract class AbstractPythonCodegen extends DefaultCodegen implements CodegenConfig { private final Logger LOGGER = LoggerFactory.getLogger(AbstractPythonCodegen.class); protected String packageName = "openapi_client"; @@ -144,7 +144,7 @@ abstract public class AbstractPythonCodegen extends DefaultCodegen implements Co public String toDefaultValue(Schema p) { if (ModelUtils.isBooleanSchema(p)) { if (p.getDefault() != null) { - if (Boolean.valueOf(p.getDefault().toString()) == false) + if (!Boolean.valueOf(p.getDefault().toString())) return "False"; else return "True"; @@ -166,11 +166,13 @@ abstract public class AbstractPythonCodegen extends DefaultCodegen implements Co if (Pattern.compile("\r\n|\r|\n").matcher((String) p.getDefault()).find()) return "'''" + p.getDefault() + "'''"; else - return "'" + ((String) p.getDefault()).replaceAll("'", "\'") + "'"; + return "'" + ((String) p.getDefault()).replace("'", "\'") + "'"; } } else if (ModelUtils.isArraySchema(p)) { if (p.getDefault() != null) { return p.getDefault().toString(); + } else { + return null; } } @@ -231,13 +233,13 @@ abstract public class AbstractPythonCodegen extends DefaultCodegen implements Co // method name cannot use reserved keyword, e.g. return if (isReservedWord(operationId)) { - LOGGER.warn(operationId + " (reserved word) cannot be used as method name. Renamed to " + underscore(sanitizeName("call_" + operationId))); + LOGGER.warn("{} (reserved word) cannot be used as method name. Renamed to {}", operationId, underscore(sanitizeName("call_" + operationId))); operationId = "call_" + operationId; } // operationId starts with a number if (operationId.matches("^\\d.*")) { - LOGGER.warn(operationId + " (starting with a number) cannot be used as method name. Renamed to " + underscore(sanitizeName("call_" + operationId))); + LOGGER.warn("{} (starting with a number) cannot be used as method name. Renamed to {}", operationId, underscore(sanitizeName("call_" + operationId))); operationId = "call_" + operationId; } @@ -275,7 +277,7 @@ abstract public class AbstractPythonCodegen extends DefaultCodegen implements Co if (exitValue != 0) { LOGGER.error("Error running the command ({}). Exit value: {}", command, exitValue); } else { - LOGGER.info("Successfully executed: " + command); + LOGGER.info("Successfully executed: {}", command); } } catch (InterruptedException | IOException e) { LOGGER.error("Error running the command ({}). Exception: {}", command, e.getMessage()); @@ -287,12 +289,12 @@ abstract public class AbstractPythonCodegen extends DefaultCodegen implements Co @Override public String toExampleValue(Schema schema) { - return toExampleValueRecursive(schema, new ArrayList(), 5); + return toExampleValueRecursive(schema, new ArrayList<>(), 5); } - private String toExampleValueRecursive(Schema schema, List included_schemas, int indentation) { - String indentation_string = ""; - for (int i = 0; i < indentation; i++) indentation_string += " "; + private String toExampleValueRecursive(Schema schema, List includedSchemas, int indentation) { + String indentationString = ""; + for (int i = 0; i < indentation; i++) indentationString += " "; String example = null; if (schema.getExample() != null) { example = schema.getExample().toString(); @@ -345,9 +347,9 @@ abstract public class AbstractPythonCodegen extends DefaultCodegen implements Co refSchema.setTitle(ref); } if (StringUtils.isNotBlank(schema.getTitle()) && !"null".equals(schema.getTitle())) { - included_schemas.add(schema.getTitle()); + includedSchemas.add(schema.getTitle()); } - return toExampleValueRecursive(refSchema, included_schemas, indentation); + return toExampleValueRecursive(refSchema, includedSchemas, indentation); } } else { LOGGER.warn("allDefinitions not defined in toExampleValue!\n"); @@ -410,25 +412,25 @@ abstract public class AbstractPythonCodegen extends DefaultCodegen implements Co example = "True"; } else if (ModelUtils.isArraySchema(schema)) { if (StringUtils.isNotBlank(schema.getTitle()) && !"null".equals(schema.getTitle())) { - included_schemas.add(schema.getTitle()); + includedSchemas.add(schema.getTitle()); } ArraySchema arrayschema = (ArraySchema) schema; - example = "[\n" + indentation_string + toExampleValueRecursive(arrayschema.getItems(), included_schemas, indentation + 1) + "\n" + indentation_string + "]"; + example = "[\n" + indentationString + toExampleValueRecursive(arrayschema.getItems(), includedSchemas, indentation + 1) + "\n" + indentationString + "]"; } else if (ModelUtils.isMapSchema(schema)) { if (StringUtils.isNotBlank(schema.getTitle()) && !"null".equals(schema.getTitle())) { - included_schemas.add(schema.getTitle()); + includedSchemas.add(schema.getTitle()); } Object additionalObject = schema.getAdditionalProperties(); if (additionalObject instanceof Schema) { Schema additional = (Schema) additionalObject; - String the_key = "'key'"; + String theKey = "'key'"; if (additional.getEnum() != null && !additional.getEnum().isEmpty()) { - the_key = additional.getEnum().get(0).toString(); + theKey = additional.getEnum().get(0).toString(); if (ModelUtils.isStringSchema(additional)) { - the_key = "'" + escapeText(the_key) + "'"; + theKey = "'" + escapeText(theKey) + "'"; } } - example = "{\n" + indentation_string + the_key + " : " + toExampleValueRecursive(additional, included_schemas, indentation + 1) + "\n" + indentation_string + "}"; + example = "{\n" + indentationString + theKey + " : " + toExampleValueRecursive(additional, includedSchemas, indentation + 1) + "\n" + indentationString + "}"; } else { example = "{ }"; } @@ -462,13 +464,13 @@ abstract public class AbstractPythonCodegen extends DefaultCodegen implements Co if (toExclude != null && reqs.contains(toExclude)) { reqs.remove(toExclude); } - for (String toRemove : included_schemas) { + for (String toRemove : includedSchemas) { if (reqs.contains(toRemove)) { reqs.remove(toRemove); } } if (StringUtils.isNotBlank(schema.getTitle()) && !"null".equals(schema.getTitle())) { - included_schemas.add(schema.getTitle()); + includedSchemas.add(schema.getTitle()); } if (null != schema.getRequired()) for (Object toAdd : schema.getRequired()) { reqs.add((String) toAdd); @@ -480,14 +482,14 @@ abstract public class AbstractPythonCodegen extends DefaultCodegen implements Co if (StringUtils.isBlank(refTitle) || "null".equals(refTitle)) { schema2.setTitle(propname); } - example += "\n" + indentation_string + underscore(propname) + " = " + - toExampleValueRecursive(schema2, included_schemas, indentation + 1) + ", "; + example += "\n" + indentationString + underscore(propname) + " = " + + toExampleValueRecursive(schema2, includedSchemas, indentation + 1) + ", "; } } } example += ")"; } else { - LOGGER.warn("Type " + schema.getType() + " not handled properly in toExampleValue"); + LOGGER.warn("Type {} not handled properly in toExampleValue", schema.getType()); } if (ModelUtils.isStringSchema(schema)) { @@ -549,7 +551,7 @@ abstract public class AbstractPythonCodegen extends DefaultCodegen implements Co // type is a model class, e.g. User example = this.packageName + "." + type + "()"; } else { - LOGGER.warn("Type " + type + " not handled properly in setParameterExampleValue"); + LOGGER.warn("Type {} not handled properly in setParameterExampleValue", type); } if (example == null) { @@ -632,13 +634,13 @@ abstract public class AbstractPythonCodegen extends DefaultCodegen implements Co // model name cannot use reserved keyword, e.g. return if (isReservedWord(name)) { - LOGGER.warn(name + " (reserved word) cannot be used as model name. Renamed to " + camelize("model_" + name)); + LOGGER.warn("{} (reserved word) cannot be used as model name. Renamed to {}", name, camelize("model_" + name)); name = "model_" + name; // e.g. return => ModelReturn (after camelize) } // model name starts with number if (name.matches("^\\d.*")) { - LOGGER.warn(name + " (model name starts with number) cannot be used as model name. Renamed to " + camelize("model_" + name)); + LOGGER.warn("{} (model name starts with number) cannot be used as model name. Renamed to {}", name, camelize("model_" + name)); name = "model_" + name; // e.g. 200Response => Model200Response (after camelize) } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index 1d51e2a0b7..039d237135 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -219,11 +219,12 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { // free form object (type: object) if (ModelUtils.hasValidation(ref)) { return schema; - } else if (getAllOfDescendants(simpleRef, openAPI).size() > 0) { + } else if (!getAllOfDescendants(simpleRef, openAPI).isEmpty()) { return schema; + } else { + return unaliasSchema(allSchemas.get(ModelUtils.getSimpleRef(schema.get$ref())), + usedImportMappings); } - return unaliasSchema(allSchemas.get(ModelUtils.getSimpleRef(schema.get$ref())), - usedImportMappings); } } else if (ModelUtils.hasValidation(ref)) { // non object non array non map schemas that have validations @@ -246,7 +247,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { try { date = (OffsetDateTime) dateValue; } catch (ClassCastException e) { - LOGGER.warn("Invalid `date` format for value {}", dateValue.toString()); + LOGGER.warn("Invalid `date` format for value {}", dateValue); date = ((Date) dateValue).toInstant().atOffset(ZoneOffset.UTC); } strValue = date.format(iso8601Date); @@ -263,7 +264,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { try { dateTime = (OffsetDateTime) dateTimeValue; } catch (ClassCastException e) { - LOGGER.warn("Invalid `date-time` format for value {}", dateTimeValue.toString()); + LOGGER.warn("Invalid `date-time` format for value {}", dateTimeValue); dateTime = ((Date) dateTimeValue).toInstant().atOffset(ZoneOffset.UTC); } strValue = dateTime.format(iso8601DateTime); @@ -286,10 +287,9 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { // python servers: should only use default values for optional params // python clients: should only use default values for required params Object defaultObject = null; - Boolean enumLengthOne = (p.getEnum() != null && p.getEnum().size() == 1); if (p.getDefault() != null) { defaultObject = p.getDefault(); - } else if (enumLengthOne) { + } else if (p.getEnum() != null && p.getEnum().size() == 1) { defaultObject = p.getEnum().get(0); } @@ -305,7 +305,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { } else if (ModelUtils.isStringSchema(p) && !ModelUtils.isByteArraySchema(p) && !ModelUtils.isBinarySchema(p) && !ModelUtils.isFileSchema(p) && !ModelUtils.isUUIDSchema(p) && !ModelUtils.isEmailSchema(p)) { defaultValue = ensureQuotes(defaultValue); } else if (ModelUtils.isBooleanSchema(p)) { - if (Boolean.valueOf(defaultValue) == false) { + if (!Boolean.valueOf(defaultValue)) { defaultValue = "False"; } else { defaultValue = "True"; @@ -329,9 +329,8 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { HashMap val = (HashMap) objs.get("operations"); ArrayList operations = (ArrayList) val.get("operation"); - ArrayList> imports = (ArrayList>) objs.get("imports"); for (CodegenOperation operation : operations) { - if (operation.imports.size() == 0) { + if (operation.imports.isEmpty()) { continue; } String[] modelNames = operation.imports.toArray(new String[0]); From 45654d28edf5fc2f86d601b20b336a8215516084 Mon Sep 17 00:00:00 2001 From: Blackclaws Date: Sat, 27 Mar 2021 08:20:58 +0100 Subject: [PATCH 17/32] [csharp][netcore-httpclient] Reuse HttpClient, Allow use of external HttpClient, Fix Socket Exhaustion, Alternative With Constructor Injection (#9085) * Do not allow not reusing HttpClient, fix socket exhaustion issues, add Readme on how to add your own client * Add Readme change * Alternative version via constructor injection * Update samples * Update usage in ExecAsync * Clean Constructor * Add Warning to constructor, Update Samples * Add warning, fix last constructor, update samples * Change client to private in constructor injection * Add disposable to ApiClient * Do not dispose handler if we did not create it * Update samples * Add disable switch and update samples and documentation --- .../resources/csharp-netcore/README.mustache | 23 + .../libraries/httpclient/ApiClient.mustache | 99 +-- .../libraries/httpclient/api.mustache | 652 ++++++++++++++++++ .../OpenAPIClient-httpclient/README.md | 21 + .../Org.OpenAPITools/Api/AnotherFakeApi.cs | 42 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 42 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 42 +- .../Api/FakeClassnameTags123Api.cs | 42 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 42 +- .../src/Org.OpenAPITools/Api/StoreApi.cs | 42 +- .../src/Org.OpenAPITools/Api/UserApi.cs | 42 +- .../src/Org.OpenAPITools/Client/ApiClient.cs | 89 ++- 12 files changed, 1058 insertions(+), 120 deletions(-) create mode 100644 modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/README.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/README.mustache index 5f2713355d..e9e3655c5c 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/README.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/README.mustache @@ -100,6 +100,29 @@ System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/"); webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; c.Proxy = webProxy; ``` +{{#useHttpClient}} + +To use your own HttpClient instances just pass them to the ApiClass constructor. + +```csharp +HttpClientHandler yourHandler = new HttpClientHandler(); +HttpClient yourHttpClient = new HttpClient(yourHandler); +var api = new YourApiClass(yourHttpClient, yourHandler); +``` + +If you want to use an HttpClient and don't have access to the handler, for example in a DI context in aspnetcore when +using IHttpClientFactory. You need to disable the features that require handler access: + +```csharp +HttpClient yourHttpClient = new HttpClient(); +var api = new YourApiClass(yourHttpClient, null, true); +``` + +The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. +You need to either manually handle those in your setup of the HttpClient or they won't be available. + + +{{/useHttpClient}} ## Getting Started diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache index 4c31f4e127..23ba41d1a0 100644 --- a/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/ApiClient.mustache @@ -161,13 +161,16 @@ namespace {{packageName}}.Client /// Provides a default implementation of an Api client (both synchronous and asynchronous implementatios), /// encapsulating general REST accessor use cases. /// - {{>visibility}} partial class ApiClient : ISynchronousClient{{#supportsAsync}}, IAsynchronousClient{{/supportsAsync}} + {{>visibility}} partial class ApiClient : IDisposable, ISynchronousClient{{#supportsAsync}}, IAsynchronousClient{{/supportsAsync}} { private readonly String _baseUrl; - {{#reUseHttpClient}} + private readonly HttpClientHandler _httpClientHandler; + private readonly bool _disposeHandler; private readonly HttpClient _httpClient; - {{/reUseHttpClient}} + private readonly bool _disposeClient; + + private readonly bool _disableHandlerFeatures; /// /// Specifies the settings on a object. @@ -189,30 +192,50 @@ namespace {{packageName}}.Client /// /// Initializes a new instance of the , defaulting to the global configurations' base url. /// - public ApiClient() + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler + public ApiClient(HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) : + this({{packageName}}.Client.GlobalConfiguration.Instance.BasePath, client, handler, disableHandlerFeatures) { - _baseUrl = {{packageName}}.Client.GlobalConfiguration.Instance.BasePath; - {{#reUseHttpClient}} - _httpClientHandler = new HttpClientHandler(); - _httpClient = new HttpClient(_httpClientHandler); - {{/reUseHttpClient}} } /// /// Initializes a new instance of the /// /// The target service's base path in URL format. + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public ApiClient(String basePath) + public ApiClient(String basePath, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty"); _baseUrl = basePath; - {{#reUseHttpClient}} - _httpClientHandler = new HttpClientHandler(); - _httpClient = new HttpClient(_httpClientHandler); - {{/reUseHttpClient}} + if((client != null && handler == null) && !disableHandlerFeatures) { + throw new ArgumentException("If providing HttpClient, you also need to provide its handler or disable features requiring the handler, see README.md"); + } + + _disableHandlerFeatures = disableHandlerFeatures; + _httpClientHandler = handler ?? new HttpClientHandler(); + _disposeHandler = handler == null; + _httpClient = client ?? new HttpClient(_httpClientHandler, false); + _disposeClient = client == null; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + if(_disposeClient) { + _httpClient.Dispose(); + } + if(_disposeHandler) { + _httpClientHandler.Dispose(); + } } /// Prepares multipart/form-data content @@ -275,6 +298,11 @@ namespace {{packageName}}.Client HttpRequestMessage request = new HttpRequestMessage(method, builder.GetFullUri()); + if (configuration.UserAgent != null) + { + request.Headers.TryAddWithoutValidation("User-Agent", configuration.UserAgent); + } + if (configuration.DefaultHeaders != null) { foreach (var headerParam in configuration.DefaultHeaders) @@ -377,15 +405,18 @@ namespace {{packageName}}.Client } } - if (response != null) + if(!_disableHandlerFeatures) { - try { - foreach (Cookie cookie in handler.CookieContainer.GetCookies(uri)) - { - transformed.Cookies.Add(cookie); + if (response != null) + { + try { + foreach (Cookie cookie in handler.CookieContainer.GetCookies(uri)) + { + transformed.Cookies.Add(cookie); + } } + catch (PlatformNotSupportedException) {} } - catch (PlatformNotSupportedException) {} } return transformed; @@ -400,14 +431,8 @@ namespace {{packageName}}.Client IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - {{^reUseHttpClient}} - var handler = new HttpClientHandler(); - var client = new HttpClient(); - {{/reUseHttpClient}} - {{#reUseHttpClient}} var handler = _httpClientHandler; var client = _httpClient; - {{/reUseHttpClient}} var deserializer = new CustomJsonCodec(SerializerSettings, configuration); var finalToken = cancellationToken; @@ -417,20 +442,16 @@ namespace {{packageName}}.Client var tokenSource = new CancellationTokenSource(configuration.Timeout); finalToken = CancellationTokenSource.CreateLinkedTokenSource(finalToken, tokenSource.Token).Token; } + if(!_disableHandlerFeatures) { + if (configuration.Proxy != null) + { + handler.Proxy = configuration.Proxy; + } - if (configuration.Proxy != null) - { - handler.Proxy = configuration.Proxy; - } - - if (configuration.UserAgent != null) - { - client.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", configuration.UserAgent); - } - - if (configuration.ClientCertificates != null) - { - handler.ClientCertificates.AddRange(configuration.ClientCertificates); + if (configuration.ClientCertificates != null) + { + handler.ClientCertificates.AddRange(configuration.ClientCertificates); + } } var cookieContainer = req.Properties.ContainsKey("CookieContainer") ? req.Properties["CookieContainer"] as List : null; diff --git a/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache new file mode 100644 index 0000000000..4bb08fb682 --- /dev/null +++ b/modules/openapi-generator/src/main/resources/csharp-netcore/libraries/httpclient/api.mustache @@ -0,0 +1,652 @@ +{{>partial_header}} + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Net.Mime; +using {{packageName}}.Client; +{{#hasImport}}using {{packageName}}.{{modelPackage}}; +{{/hasImport}} + +namespace {{packageName}}.{{apiPackage}} +{ + {{#operations}} + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + {{>visibility}} interface {{interfacePrefix}}{{classname}}Sync : IApiAccessor + { + #region Synchronous Operations + {{#operation}} + /// + /// {{summary}} + /// + {{#notes}} + /// + /// {{notes}} + /// + {{/notes}} + /// Thrown when fails to make API call + {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + {{/allParams}}/// {{#returnType}}{{returnType}}{{/returnType}} + {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}); + + /// + /// {{summary}} + /// + /// + /// {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + {{/allParams}}/// ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}} + ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}); + {{/operation}} + #endregion Synchronous Operations + } + + {{#supportsAsync}} + /// + /// Represents a collection of functions to interact with the API endpoints + /// + {{>visibility}} interface {{interfacePrefix}}{{classname}}Async : IApiAccessor + { + #region Asynchronous Operations + {{#operation}} + /// + /// {{summary}} + /// + /// + /// {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}} + /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + {{/allParams}} + /// Cancellation Token to cancel the request. + /// Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}} + {{#returnType}}System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// {{summary}} + /// + /// + /// {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}} + /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + {{/allParams}} + /// Cancellation Token to cancel the request. + /// Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}} + System.Threading.Tasks.Task> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + {{/operation}} + #endregion Asynchronous Operations + } + {{/supportsAsync}} + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + {{>visibility}} interface {{interfacePrefix}}{{classname}} : {{interfacePrefix}}{{classname}}Sync{{#supportsAsync}}, {{interfacePrefix}}{{classname}}Async{{/supportsAsync}} + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + {{>visibility}} partial class {{classname}} : IDisposable, {{interfacePrefix}}{{classname}} + { + private {{packageName}}.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler + /// + public {{classname}}(HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) : this((string)null, client, handler, disableHandlerFeatures) + { + + } + + /// + /// Initializes a new instance of the class. + /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler + /// + public {{classname}}(String basePath, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) + { + this.Configuration = {{packageName}}.Client.Configuration.MergeConfigurations( + {{packageName}}.Client.GlobalConfiguration.Instance, + new {{packageName}}.Client.Configuration { BasePath = basePath } + ); + this.ApiClient = new {{packageName}}.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + {{#supportsAsync}} + this.AsynchronousClient = this.ApiClient; + {{/supportsAsync}} + this.ExceptionFactory = {{packageName}}.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler + /// + public {{classname}}({{packageName}}.Client.Configuration configuration, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = {{packageName}}.Client.Configuration.MergeConfigurations( + {{packageName}}.Client.GlobalConfiguration.Instance, + configuration + ); + this.ApiClient = new {{packageName}}.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + {{#supportsAsync}} + this.AsynchronousClient = this.ApiClient; + {{/supportsAsync}} + ExceptionFactory = {{packageName}}.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access.{{#supportsAsync}} + /// The client interface for asynchronous API access.{{/supportsAsync}} + /// The configuration object. + public {{classname}}({{packageName}}.Client.ISynchronousClient client, {{#supportsAsync}}{{packageName}}.Client.IAsynchronousClient asyncClient, {{/supportsAsync}}{{packageName}}.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + {{#supportsAsync}} + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + {{/supportsAsync}} + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + {{#supportsAsync}} + this.AsynchronousClient = asyncClient; + {{/supportsAsync}} + this.Configuration = configuration; + this.ExceptionFactory = {{packageName}}.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public {{packageName}}.Client.ApiClient ApiClient { get; set; } = null; + + {{#supportsAsync}} + /// + /// The client for accessing this underlying API asynchronously. + /// + public {{packageName}}.Client.IAsynchronousClient AsynchronousClient { get; set; } + {{/supportsAsync}} + + /// + /// The client for accessing this underlying API synchronously. + /// + public {{packageName}}.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public String GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public {{packageName}}.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public {{packageName}}.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + {{#operation}} + /// + /// {{summary}} {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + {{/allParams}}/// {{#returnType}}{{returnType}}{{/returnType}} + public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}) + { + {{#returnType}}{{packageName}}.Client.ApiResponse<{{{returnType}}}> localVarResponse = {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}); + return localVarResponse.Data;{{/returnType}}{{^returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}});{{/returnType}} + } + + /// + /// {{summary}} {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}}/// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + {{/allParams}}/// ApiResponse of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Object(void){{/returnType}} + public {{packageName}}.Client.ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}) + { + {{#allParams}} + {{#required}} + {{^vendorExtensions.x-csharp-value-type}} + // verify the required parameter '{{paramName}}' is set + if ({{paramName}} == null) + throw new {{packageName}}.Client.ApiException(400, "Missing required parameter '{{paramName}}' when calling {{classname}}->{{operationId}}"); + + {{/vendorExtensions.x-csharp-value-type}} + {{/required}} + {{/allParams}} + {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + {{#consumes}} + "{{{mediaType}}}"{{^-last}},{{/-last}} + {{/consumes}} + }; + + // to determine the Accept header + String[] _accepts = new String[] { + {{#produces}} + "{{{mediaType}}}"{{^-last}},{{/-last}} + {{/produces}} + }; + + var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = {{packageName}}.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + {{#pathParams}} + {{#required}} + localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // path parameter + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // path parameter + } + {{/required}} + {{/pathParams}} + {{#queryParams}} + {{#required}} + {{#isDeepObject}} + {{#items.vars}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}", "{{baseName}}", {{paramName}}.{{name}})); + {{/items.vars}} + {{^items}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("deepObject", "{{baseName}}", {{paramName}})); + {{/items}} + {{/isDeepObject}} + {{^isDeepObject}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}", "{{baseName}}", {{paramName}})); + {{/isDeepObject}} + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + {{#isDeepObject}} + {{#items.vars}} + if ({{paramName}}.{{name}} != null) + { + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}", "{{baseName}}", {{paramName}}.{{name}})); + } + {{/items.vars}} + {{^items}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("deepObject", "{{baseName}}", {{paramName}})); + {{/items}} + {{/isDeepObject}} + {{^isDeepObject}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}", "{{baseName}}", {{paramName}})); + {{/isDeepObject}} + } + {{/required}} + {{/queryParams}} + {{#headerParams}} + {{#required}} + localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // header parameter + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // header parameter + } + {{/required}} + {{/headerParams}} + {{#formParams}} + {{#required}} + {{#isFile}} + localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}}); + {{/isFile}} + {{^isFile}} + localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter + {{/isFile}} + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + {{#isFile}} + localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}}); + {{/isFile}} + {{^isFile}} + localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter + {{/isFile}} + } + {{/required}} + {{/formParams}} + {{#bodyParam}} + localVarRequestOptions.Data = {{paramName}}; + {{/bodyParam}} + + {{#authMethods}} + // authentication ({{name}}) required + {{#isApiKey}} + {{#isKeyInCookie}} + // cookie parameter support + if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); + } + {{/isKeyInCookie}} + {{#isKeyInHeader}} + if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")); + } + {{/isKeyInHeader}} + {{#isKeyInQuery}} + if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); + } + {{/isKeyInQuery}} + {{/isApiKey}} + {{#isBasicBasic}} + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + {{/isBasicBasic}} + {{#isBasicBearer}} + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + {{/isBasicBearer}} + {{#isOAuth}} + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + {{/isOAuth}} + {{#isHttpSignature}} + if (this.Configuration.HttpSigningConfiguration != null) + { + var HttpSigningHeaders = this.Configuration.HttpSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "{{{httpMethod}}}", "{{{path}}}", localVarRequestOptions); + foreach (var headerItem in HttpSigningHeaders) + { + if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key)) + { + localVarRequestOptions.HeaderParameters[headerItem.Key] = new List() { headerItem.Value }; + } + else + { + localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value); + } + } + } + {{/isHttpSignature}} + {{/authMethods}} + + // make the HTTP request + var localVarResponse = this.Client.{{#lambda.titlecase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.titlecase}}<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>("{{{path}}}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("{{operationId}}", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + {{#supportsAsync}} + /// + /// {{summary}} {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}} + /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + {{/allParams}} + /// Cancellation Token to cancel the request. + /// Task of {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}void{{/returnType}} + {{#returnType}}public async System.Threading.Tasks.Task<{{{returnType}}}>{{/returnType}}{{^returnType}}public async System.Threading.Tasks.Task{{/returnType}} {{operationId}}Async({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + {{#returnType}}{{packageName}}.Client.ApiResponse<{{{returnType}}}> localVarResponse = await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken).ConfigureAwait(false); + return localVarResponse.Data;{{/returnType}}{{^returnType}}await {{operationId}}WithHttpInfoAsync({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}cancellationToken).ConfigureAwait(false);{{/returnType}} + } + + /// + /// {{summary}} {{notes}} + /// + /// Thrown when fails to make API call + {{#allParams}} + /// {{description}}{{^required}} (optional{{#defaultValue}}, default to {{.}}{{/defaultValue}}){{/required}} + {{/allParams}} + /// Cancellation Token to cancel the request. + /// Task of ApiResponse{{#returnType}} ({{returnType}}){{/returnType}} + public async System.Threading.Tasks.Task<{{packageName}}.Client.ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>> {{operationId}}WithHttpInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default({{{dataType}}}){{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + {{#allParams}} + {{#required}} + {{^vendorExtensions.x-csharp-value-type}} + // verify the required parameter '{{paramName}}' is set + if ({{paramName}} == null) + throw new {{packageName}}.Client.ApiException(400, "Missing required parameter '{{paramName}}' when calling {{classname}}->{{operationId}}"); + + {{/vendorExtensions.x-csharp-value-type}} + {{/required}} + {{/allParams}} + + {{packageName}}.Client.RequestOptions localVarRequestOptions = new {{packageName}}.Client.RequestOptions(); + + String[] _contentTypes = new String[] { + {{#consumes}} + "{{{mediaType}}}"{{^-last}}, {{/-last}} + {{/consumes}} + }; + + // to determine the Accept header + String[] _accepts = new String[] { + {{#produces}} + "{{{mediaType}}}"{{^-last}},{{/-last}} + {{/produces}} + }; + + + var localVarContentType = {{packageName}}.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = {{packageName}}.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + {{#pathParams}} + {{#required}} + localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // path parameter + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + localVarRequestOptions.PathParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // path parameter + } + {{/required}} + {{/pathParams}} + {{#queryParams}} + {{#required}} + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}", "{{baseName}}", {{paramName}})); + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}", "{{baseName}}", {{paramName}})); + } + {{/required}} + {{/queryParams}} + {{#headerParams}} + {{#required}} + localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // header parameter + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + localVarRequestOptions.HeaderParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // header parameter + } + {{/required}} + {{/headerParams}} + {{#formParams}} + {{#required}} + {{#isFile}} + localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}}); + {{/isFile}} + {{^isFile}} + localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter + {{/isFile}} + {{/required}} + {{^required}} + if ({{paramName}} != null) + { + {{#isFile}} + localVarRequestOptions.FileParameters.Add("{{baseName}}", {{paramName}}); + {{/isFile}} + {{^isFile}} + localVarRequestOptions.FormParameters.Add("{{baseName}}", {{packageName}}.Client.ClientUtils.ParameterToString({{paramName}})); // form parameter + {{/isFile}} + } + {{/required}} + {{/formParams}} + {{#bodyParam}} + localVarRequestOptions.Data = {{paramName}}; + {{/bodyParam}} + + {{#authMethods}} + // authentication ({{name}}) required + {{#isApiKey}} + {{#isKeyInCookie}} + // cookie parameter support + if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); + } + {{/isKeyInCookie}} + {{#isKeyInHeader}} + if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.HeaderParameters.Add("{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}")); + } + {{/isKeyInHeader}} + {{#isKeyInQuery}} + if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))) + { + localVarRequestOptions.QueryParameters.Add({{packageName}}.Client.ClientUtils.ParameterToMultiMap("", "{{keyParamName}}", this.Configuration.GetApiKeyWithPrefix("{{keyParamName}}"))); + } + {{/isKeyInQuery}} + {{/isApiKey}} + {{#isBasic}} + {{#isBasicBasic}} + // http basic authentication required + if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Basic " + {{packageName}}.Client.ClientUtils.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password)); + } + {{/isBasicBasic}} + {{#isBasicBearer}} + // bearer authentication required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + {{/isBasicBearer}} + {{/isBasic}} + {{#isOAuth}} + // oauth required + if (!String.IsNullOrEmpty(this.Configuration.AccessToken)) + { + localVarRequestOptions.HeaderParameters.Add("Authorization", "Bearer " + this.Configuration.AccessToken); + } + {{/isOAuth}} + {{#isHttpSignature}} + if (this.Configuration.HttpSigningConfiguration != null) + { + var HttpSigningHeaders = this.Configuration.HttpSigningConfiguration.GetHttpSignedHeader(this.Configuration.BasePath, "{{{httpMethod}}}", "{{{path}}}", localVarRequestOptions); + foreach (var headerItem in HttpSigningHeaders) + { + if (localVarRequestOptions.HeaderParameters.ContainsKey(headerItem.Key)) + { + localVarRequestOptions.HeaderParameters[headerItem.Key] = new List() { headerItem.Value }; + } + else + { + localVarRequestOptions.HeaderParameters.Add(headerItem.Key, headerItem.Value); + } + } + } + {{/isHttpSignature}} + {{/authMethods}} + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.{{#lambda.titlecase}}{{#lambda.lowercase}}{{httpMethod}}{{/lambda.lowercase}}{{/lambda.titlecase}}Async<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}>("{{{path}}}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("{{operationId}}", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + {{/supportsAsync}} + {{/operation}} + } + {{/operations}} +} diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/README.md b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/README.md index a38ef843b0..ff1567b9aa 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/README.md +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/README.md @@ -50,6 +50,27 @@ webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials; c.Proxy = webProxy; ``` +To use your own HttpClient instances just pass them to the ApiClass constructor. + +```csharp +HttpClientHandler yourHandler = new HttpClientHandler(); +HttpClient yourHttpClient = new HttpClient(yourHandler); +var api = new YourApiClass(yourHttpClient, yourHandler); +``` + +If you want to use an HttpClient and don't have access to the handler, for example in a DI context in aspnetcore when +using IHttpClientFactory. You need to disable the features that require handler access: + +```csharp +HttpClient yourHttpClient = new HttpClient(); +var api = new YourApiClass(yourHttpClient, null, true); +``` + +The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings. +You need to either manually handle those in your setup of the HttpClient or they won't be available. + + + ## Getting Started diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs index 94d8b854b0..58e3683c24 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/AnotherFakeApi.cs @@ -13,6 +13,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net; +using System.Net.Http; using System.Net.Mime; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; @@ -93,30 +94,38 @@ namespace Org.OpenAPITools.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public partial class AnotherFakeApi : IAnotherFakeApi + public partial class AnotherFakeApi : IDisposable, IAnotherFakeApi { private Org.OpenAPITools.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public AnotherFakeApi() : this((string)null) + public AnotherFakeApi(HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) : this((string)null, client, handler, disableHandlerFeatures) { + } /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public AnotherFakeApi(String basePath) + public AnotherFakeApi(String basePath, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, new Org.OpenAPITools.Client.Configuration { BasePath = basePath } ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -125,8 +134,11 @@ namespace Org.OpenAPITools.Api /// using Configuration object /// /// An instance of Configuration + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public AnotherFakeApi(Org.OpenAPITools.Client.Configuration configuration) + public AnotherFakeApi(Org.OpenAPITools.Client.Configuration configuration, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { if (configuration == null) throw new ArgumentNullException("configuration"); @@ -134,8 +146,9 @@ namespace Org.OpenAPITools.Api Org.OpenAPITools.Client.GlobalConfiguration.Instance, configuration ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -158,6 +171,19 @@ namespace Org.OpenAPITools.Api this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Org.OpenAPITools.Client.ApiClient ApiClient { get; set; } = null; + /// /// The client for accessing this underlying API asynchronously. /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs index 27789c4533..c9d39aec22 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -13,6 +13,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net; +using System.Net.Http; using System.Net.Mime; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; @@ -86,30 +87,38 @@ namespace Org.OpenAPITools.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public partial class DefaultApi : IDefaultApi + public partial class DefaultApi : IDisposable, IDefaultApi { private Org.OpenAPITools.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public DefaultApi() : this((string)null) + public DefaultApi(HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) : this((string)null, client, handler, disableHandlerFeatures) { + } /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public DefaultApi(String basePath) + public DefaultApi(String basePath, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, new Org.OpenAPITools.Client.Configuration { BasePath = basePath } ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -118,8 +127,11 @@ namespace Org.OpenAPITools.Api /// using Configuration object /// /// An instance of Configuration + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public DefaultApi(Org.OpenAPITools.Client.Configuration configuration) + public DefaultApi(Org.OpenAPITools.Client.Configuration configuration, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { if (configuration == null) throw new ArgumentNullException("configuration"); @@ -127,8 +139,9 @@ namespace Org.OpenAPITools.Api Org.OpenAPITools.Client.GlobalConfiguration.Instance, configuration ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -151,6 +164,19 @@ namespace Org.OpenAPITools.Api this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Org.OpenAPITools.Client.ApiClient ApiClient { get; set; } = null; + /// /// The client for accessing this underlying API asynchronously. /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs index d774915131..22fd5bf56e 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeApi.cs @@ -13,6 +13,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net; +using System.Net.Http; using System.Net.Mime; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; @@ -810,30 +811,38 @@ namespace Org.OpenAPITools.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public partial class FakeApi : IFakeApi + public partial class FakeApi : IDisposable, IFakeApi { private Org.OpenAPITools.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public FakeApi() : this((string)null) + public FakeApi(HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) : this((string)null, client, handler, disableHandlerFeatures) { + } /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public FakeApi(String basePath) + public FakeApi(String basePath, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, new Org.OpenAPITools.Client.Configuration { BasePath = basePath } ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -842,8 +851,11 @@ namespace Org.OpenAPITools.Api /// using Configuration object /// /// An instance of Configuration + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public FakeApi(Org.OpenAPITools.Client.Configuration configuration) + public FakeApi(Org.OpenAPITools.Client.Configuration configuration, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { if (configuration == null) throw new ArgumentNullException("configuration"); @@ -851,8 +863,9 @@ namespace Org.OpenAPITools.Api Org.OpenAPITools.Client.GlobalConfiguration.Instance, configuration ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -875,6 +888,19 @@ namespace Org.OpenAPITools.Api this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Org.OpenAPITools.Client.ApiClient ApiClient { get; set; } = null; + /// /// The client for accessing this underlying API asynchronously. /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs index 56ebdf5fd1..413e4dc088 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/FakeClassnameTags123Api.cs @@ -13,6 +13,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net; +using System.Net.Http; using System.Net.Mime; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; @@ -93,30 +94,38 @@ namespace Org.OpenAPITools.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public partial class FakeClassnameTags123Api : IFakeClassnameTags123Api + public partial class FakeClassnameTags123Api : IDisposable, IFakeClassnameTags123Api { private Org.OpenAPITools.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public FakeClassnameTags123Api() : this((string)null) + public FakeClassnameTags123Api(HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) : this((string)null, client, handler, disableHandlerFeatures) { + } /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public FakeClassnameTags123Api(String basePath) + public FakeClassnameTags123Api(String basePath, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, new Org.OpenAPITools.Client.Configuration { BasePath = basePath } ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -125,8 +134,11 @@ namespace Org.OpenAPITools.Api /// using Configuration object /// /// An instance of Configuration + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public FakeClassnameTags123Api(Org.OpenAPITools.Client.Configuration configuration) + public FakeClassnameTags123Api(Org.OpenAPITools.Client.Configuration configuration, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { if (configuration == null) throw new ArgumentNullException("configuration"); @@ -134,8 +146,9 @@ namespace Org.OpenAPITools.Api Org.OpenAPITools.Client.GlobalConfiguration.Instance, configuration ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -158,6 +171,19 @@ namespace Org.OpenAPITools.Api this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Org.OpenAPITools.Client.ApiClient ApiClient { get; set; } = null; + /// /// The client for accessing this underlying API asynchronously. /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/PetApi.cs index 61759145f1..2857ea58fe 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/PetApi.cs @@ -13,6 +13,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net; +using System.Net.Http; using System.Net.Mime; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; @@ -455,30 +456,38 @@ namespace Org.OpenAPITools.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public partial class PetApi : IPetApi + public partial class PetApi : IDisposable, IPetApi { private Org.OpenAPITools.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public PetApi() : this((string)null) + public PetApi(HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) : this((string)null, client, handler, disableHandlerFeatures) { + } /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public PetApi(String basePath) + public PetApi(String basePath, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, new Org.OpenAPITools.Client.Configuration { BasePath = basePath } ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -487,8 +496,11 @@ namespace Org.OpenAPITools.Api /// using Configuration object /// /// An instance of Configuration + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public PetApi(Org.OpenAPITools.Client.Configuration configuration) + public PetApi(Org.OpenAPITools.Client.Configuration configuration, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { if (configuration == null) throw new ArgumentNullException("configuration"); @@ -496,8 +508,9 @@ namespace Org.OpenAPITools.Api Org.OpenAPITools.Client.GlobalConfiguration.Instance, configuration ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -520,6 +533,19 @@ namespace Org.OpenAPITools.Api this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Org.OpenAPITools.Client.ApiClient ApiClient { get; set; } = null; + /// /// The client for accessing this underlying API asynchronously. /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/StoreApi.cs index 6ab56c9e9b..b2ac30bcb5 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/StoreApi.cs @@ -13,6 +13,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net; +using System.Net.Http; using System.Net.Mime; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; @@ -218,30 +219,38 @@ namespace Org.OpenAPITools.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public partial class StoreApi : IStoreApi + public partial class StoreApi : IDisposable, IStoreApi { private Org.OpenAPITools.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public StoreApi() : this((string)null) + public StoreApi(HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) : this((string)null, client, handler, disableHandlerFeatures) { + } /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public StoreApi(String basePath) + public StoreApi(String basePath, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, new Org.OpenAPITools.Client.Configuration { BasePath = basePath } ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -250,8 +259,11 @@ namespace Org.OpenAPITools.Api /// using Configuration object /// /// An instance of Configuration + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public StoreApi(Org.OpenAPITools.Client.Configuration configuration) + public StoreApi(Org.OpenAPITools.Client.Configuration configuration, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { if (configuration == null) throw new ArgumentNullException("configuration"); @@ -259,8 +271,9 @@ namespace Org.OpenAPITools.Api Org.OpenAPITools.Client.GlobalConfiguration.Instance, configuration ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -283,6 +296,19 @@ namespace Org.OpenAPITools.Api this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Org.OpenAPITools.Client.ApiClient ApiClient { get; set; } = null; + /// /// The client for accessing this underlying API asynchronously. /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/UserApi.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/UserApi.cs index 80436c9b43..3a6c2619d0 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/UserApi.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Api/UserApi.cs @@ -13,6 +13,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Net; +using System.Net.Http; using System.Net.Mime; using Org.OpenAPITools.Client; using Org.OpenAPITools.Model; @@ -390,30 +391,38 @@ namespace Org.OpenAPITools.Api /// /// Represents a collection of functions to interact with the API endpoints /// - public partial class UserApi : IUserApi + public partial class UserApi : IDisposable, IUserApi { private Org.OpenAPITools.Client.ExceptionFactory _exceptionFactory = (name, response) => null; /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public UserApi() : this((string)null) + public UserApi(HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) : this((string)null, client, handler, disableHandlerFeatures) { + } /// /// Initializes a new instance of the class. /// + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public UserApi(String basePath) + public UserApi(String basePath, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { this.Configuration = Org.OpenAPITools.Client.Configuration.MergeConfigurations( Org.OpenAPITools.Client.GlobalConfiguration.Instance, new Org.OpenAPITools.Client.Configuration { BasePath = basePath } ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -422,8 +431,11 @@ namespace Org.OpenAPITools.Api /// using Configuration object /// /// An instance of Configuration + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public UserApi(Org.OpenAPITools.Client.Configuration configuration) + public UserApi(Org.OpenAPITools.Client.Configuration configuration, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { if (configuration == null) throw new ArgumentNullException("configuration"); @@ -431,8 +443,9 @@ namespace Org.OpenAPITools.Api Org.OpenAPITools.Client.GlobalConfiguration.Instance, configuration ); - this.Client = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); - this.AsynchronousClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath); + this.ApiClient = new Org.OpenAPITools.Client.ApiClient(this.Configuration.BasePath, client, handler, disableHandlerFeatures); + this.Client = this.ApiClient; + this.AsynchronousClient = this.ApiClient; ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } @@ -455,6 +468,19 @@ namespace Org.OpenAPITools.Api this.ExceptionFactory = Org.OpenAPITools.Client.Configuration.DefaultExceptionFactory; } + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + this.ApiClient?.Dispose(); + } + + /// + /// Holds the ApiClient if created + /// + public Org.OpenAPITools.Client.ApiClient ApiClient { get; set; } = null; + /// /// The client for accessing this underlying API asynchronously. /// diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ApiClient.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ApiClient.cs index 43dba56948..12c007bdb9 100644 --- a/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ApiClient.cs +++ b/samples/client/petstore/csharp-netcore/OpenAPIClient-httpclient/src/Org.OpenAPITools/Client/ApiClient.cs @@ -161,10 +161,17 @@ namespace Org.OpenAPITools.Client /// Provides a default implementation of an Api client (both synchronous and asynchronous implementatios), /// encapsulating general REST accessor use cases. /// - public partial class ApiClient : ISynchronousClient, IAsynchronousClient + public partial class ApiClient : IDisposable, ISynchronousClient, IAsynchronousClient { private readonly String _baseUrl; + private readonly HttpClientHandler _httpClientHandler; + private readonly bool _disposeHandler; + private readonly HttpClient _httpClient; + private readonly bool _disposeClient; + + private readonly bool _disableHandlerFeatures; + /// /// Specifies the settings on a object. /// These settings can be adjusted to accomodate custom serialization rules. @@ -185,22 +192,50 @@ namespace Org.OpenAPITools.Client /// /// Initializes a new instance of the , defaulting to the global configurations' base url. /// - public ApiClient() + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler + public ApiClient(HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) : + this(Org.OpenAPITools.Client.GlobalConfiguration.Instance.BasePath, client, handler, disableHandlerFeatures) { - _baseUrl = Org.OpenAPITools.Client.GlobalConfiguration.Instance.BasePath; } /// /// Initializes a new instance of the /// /// The target service's base path in URL format. + /// An instance of HttpClient + /// An instance of HttpClientHandler that is used by HttpClient + /// Disable ApiClient features that require access to the HttpClientHandler /// - public ApiClient(String basePath) + public ApiClient(String basePath, HttpClient client = null, HttpClientHandler handler = null, bool disableHandlerFeatures = false) { if (string.IsNullOrEmpty(basePath)) throw new ArgumentException("basePath cannot be empty"); _baseUrl = basePath; + if((client != null && handler == null) && !disableHandlerFeatures) { + throw new ArgumentException("If providing HttpClient, you also need to provide its handler or disable features requiring the handler, see README.md"); + } + + _disableHandlerFeatures = disableHandlerFeatures; + _httpClientHandler = handler ?? new HttpClientHandler(); + _disposeHandler = handler == null; + _httpClient = client ?? new HttpClient(_httpClientHandler, false); + _disposeClient = client == null; + } + + /// + /// Disposes resources if they were created by us + /// + public void Dispose() + { + if(_disposeClient) { + _httpClient.Dispose(); + } + if(_disposeHandler) { + _httpClientHandler.Dispose(); + } } /// Prepares multipart/form-data content @@ -262,6 +297,11 @@ namespace Org.OpenAPITools.Client HttpRequestMessage request = new HttpRequestMessage(method, builder.GetFullUri()); + if (configuration.UserAgent != null) + { + request.Headers.TryAddWithoutValidation("User-Agent", configuration.UserAgent); + } + if (configuration.DefaultHeaders != null) { foreach (var headerParam in configuration.DefaultHeaders) @@ -363,15 +403,18 @@ namespace Org.OpenAPITools.Client } } - if (response != null) + if(!_disableHandlerFeatures) { - try { - foreach (Cookie cookie in handler.CookieContainer.GetCookies(uri)) - { - transformed.Cookies.Add(cookie); + if (response != null) + { + try { + foreach (Cookie cookie in handler.CookieContainer.GetCookies(uri)) + { + transformed.Cookies.Add(cookie); + } } + catch (PlatformNotSupportedException) {} } - catch (PlatformNotSupportedException) {} } return transformed; @@ -386,8 +429,8 @@ namespace Org.OpenAPITools.Client IReadableConfiguration configuration, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - var handler = new HttpClientHandler(); - var client = new HttpClient(); + var handler = _httpClientHandler; + var client = _httpClient; var deserializer = new CustomJsonCodec(SerializerSettings, configuration); var finalToken = cancellationToken; @@ -397,20 +440,16 @@ namespace Org.OpenAPITools.Client var tokenSource = new CancellationTokenSource(configuration.Timeout); finalToken = CancellationTokenSource.CreateLinkedTokenSource(finalToken, tokenSource.Token).Token; } + if(!_disableHandlerFeatures) { + if (configuration.Proxy != null) + { + handler.Proxy = configuration.Proxy; + } - if (configuration.Proxy != null) - { - handler.Proxy = configuration.Proxy; - } - - if (configuration.UserAgent != null) - { - client.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", configuration.UserAgent); - } - - if (configuration.ClientCertificates != null) - { - handler.ClientCertificates.AddRange(configuration.ClientCertificates); + if (configuration.ClientCertificates != null) + { + handler.ClientCertificates.AddRange(configuration.ClientCertificates); + } } var cookieContainer = req.Properties.ContainsKey("CookieContainer") ? req.Properties["CookieContainer"] as List : null; From c99226900b4cc749f7c1508d2ccb8647250ac777 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Sat, 27 Mar 2021 18:47:57 +0800 Subject: [PATCH 18/32] update samples --- .../petstore/javascript-es6/package.json | 2 +- .../javascript-promise-es6/package.json | 2 +- .../model/AdditionalPropertiesClass.java | 128 ---------------- .../model/ArrayOfArrayOfNumberOnly.java | 16 -- .../openapitools/model/ArrayOfNumberOnly.java | 16 -- .../org/openapitools/model/ArrayTest.java | 48 ------ .../org/openapitools/model/EnumArrays.java | 16 -- .../model/FileSchemaTestClass.java | 16 -- .../java/org/openapitools/model/MapTest.java | 64 -------- ...ropertiesAndAdditionalPropertiesClass.java | 16 -- .../gen/java/org/openapitools/model/Pet.java | 32 ---- .../openapitools/model/TypeHolderDefault.java | 16 -- .../openapitools/model/TypeHolderExample.java | 16 -- .../java/org/openapitools/model/XmlItem.java | 144 ------------------ .../model/AdditionalPropertiesClass.java | 128 ---------------- .../model/ArrayOfArrayOfNumberOnly.java | 16 -- .../openapitools/model/ArrayOfNumberOnly.java | 16 -- .../org/openapitools/model/ArrayTest.java | 48 ------ .../org/openapitools/model/EnumArrays.java | 16 -- .../model/FileSchemaTestClass.java | 16 -- .../java/org/openapitools/model/MapTest.java | 64 -------- ...ropertiesAndAdditionalPropertiesClass.java | 16 -- .../gen/java/org/openapitools/model/Pet.java | 32 ---- .../openapitools/model/TypeHolderDefault.java | 16 -- .../openapitools/model/TypeHolderExample.java | 16 -- .../java/org/openapitools/model/XmlItem.java | 144 ------------------ 26 files changed, 2 insertions(+), 1058 deletions(-) diff --git a/samples/client/petstore/javascript-es6/package.json b/samples/client/petstore/javascript-es6/package.json index 6c8020661c..dfa8bf720f 100644 --- a/samples/client/petstore/javascript-es6/package.json +++ b/samples/client/petstore/javascript-es6/package.json @@ -6,7 +6,7 @@ "main": "dist/index.js", "scripts": { "build": "babel src -d dist", - "prepack": "npm run build", + "prepare": "npm run build", "test": "mocha --require @babel/register --recursive" }, "browser": { diff --git a/samples/client/petstore/javascript-promise-es6/package.json b/samples/client/petstore/javascript-promise-es6/package.json index 6c8020661c..dfa8bf720f 100644 --- a/samples/client/petstore/javascript-promise-es6/package.json +++ b/samples/client/petstore/javascript-promise-es6/package.json @@ -6,7 +6,7 @@ "main": "dist/index.js", "scripts": { "build": "babel src -d dist", - "prepack": "npm run build", + "prepare": "npm run build", "test": "mocha --require @babel/register --recursive" }, "browser": { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index e745b6846a..ab1baad997 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -52,22 +52,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapString = mapString; } - public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) { - if (this.mapString == null) { - this.mapString = new HashMap(); - } - - this.mapString.put(key, mapStringItem); - return this; - } - - public AdditionalPropertiesClass removeMapStringItem(String mapStringItem) { - if (mapStringItem != null && this.mapString != null) { - this.mapString.remove(mapStringItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapNumber(Map mapNumber) { @@ -88,22 +72,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapNumber = mapNumber; } - public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) { - if (this.mapNumber == null) { - this.mapNumber = new HashMap(); - } - - this.mapNumber.put(key, mapNumberItem); - return this; - } - - public AdditionalPropertiesClass removeMapNumberItem(BigDecimal mapNumberItem) { - if (mapNumberItem != null && this.mapNumber != null) { - this.mapNumber.remove(mapNumberItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapInteger(Map mapInteger) { @@ -124,22 +92,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapInteger = mapInteger; } - public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) { - if (this.mapInteger == null) { - this.mapInteger = new HashMap(); - } - - this.mapInteger.put(key, mapIntegerItem); - return this; - } - - public AdditionalPropertiesClass removeMapIntegerItem(Integer mapIntegerItem) { - if (mapIntegerItem != null && this.mapInteger != null) { - this.mapInteger.remove(mapIntegerItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { @@ -160,22 +112,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) { - if (this.mapBoolean == null) { - this.mapBoolean = new HashMap(); - } - - this.mapBoolean.put(key, mapBooleanItem); - return this; - } - - public AdditionalPropertiesClass removeMapBooleanItem(Boolean mapBooleanItem) { - if (mapBooleanItem != null && this.mapBoolean != null) { - this.mapBoolean.remove(mapBooleanItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { @@ -196,22 +132,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List mapArrayIntegerItem) { - if (this.mapArrayInteger == null) { - this.mapArrayInteger = new HashMap>(); - } - - this.mapArrayInteger.put(key, mapArrayIntegerItem); - return this; - } - - public AdditionalPropertiesClass removeMapArrayIntegerItem(List mapArrayIntegerItem) { - if (mapArrayIntegerItem != null && this.mapArrayInteger != null) { - this.mapArrayInteger.remove(mapArrayIntegerItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { @@ -232,22 +152,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List mapArrayAnytypeItem) { - if (this.mapArrayAnytype == null) { - this.mapArrayAnytype = new HashMap>(); - } - - this.mapArrayAnytype.put(key, mapArrayAnytypeItem); - return this; - } - - public AdditionalPropertiesClass removeMapArrayAnytypeItem(List mapArrayAnytypeItem) { - if (mapArrayAnytypeItem != null && this.mapArrayAnytype != null) { - this.mapArrayAnytype.remove(mapArrayAnytypeItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapMapString(Map> mapMapString) { @@ -268,22 +172,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapMapString = mapMapString; } - public AdditionalPropertiesClass putMapMapStringItem(String key, Map mapMapStringItem) { - if (this.mapMapString == null) { - this.mapMapString = new HashMap>(); - } - - this.mapMapString.put(key, mapMapStringItem); - return this; - } - - public AdditionalPropertiesClass removeMapMapStringItem(Map mapMapStringItem) { - if (mapMapStringItem != null && this.mapMapString != null) { - this.mapMapString.remove(mapMapStringItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { @@ -304,22 +192,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map mapMapAnytypeItem) { - if (this.mapMapAnytype == null) { - this.mapMapAnytype = new HashMap>(); - } - - this.mapMapAnytype.put(key, mapMapAnytypeItem); - return this; - } - - public AdditionalPropertiesClass removeMapMapAnytypeItem(Map mapMapAnytypeItem) { - if (mapMapAnytypeItem != null && this.mapMapAnytype != null) { - this.mapMapAnytype.remove(mapMapAnytypeItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass anytype1(Object anytype1) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 7460869a0d..9643930053 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -41,22 +41,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayArrayNumber = arrayArrayNumber; } - public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayArrayNumberItem) { - if (this.arrayArrayNumber == null) { - this.arrayArrayNumber = new ArrayList>(); - } - - this.arrayArrayNumber.add(arrayArrayNumberItem); - return this; - } - - public ArrayOfArrayOfNumberOnly removeArrayArrayNumberItem(List arrayArrayNumberItem) { - if (arrayArrayNumberItem != null && this.arrayArrayNumber != null) { - this.arrayArrayNumber.remove(arrayArrayNumberItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 2a02c2c74f..2c585cdc1e 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -41,22 +41,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayNumber = arrayNumber; } - public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { - if (this.arrayNumber == null) { - this.arrayNumber = new ArrayList(); - } - - this.arrayNumber.add(arrayNumberItem); - return this; - } - - public ArrayOfNumberOnly removeArrayNumberItem(BigDecimal arrayNumberItem) { - if (arrayNumberItem != null && this.arrayNumber != null) { - this.arrayNumber.remove(arrayNumberItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java index f4c67f4dcc..edc0b7a948 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java @@ -43,22 +43,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayOfString = arrayOfString; } - public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { - if (this.arrayOfString == null) { - this.arrayOfString = new ArrayList(); - } - - this.arrayOfString.add(arrayOfStringItem); - return this; - } - - public ArrayTest removeArrayOfStringItem(String arrayOfStringItem) { - if (arrayOfStringItem != null && this.arrayOfString != null) { - this.arrayOfString.remove(arrayOfStringItem); - } - - return this; - } /** **/ public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { @@ -79,22 +63,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) { - if (this.arrayArrayOfInteger == null) { - this.arrayArrayOfInteger = new ArrayList>(); - } - - this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem); - return this; - } - - public ArrayTest removeArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) { - if (arrayArrayOfIntegerItem != null && this.arrayArrayOfInteger != null) { - this.arrayArrayOfInteger.remove(arrayArrayOfIntegerItem); - } - - return this; - } /** **/ public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { @@ -115,22 +83,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayArrayOfModel = arrayArrayOfModel; } - public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelItem) { - if (this.arrayArrayOfModel == null) { - this.arrayArrayOfModel = new ArrayList>(); - } - - this.arrayArrayOfModel.add(arrayArrayOfModelItem); - return this; - } - - public ArrayTest removeArrayArrayOfModelItem(List arrayArrayOfModelItem) { - if (arrayArrayOfModelItem != null && this.arrayArrayOfModel != null) { - this.arrayArrayOfModel.remove(arrayArrayOfModelItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java index a033bca007..fc7770afa0 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java @@ -127,22 +127,6 @@ public enum ArrayEnumEnum { this.arrayEnum = arrayEnum; } - public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { - if (this.arrayEnum == null) { - this.arrayEnum = new ArrayList(); - } - - this.arrayEnum.add(arrayEnumItem); - return this; - } - - public EnumArrays removeArrayEnumItem(ArrayEnumEnum arrayEnumItem) { - if (arrayEnumItem != null && this.arrayEnum != null) { - this.arrayEnum.remove(arrayEnumItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 5ad48e0217..b8ba37d5cd 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -61,22 +61,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.files = files; } - public FileSchemaTestClass addFilesItem(java.io.File filesItem) { - if (this.files == null) { - this.files = new ArrayList(); - } - - this.files.add(filesItem); - return this; - } - - public FileSchemaTestClass removeFilesItem(java.io.File filesItem) { - if (filesItem != null && this.files != null) { - this.files.remove(filesItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java index 0462e9f525..a8eff4c21b 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java @@ -77,22 +77,6 @@ public enum InnerEnum { this.mapMapOfString = mapMapOfString; } - public MapTest putMapMapOfStringItem(String key, Map mapMapOfStringItem) { - if (this.mapMapOfString == null) { - this.mapMapOfString = new HashMap>(); - } - - this.mapMapOfString.put(key, mapMapOfStringItem); - return this; - } - - public MapTest removeMapMapOfStringItem(Map mapMapOfStringItem) { - if (mapMapOfStringItem != null && this.mapMapOfString != null) { - this.mapMapOfString.remove(mapMapOfStringItem); - } - - return this; - } /** **/ public MapTest mapOfEnumString(Map mapOfEnumString) { @@ -113,22 +97,6 @@ public enum InnerEnum { this.mapOfEnumString = mapOfEnumString; } - public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) { - if (this.mapOfEnumString == null) { - this.mapOfEnumString = new HashMap(); - } - - this.mapOfEnumString.put(key, mapOfEnumStringItem); - return this; - } - - public MapTest removeMapOfEnumStringItem(InnerEnum mapOfEnumStringItem) { - if (mapOfEnumStringItem != null && this.mapOfEnumString != null) { - this.mapOfEnumString.remove(mapOfEnumStringItem); - } - - return this; - } /** **/ public MapTest directMap(Map directMap) { @@ -149,22 +117,6 @@ public enum InnerEnum { this.directMap = directMap; } - public MapTest putDirectMapItem(String key, Boolean directMapItem) { - if (this.directMap == null) { - this.directMap = new HashMap(); - } - - this.directMap.put(key, directMapItem); - return this; - } - - public MapTest removeDirectMapItem(Boolean directMapItem) { - if (directMapItem != null && this.directMap != null) { - this.directMap.remove(directMapItem); - } - - return this; - } /** **/ public MapTest indirectMap(Map indirectMap) { @@ -185,22 +137,6 @@ public enum InnerEnum { this.indirectMap = indirectMap; } - public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { - if (this.indirectMap == null) { - this.indirectMap = new HashMap(); - } - - this.indirectMap.put(key, indirectMapItem); - return this; - } - - public MapTest removeIndirectMapItem(Boolean indirectMapItem) { - if (indirectMapItem != null && this.indirectMap != null) { - this.indirectMap.remove(indirectMapItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 344620b685..aace3762eb 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -86,22 +86,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.map = map; } - public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) { - if (this.map == null) { - this.map = new HashMap(); - } - - this.map.put(key, mapItem); - return this; - } - - public MixedPropertiesAndAdditionalPropertiesClass removeMapItem(Animal mapItem) { - if (mapItem != null && this.map != null) { - this.map.remove(mapItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java index b009a3df92..63e1d1abbd 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java @@ -144,22 +144,6 @@ public enum StatusEnum { this.photoUrls = photoUrls; } - public Pet addPhotoUrlsItem(String photoUrlsItem) { - if (this.photoUrls == null) { - this.photoUrls = new LinkedHashSet(); - } - - this.photoUrls.add(photoUrlsItem); - return this; - } - - public Pet removePhotoUrlsItem(String photoUrlsItem) { - if (photoUrlsItem != null && this.photoUrls != null) { - this.photoUrls.remove(photoUrlsItem); - } - - return this; - } /** **/ public Pet tags(List tags) { @@ -180,22 +164,6 @@ public enum StatusEnum { this.tags = tags; } - public Pet addTagsItem(Tag tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList(); - } - - this.tags.add(tagsItem); - return this; - } - - public Pet removeTagsItem(Tag tagsItem) { - if (tagsItem != null && this.tags != null) { - this.tags.remove(tagsItem); - } - - return this; - } /** * pet status in the store **/ diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 07a1d5d87e..502c22c455 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -130,22 +130,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayItem = arrayItem; } - public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { - if (this.arrayItem == null) { - this.arrayItem = new ArrayList(); - } - - this.arrayItem.add(arrayItemItem); - return this; - } - - public TypeHolderDefault removeArrayItemItem(Integer arrayItemItem) { - if (arrayItemItem != null && this.arrayItem != null) { - this.arrayItem.remove(arrayItemItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java index 38951dee34..fb31859ded 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -152,22 +152,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayItem = arrayItem; } - public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { - if (this.arrayItem == null) { - this.arrayItem = new ArrayList(); - } - - this.arrayItem.add(arrayItemItem); - return this; - } - - public TypeHolderExample removeArrayItemItem(Integer arrayItemItem) { - if (arrayItemItem != null && this.arrayItem != null) { - this.arrayItem.remove(arrayItemItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java index b45dded155..15a5d35673 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java @@ -149,22 +149,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.wrappedArray = wrappedArray; } - public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { - if (this.wrappedArray == null) { - this.wrappedArray = new ArrayList(); - } - - this.wrappedArray.add(wrappedArrayItem); - return this; - } - - public XmlItem removeWrappedArrayItem(Integer wrappedArrayItem) { - if (wrappedArrayItem != null && this.wrappedArray != null) { - this.wrappedArray.remove(wrappedArrayItem); - } - - return this; - } /** **/ public XmlItem nameString(String nameString) { @@ -265,22 +249,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.nameArray = nameArray; } - public XmlItem addNameArrayItem(Integer nameArrayItem) { - if (this.nameArray == null) { - this.nameArray = new ArrayList(); - } - - this.nameArray.add(nameArrayItem); - return this; - } - - public XmlItem removeNameArrayItem(Integer nameArrayItem) { - if (nameArrayItem != null && this.nameArray != null) { - this.nameArray.remove(nameArrayItem); - } - - return this; - } /** **/ public XmlItem nameWrappedArray(List nameWrappedArray) { @@ -301,22 +269,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.nameWrappedArray = nameWrappedArray; } - public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { - if (this.nameWrappedArray == null) { - this.nameWrappedArray = new ArrayList(); - } - - this.nameWrappedArray.add(nameWrappedArrayItem); - return this; - } - - public XmlItem removeNameWrappedArrayItem(Integer nameWrappedArrayItem) { - if (nameWrappedArrayItem != null && this.nameWrappedArray != null) { - this.nameWrappedArray.remove(nameWrappedArrayItem); - } - - return this; - } /** **/ public XmlItem prefixString(String prefixString) { @@ -417,22 +369,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.prefixArray = prefixArray; } - public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { - if (this.prefixArray == null) { - this.prefixArray = new ArrayList(); - } - - this.prefixArray.add(prefixArrayItem); - return this; - } - - public XmlItem removePrefixArrayItem(Integer prefixArrayItem) { - if (prefixArrayItem != null && this.prefixArray != null) { - this.prefixArray.remove(prefixArrayItem); - } - - return this; - } /** **/ public XmlItem prefixWrappedArray(List prefixWrappedArray) { @@ -453,22 +389,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { - if (this.prefixWrappedArray == null) { - this.prefixWrappedArray = new ArrayList(); - } - - this.prefixWrappedArray.add(prefixWrappedArrayItem); - return this; - } - - public XmlItem removePrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { - if (prefixWrappedArrayItem != null && this.prefixWrappedArray != null) { - this.prefixWrappedArray.remove(prefixWrappedArrayItem); - } - - return this; - } /** **/ public XmlItem namespaceString(String namespaceString) { @@ -569,22 +489,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.namespaceArray = namespaceArray; } - public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { - if (this.namespaceArray == null) { - this.namespaceArray = new ArrayList(); - } - - this.namespaceArray.add(namespaceArrayItem); - return this; - } - - public XmlItem removeNamespaceArrayItem(Integer namespaceArrayItem) { - if (namespaceArrayItem != null && this.namespaceArray != null) { - this.namespaceArray.remove(namespaceArrayItem); - } - - return this; - } /** **/ public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { @@ -605,22 +509,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { - if (this.namespaceWrappedArray == null) { - this.namespaceWrappedArray = new ArrayList(); - } - - this.namespaceWrappedArray.add(namespaceWrappedArrayItem); - return this; - } - - public XmlItem removeNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { - if (namespaceWrappedArrayItem != null && this.namespaceWrappedArray != null) { - this.namespaceWrappedArray.remove(namespaceWrappedArrayItem); - } - - return this; - } /** **/ public XmlItem prefixNsString(String prefixNsString) { @@ -721,22 +609,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.prefixNsArray = prefixNsArray; } - public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { - if (this.prefixNsArray == null) { - this.prefixNsArray = new ArrayList(); - } - - this.prefixNsArray.add(prefixNsArrayItem); - return this; - } - - public XmlItem removePrefixNsArrayItem(Integer prefixNsArrayItem) { - if (prefixNsArrayItem != null && this.prefixNsArray != null) { - this.prefixNsArray.remove(prefixNsArrayItem); - } - - return this; - } /** **/ public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { @@ -757,22 +629,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.prefixNsWrappedArray = prefixNsWrappedArray; } - public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { - if (this.prefixNsWrappedArray == null) { - this.prefixNsWrappedArray = new ArrayList(); - } - - this.prefixNsWrappedArray.add(prefixNsWrappedArrayItem); - return this; - } - - public XmlItem removePrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { - if (prefixNsWrappedArrayItem != null && this.prefixNsWrappedArray != null) { - this.prefixNsWrappedArray.remove(prefixNsWrappedArrayItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index e745b6846a..ab1baad997 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -52,22 +52,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapString = mapString; } - public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) { - if (this.mapString == null) { - this.mapString = new HashMap(); - } - - this.mapString.put(key, mapStringItem); - return this; - } - - public AdditionalPropertiesClass removeMapStringItem(String mapStringItem) { - if (mapStringItem != null && this.mapString != null) { - this.mapString.remove(mapStringItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapNumber(Map mapNumber) { @@ -88,22 +72,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapNumber = mapNumber; } - public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) { - if (this.mapNumber == null) { - this.mapNumber = new HashMap(); - } - - this.mapNumber.put(key, mapNumberItem); - return this; - } - - public AdditionalPropertiesClass removeMapNumberItem(BigDecimal mapNumberItem) { - if (mapNumberItem != null && this.mapNumber != null) { - this.mapNumber.remove(mapNumberItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapInteger(Map mapInteger) { @@ -124,22 +92,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapInteger = mapInteger; } - public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) { - if (this.mapInteger == null) { - this.mapInteger = new HashMap(); - } - - this.mapInteger.put(key, mapIntegerItem); - return this; - } - - public AdditionalPropertiesClass removeMapIntegerItem(Integer mapIntegerItem) { - if (mapIntegerItem != null && this.mapInteger != null) { - this.mapInteger.remove(mapIntegerItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapBoolean(Map mapBoolean) { @@ -160,22 +112,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapBoolean = mapBoolean; } - public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) { - if (this.mapBoolean == null) { - this.mapBoolean = new HashMap(); - } - - this.mapBoolean.put(key, mapBooleanItem); - return this; - } - - public AdditionalPropertiesClass removeMapBooleanItem(Boolean mapBooleanItem) { - if (mapBooleanItem != null && this.mapBoolean != null) { - this.mapBoolean.remove(mapBooleanItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) { @@ -196,22 +132,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapArrayInteger = mapArrayInteger; } - public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List mapArrayIntegerItem) { - if (this.mapArrayInteger == null) { - this.mapArrayInteger = new HashMap>(); - } - - this.mapArrayInteger.put(key, mapArrayIntegerItem); - return this; - } - - public AdditionalPropertiesClass removeMapArrayIntegerItem(List mapArrayIntegerItem) { - if (mapArrayIntegerItem != null && this.mapArrayInteger != null) { - this.mapArrayInteger.remove(mapArrayIntegerItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) { @@ -232,22 +152,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapArrayAnytype = mapArrayAnytype; } - public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List mapArrayAnytypeItem) { - if (this.mapArrayAnytype == null) { - this.mapArrayAnytype = new HashMap>(); - } - - this.mapArrayAnytype.put(key, mapArrayAnytypeItem); - return this; - } - - public AdditionalPropertiesClass removeMapArrayAnytypeItem(List mapArrayAnytypeItem) { - if (mapArrayAnytypeItem != null && this.mapArrayAnytype != null) { - this.mapArrayAnytype.remove(mapArrayAnytypeItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapMapString(Map> mapMapString) { @@ -268,22 +172,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapMapString = mapMapString; } - public AdditionalPropertiesClass putMapMapStringItem(String key, Map mapMapStringItem) { - if (this.mapMapString == null) { - this.mapMapString = new HashMap>(); - } - - this.mapMapString.put(key, mapMapStringItem); - return this; - } - - public AdditionalPropertiesClass removeMapMapStringItem(Map mapMapStringItem) { - if (mapMapStringItem != null && this.mapMapString != null) { - this.mapMapString.remove(mapMapStringItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass mapMapAnytype(Map> mapMapAnytype) { @@ -304,22 +192,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.mapMapAnytype = mapMapAnytype; } - public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map mapMapAnytypeItem) { - if (this.mapMapAnytype == null) { - this.mapMapAnytype = new HashMap>(); - } - - this.mapMapAnytype.put(key, mapMapAnytypeItem); - return this; - } - - public AdditionalPropertiesClass removeMapMapAnytypeItem(Map mapMapAnytypeItem) { - if (mapMapAnytypeItem != null && this.mapMapAnytype != null) { - this.mapMapAnytype.remove(mapMapAnytypeItem); - } - - return this; - } /** **/ public AdditionalPropertiesClass anytype1(Object anytype1) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 7460869a0d..9643930053 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -41,22 +41,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayArrayNumber = arrayArrayNumber; } - public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List arrayArrayNumberItem) { - if (this.arrayArrayNumber == null) { - this.arrayArrayNumber = new ArrayList>(); - } - - this.arrayArrayNumber.add(arrayArrayNumberItem); - return this; - } - - public ArrayOfArrayOfNumberOnly removeArrayArrayNumberItem(List arrayArrayNumberItem) { - if (arrayArrayNumberItem != null && this.arrayArrayNumber != null) { - this.arrayArrayNumber.remove(arrayArrayNumberItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 2a02c2c74f..2c585cdc1e 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -41,22 +41,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayNumber = arrayNumber; } - public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) { - if (this.arrayNumber == null) { - this.arrayNumber = new ArrayList(); - } - - this.arrayNumber.add(arrayNumberItem); - return this; - } - - public ArrayOfNumberOnly removeArrayNumberItem(BigDecimal arrayNumberItem) { - if (arrayNumberItem != null && this.arrayNumber != null) { - this.arrayNumber.remove(arrayNumberItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java index f4c67f4dcc..edc0b7a948 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/ArrayTest.java @@ -43,22 +43,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayOfString = arrayOfString; } - public ArrayTest addArrayOfStringItem(String arrayOfStringItem) { - if (this.arrayOfString == null) { - this.arrayOfString = new ArrayList(); - } - - this.arrayOfString.add(arrayOfStringItem); - return this; - } - - public ArrayTest removeArrayOfStringItem(String arrayOfStringItem) { - if (arrayOfStringItem != null && this.arrayOfString != null) { - this.arrayOfString.remove(arrayOfStringItem); - } - - return this; - } /** **/ public ArrayTest arrayArrayOfInteger(List> arrayArrayOfInteger) { @@ -79,22 +63,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayArrayOfInteger = arrayArrayOfInteger; } - public ArrayTest addArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) { - if (this.arrayArrayOfInteger == null) { - this.arrayArrayOfInteger = new ArrayList>(); - } - - this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem); - return this; - } - - public ArrayTest removeArrayArrayOfIntegerItem(List arrayArrayOfIntegerItem) { - if (arrayArrayOfIntegerItem != null && this.arrayArrayOfInteger != null) { - this.arrayArrayOfInteger.remove(arrayArrayOfIntegerItem); - } - - return this; - } /** **/ public ArrayTest arrayArrayOfModel(List> arrayArrayOfModel) { @@ -115,22 +83,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayArrayOfModel = arrayArrayOfModel; } - public ArrayTest addArrayArrayOfModelItem(List arrayArrayOfModelItem) { - if (this.arrayArrayOfModel == null) { - this.arrayArrayOfModel = new ArrayList>(); - } - - this.arrayArrayOfModel.add(arrayArrayOfModelItem); - return this; - } - - public ArrayTest removeArrayArrayOfModelItem(List arrayArrayOfModelItem) { - if (arrayArrayOfModelItem != null && this.arrayArrayOfModel != null) { - this.arrayArrayOfModel.remove(arrayArrayOfModelItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java index a033bca007..fc7770afa0 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumArrays.java @@ -127,22 +127,6 @@ public enum ArrayEnumEnum { this.arrayEnum = arrayEnum; } - public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) { - if (this.arrayEnum == null) { - this.arrayEnum = new ArrayList(); - } - - this.arrayEnum.add(arrayEnumItem); - return this; - } - - public EnumArrays removeArrayEnumItem(ArrayEnumEnum arrayEnumItem) { - if (arrayEnumItem != null && this.arrayEnum != null) { - this.arrayEnum.remove(arrayEnumItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index 5ad48e0217..b8ba37d5cd 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -61,22 +61,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.files = files; } - public FileSchemaTestClass addFilesItem(java.io.File filesItem) { - if (this.files == null) { - this.files = new ArrayList(); - } - - this.files.add(filesItem); - return this; - } - - public FileSchemaTestClass removeFilesItem(java.io.File filesItem) { - if (filesItem != null && this.files != null) { - this.files.remove(filesItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java index 0462e9f525..a8eff4c21b 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MapTest.java @@ -77,22 +77,6 @@ public enum InnerEnum { this.mapMapOfString = mapMapOfString; } - public MapTest putMapMapOfStringItem(String key, Map mapMapOfStringItem) { - if (this.mapMapOfString == null) { - this.mapMapOfString = new HashMap>(); - } - - this.mapMapOfString.put(key, mapMapOfStringItem); - return this; - } - - public MapTest removeMapMapOfStringItem(Map mapMapOfStringItem) { - if (mapMapOfStringItem != null && this.mapMapOfString != null) { - this.mapMapOfString.remove(mapMapOfStringItem); - } - - return this; - } /** **/ public MapTest mapOfEnumString(Map mapOfEnumString) { @@ -113,22 +97,6 @@ public enum InnerEnum { this.mapOfEnumString = mapOfEnumString; } - public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) { - if (this.mapOfEnumString == null) { - this.mapOfEnumString = new HashMap(); - } - - this.mapOfEnumString.put(key, mapOfEnumStringItem); - return this; - } - - public MapTest removeMapOfEnumStringItem(InnerEnum mapOfEnumStringItem) { - if (mapOfEnumStringItem != null && this.mapOfEnumString != null) { - this.mapOfEnumString.remove(mapOfEnumStringItem); - } - - return this; - } /** **/ public MapTest directMap(Map directMap) { @@ -149,22 +117,6 @@ public enum InnerEnum { this.directMap = directMap; } - public MapTest putDirectMapItem(String key, Boolean directMapItem) { - if (this.directMap == null) { - this.directMap = new HashMap(); - } - - this.directMap.put(key, directMapItem); - return this; - } - - public MapTest removeDirectMapItem(Boolean directMapItem) { - if (directMapItem != null && this.directMap != null) { - this.directMap.remove(directMapItem); - } - - return this; - } /** **/ public MapTest indirectMap(Map indirectMap) { @@ -185,22 +137,6 @@ public enum InnerEnum { this.indirectMap = indirectMap; } - public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) { - if (this.indirectMap == null) { - this.indirectMap = new HashMap(); - } - - this.indirectMap.put(key, indirectMapItem); - return this; - } - - public MapTest removeIndirectMapItem(Boolean indirectMapItem) { - if (indirectMapItem != null && this.indirectMap != null) { - this.indirectMap.remove(indirectMapItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 344620b685..aace3762eb 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -86,22 +86,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.map = map; } - public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) { - if (this.map == null) { - this.map = new HashMap(); - } - - this.map.put(key, mapItem); - return this; - } - - public MixedPropertiesAndAdditionalPropertiesClass removeMapItem(Animal mapItem) { - if (mapItem != null && this.map != null) { - this.map.remove(mapItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java index b009a3df92..63e1d1abbd 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java @@ -144,22 +144,6 @@ public enum StatusEnum { this.photoUrls = photoUrls; } - public Pet addPhotoUrlsItem(String photoUrlsItem) { - if (this.photoUrls == null) { - this.photoUrls = new LinkedHashSet(); - } - - this.photoUrls.add(photoUrlsItem); - return this; - } - - public Pet removePhotoUrlsItem(String photoUrlsItem) { - if (photoUrlsItem != null && this.photoUrls != null) { - this.photoUrls.remove(photoUrlsItem); - } - - return this; - } /** **/ public Pet tags(List tags) { @@ -180,22 +164,6 @@ public enum StatusEnum { this.tags = tags; } - public Pet addTagsItem(Tag tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList(); - } - - this.tags.add(tagsItem); - return this; - } - - public Pet removeTagsItem(Tag tagsItem) { - if (tagsItem != null && this.tags != null) { - this.tags.remove(tagsItem); - } - - return this; - } /** * pet status in the store **/ diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 07a1d5d87e..502c22c455 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -130,22 +130,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayItem = arrayItem; } - public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) { - if (this.arrayItem == null) { - this.arrayItem = new ArrayList(); - } - - this.arrayItem.add(arrayItemItem); - return this; - } - - public TypeHolderDefault removeArrayItemItem(Integer arrayItemItem) { - if (arrayItemItem != null && this.arrayItem != null) { - this.arrayItem.remove(arrayItemItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java index 38951dee34..fb31859ded 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -152,22 +152,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.arrayItem = arrayItem; } - public TypeHolderExample addArrayItemItem(Integer arrayItemItem) { - if (this.arrayItem == null) { - this.arrayItem = new ArrayList(); - } - - this.arrayItem.add(arrayItemItem); - return this; - } - - public TypeHolderExample removeArrayItemItem(Integer arrayItemItem) { - if (arrayItemItem != null && this.arrayItem != null) { - this.arrayItem.remove(arrayItemItem); - } - - return this; - } @Override public boolean equals(Object o) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/XmlItem.java index b45dded155..15a5d35673 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/XmlItem.java @@ -149,22 +149,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.wrappedArray = wrappedArray; } - public XmlItem addWrappedArrayItem(Integer wrappedArrayItem) { - if (this.wrappedArray == null) { - this.wrappedArray = new ArrayList(); - } - - this.wrappedArray.add(wrappedArrayItem); - return this; - } - - public XmlItem removeWrappedArrayItem(Integer wrappedArrayItem) { - if (wrappedArrayItem != null && this.wrappedArray != null) { - this.wrappedArray.remove(wrappedArrayItem); - } - - return this; - } /** **/ public XmlItem nameString(String nameString) { @@ -265,22 +249,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.nameArray = nameArray; } - public XmlItem addNameArrayItem(Integer nameArrayItem) { - if (this.nameArray == null) { - this.nameArray = new ArrayList(); - } - - this.nameArray.add(nameArrayItem); - return this; - } - - public XmlItem removeNameArrayItem(Integer nameArrayItem) { - if (nameArrayItem != null && this.nameArray != null) { - this.nameArray.remove(nameArrayItem); - } - - return this; - } /** **/ public XmlItem nameWrappedArray(List nameWrappedArray) { @@ -301,22 +269,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.nameWrappedArray = nameWrappedArray; } - public XmlItem addNameWrappedArrayItem(Integer nameWrappedArrayItem) { - if (this.nameWrappedArray == null) { - this.nameWrappedArray = new ArrayList(); - } - - this.nameWrappedArray.add(nameWrappedArrayItem); - return this; - } - - public XmlItem removeNameWrappedArrayItem(Integer nameWrappedArrayItem) { - if (nameWrappedArrayItem != null && this.nameWrappedArray != null) { - this.nameWrappedArray.remove(nameWrappedArrayItem); - } - - return this; - } /** **/ public XmlItem prefixString(String prefixString) { @@ -417,22 +369,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.prefixArray = prefixArray; } - public XmlItem addPrefixArrayItem(Integer prefixArrayItem) { - if (this.prefixArray == null) { - this.prefixArray = new ArrayList(); - } - - this.prefixArray.add(prefixArrayItem); - return this; - } - - public XmlItem removePrefixArrayItem(Integer prefixArrayItem) { - if (prefixArrayItem != null && this.prefixArray != null) { - this.prefixArray.remove(prefixArrayItem); - } - - return this; - } /** **/ public XmlItem prefixWrappedArray(List prefixWrappedArray) { @@ -453,22 +389,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.prefixWrappedArray = prefixWrappedArray; } - public XmlItem addPrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { - if (this.prefixWrappedArray == null) { - this.prefixWrappedArray = new ArrayList(); - } - - this.prefixWrappedArray.add(prefixWrappedArrayItem); - return this; - } - - public XmlItem removePrefixWrappedArrayItem(Integer prefixWrappedArrayItem) { - if (prefixWrappedArrayItem != null && this.prefixWrappedArray != null) { - this.prefixWrappedArray.remove(prefixWrappedArrayItem); - } - - return this; - } /** **/ public XmlItem namespaceString(String namespaceString) { @@ -569,22 +489,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.namespaceArray = namespaceArray; } - public XmlItem addNamespaceArrayItem(Integer namespaceArrayItem) { - if (this.namespaceArray == null) { - this.namespaceArray = new ArrayList(); - } - - this.namespaceArray.add(namespaceArrayItem); - return this; - } - - public XmlItem removeNamespaceArrayItem(Integer namespaceArrayItem) { - if (namespaceArrayItem != null && this.namespaceArray != null) { - this.namespaceArray.remove(namespaceArrayItem); - } - - return this; - } /** **/ public XmlItem namespaceWrappedArray(List namespaceWrappedArray) { @@ -605,22 +509,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.namespaceWrappedArray = namespaceWrappedArray; } - public XmlItem addNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { - if (this.namespaceWrappedArray == null) { - this.namespaceWrappedArray = new ArrayList(); - } - - this.namespaceWrappedArray.add(namespaceWrappedArrayItem); - return this; - } - - public XmlItem removeNamespaceWrappedArrayItem(Integer namespaceWrappedArrayItem) { - if (namespaceWrappedArrayItem != null && this.namespaceWrappedArray != null) { - this.namespaceWrappedArray.remove(namespaceWrappedArrayItem); - } - - return this; - } /** **/ public XmlItem prefixNsString(String prefixNsString) { @@ -721,22 +609,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.prefixNsArray = prefixNsArray; } - public XmlItem addPrefixNsArrayItem(Integer prefixNsArrayItem) { - if (this.prefixNsArray == null) { - this.prefixNsArray = new ArrayList(); - } - - this.prefixNsArray.add(prefixNsArrayItem); - return this; - } - - public XmlItem removePrefixNsArrayItem(Integer prefixNsArrayItem) { - if (prefixNsArrayItem != null && this.prefixNsArray != null) { - this.prefixNsArray.remove(prefixNsArrayItem); - } - - return this; - } /** **/ public XmlItem prefixNsWrappedArray(List prefixNsWrappedArray) { @@ -757,22 +629,6 @@ import com.fasterxml.jackson.annotation.JsonValue; this.prefixNsWrappedArray = prefixNsWrappedArray; } - public XmlItem addPrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { - if (this.prefixNsWrappedArray == null) { - this.prefixNsWrappedArray = new ArrayList(); - } - - this.prefixNsWrappedArray.add(prefixNsWrappedArrayItem); - return this; - } - - public XmlItem removePrefixNsWrappedArrayItem(Integer prefixNsWrappedArrayItem) { - if (prefixNsWrappedArrayItem != null && this.prefixNsWrappedArray != null) { - this.prefixNsWrappedArray.remove(prefixNsWrappedArrayItem); - } - - return this; - } @Override public boolean equals(Object o) { From fe52529f05c5836819f069cb29473cfa2329332d Mon Sep 17 00:00:00 2001 From: Justin Black Date: Sun, 28 Mar 2021 11:28:25 -0700 Subject: [PATCH 19/32] [python] fix custom model template feature (#9118) * Removes colliding __init__model.mustache in PythonClientCodegen.java * Removes unused files * Regenerates samples --- .../codegen/languages/PythonClientCodegen.java | 8 ++++++++ samples/client/petstore/python/.openapi-generator/FILES | 1 - .../x-auth-id-alias/python/.openapi-generator/FILES | 1 - .../dynamic-servers/python/.openapi-generator/FILES | 1 - .../client/petstore/python/.openapi-generator/FILES | 1 - 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index 039d237135..6c5741cdbe 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -125,8 +125,16 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { supportingFiles.add(new SupportingFile("model_utils.mustache", packagePath(), "model_utils.py")); + // add the models and apis folders supportingFiles.add(new SupportingFile("__init__models.mustache", packagePath() + File.separatorChar + "models", "__init__.py")); + SupportingFile originalInitModel = supportingFiles.stream() + .filter(sf -> sf.getTemplateFile().equals("__init__model.mustache")) + .reduce((a, b) -> { + throw new IllegalStateException("Multiple elements: " + a + ", " + b); + }) + .get(); + supportingFiles.remove(originalInitModel); supportingFiles.add(new SupportingFile("__init__model.mustache", packagePath() + File.separatorChar + "model", "__init__.py")); supportingFiles.add(new SupportingFile("__init__apis.mustache", packagePath() + File.separatorChar + "apis", "__init__.py")); // Generate the 'signing.py' module, but only if the 'HTTP signature' security scheme is specified in the OAS. diff --git a/samples/client/petstore/python/.openapi-generator/FILES b/samples/client/petstore/python/.openapi-generator/FILES index 94732e3724..a5adeaaddc 100644 --- a/samples/client/petstore/python/.openapi-generator/FILES +++ b/samples/client/petstore/python/.openapi-generator/FILES @@ -150,7 +150,6 @@ petstore_api/model/user.py petstore_api/model/xml_item.py petstore_api/model_utils.py petstore_api/models/__init__.py -petstore_api/models/__init__.py petstore_api/rest.py requirements.txt setup.cfg diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/python/.openapi-generator/FILES b/samples/openapi3/client/extensions/x-auth-id-alias/python/.openapi-generator/FILES index 39e20384e5..93cf0c21cb 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/python/.openapi-generator/FILES +++ b/samples/openapi3/client/extensions/x-auth-id-alias/python/.openapi-generator/FILES @@ -20,5 +20,4 @@ x_auth_id_alias/exceptions.py x_auth_id_alias/model/__init__.py x_auth_id_alias/model_utils.py x_auth_id_alias/models/__init__.py -x_auth_id_alias/models/__init__.py x_auth_id_alias/rest.py diff --git a/samples/openapi3/client/features/dynamic-servers/python/.openapi-generator/FILES b/samples/openapi3/client/features/dynamic-servers/python/.openapi-generator/FILES index bb05b827f0..e9b1845416 100644 --- a/samples/openapi3/client/features/dynamic-servers/python/.openapi-generator/FILES +++ b/samples/openapi3/client/features/dynamic-servers/python/.openapi-generator/FILES @@ -13,7 +13,6 @@ dynamic_servers/exceptions.py dynamic_servers/model/__init__.py dynamic_servers/model_utils.py dynamic_servers/models/__init__.py -dynamic_servers/models/__init__.py dynamic_servers/rest.py git_push.sh requirements.txt diff --git a/samples/openapi3/client/petstore/python/.openapi-generator/FILES b/samples/openapi3/client/petstore/python/.openapi-generator/FILES index 34b36c49f8..aa906bc845 100644 --- a/samples/openapi3/client/petstore/python/.openapi-generator/FILES +++ b/samples/openapi3/client/petstore/python/.openapi-generator/FILES @@ -196,7 +196,6 @@ petstore_api/model/whale.py petstore_api/model/zebra.py petstore_api/model_utils.py petstore_api/models/__init__.py -petstore_api/models/__init__.py petstore_api/rest.py petstore_api/signing.py requirements.txt From 9fb97c6c29cd3d6ccbf03802652601b4eb458457 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 29 Mar 2021 11:07:57 +0800 Subject: [PATCH 20/32] postpone require models with parent (#9103) --- .../src/main/resources/ruby-client/gem.mustache | 12 +++++++++++- samples/client/petstore/ruby-faraday/lib/petstore.rb | 4 ++-- samples/client/petstore/ruby/lib/petstore.rb | 4 ++-- .../ruby-client/lib/petstore.rb | 2 +- 4 files changed, 16 insertions(+), 6 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/ruby-client/gem.mustache b/modules/openapi-generator/src/main/resources/ruby-client/gem.mustache index c9ae0ebf96..70027d1f61 100644 --- a/modules/openapi-generator/src/main/resources/ruby-client/gem.mustache +++ b/modules/openapi-generator/src/main/resources/ruby-client/gem.mustache @@ -11,7 +11,17 @@ require '{{gemName}}/configuration' # Models {{#models}} {{#model}} -require '{{gemName}}/{{modelPackage}}/{{classFilename}}'{{/model}} +{{^parent}} +require '{{gemName}}/{{modelPackage}}/{{classFilename}}' +{{/parent}} +{{/model}} +{{/models}} +{{#models}} +{{#model}} +{{#parent}} +require '{{gemName}}/{{modelPackage}}/{{classFilename}}' +{{/parent}} +{{/model}} {{/models}} # APIs diff --git a/samples/client/petstore/ruby-faraday/lib/petstore.rb b/samples/client/petstore/ruby-faraday/lib/petstore.rb index 53c34a479c..f9a198e1b3 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore.rb @@ -24,12 +24,10 @@ require 'petstore/models/array_of_array_of_number_only' require 'petstore/models/array_of_number_only' require 'petstore/models/array_test' require 'petstore/models/capitalization' -require 'petstore/models/cat' require 'petstore/models/cat_all_of' require 'petstore/models/category' require 'petstore/models/class_model' require 'petstore/models/client' -require 'petstore/models/dog' require 'petstore/models/dog_all_of' require 'petstore/models/enum_arrays' require 'petstore/models/enum_class' @@ -61,6 +59,8 @@ require 'petstore/models/read_only_first' require 'petstore/models/special_model_name' require 'petstore/models/tag' require 'petstore/models/user' +require 'petstore/models/cat' +require 'petstore/models/dog' # APIs require 'petstore/api/another_fake_api' diff --git a/samples/client/petstore/ruby/lib/petstore.rb b/samples/client/petstore/ruby/lib/petstore.rb index 53c34a479c..f9a198e1b3 100644 --- a/samples/client/petstore/ruby/lib/petstore.rb +++ b/samples/client/petstore/ruby/lib/petstore.rb @@ -24,12 +24,10 @@ require 'petstore/models/array_of_array_of_number_only' require 'petstore/models/array_of_number_only' require 'petstore/models/array_test' require 'petstore/models/capitalization' -require 'petstore/models/cat' require 'petstore/models/cat_all_of' require 'petstore/models/category' require 'petstore/models/class_model' require 'petstore/models/client' -require 'petstore/models/dog' require 'petstore/models/dog_all_of' require 'petstore/models/enum_arrays' require 'petstore/models/enum_class' @@ -61,6 +59,8 @@ require 'petstore/models/read_only_first' require 'petstore/models/special_model_name' require 'petstore/models/tag' require 'petstore/models/user' +require 'petstore/models/cat' +require 'petstore/models/dog' # APIs require 'petstore/api/another_fake_api' diff --git a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/lib/petstore.rb b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/lib/petstore.rb index 3762ec7f7a..0aacaaae2d 100644 --- a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/lib/petstore.rb +++ b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/lib/petstore.rb @@ -17,8 +17,8 @@ require 'petstore/version' require 'petstore/configuration' # Models -require 'petstore/models/array_alias' require 'petstore/models/map_alias' +require 'petstore/models/array_alias' # APIs require 'petstore/api/usage_api' From 70616b541e6e77dfa74e5684b1e8b8ae11462beb Mon Sep 17 00:00:00 2001 From: linnefromice Date: Mon, 29 Mar 2021 12:31:24 +0900 Subject: [PATCH 21/32] [Ruby] remove duplicated supportingFiles.add (#9108) * remove duplicated supportingFiles * modify examples - remove duplicated supportingFiles --- .../org/openapitools/codegen/languages/RubyClientCodegen.java | 1 - samples/client/petstore/ruby-faraday/.openapi-generator/FILES | 1 - samples/client/petstore/ruby/.openapi-generator/FILES | 1 - .../x-auth-id-alias/ruby-client/.openapi-generator/FILES | 1 - .../features/dynamic-servers/ruby/.openapi-generator/FILES | 1 - .../generate-alias-as-model/ruby-client/.openapi-generator/FILES | 1 - 6 files changed, 6 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java index 83b020f7b8..40b2d9c22e 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RubyClientCodegen.java @@ -239,7 +239,6 @@ public class RubyClientCodegen extends AbstractRubyCodegen { supportingFiles.add(new SupportingFile("gem.mustache", libFolder, gemName + ".rb")); String gemFolder = libFolder + File.separator + gemName; supportingFiles.add(new SupportingFile("api_error.mustache", gemFolder, "api_error.rb")); - supportingFiles.add(new SupportingFile("configuration.mustache", gemFolder, "configuration.rb")); supportingFiles.add(new SupportingFile("version.mustache", gemFolder, "version.rb")); supportingFiles.add(new SupportingFile("README.mustache", "", "README.md")); supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh")); diff --git a/samples/client/petstore/ruby-faraday/.openapi-generator/FILES b/samples/client/petstore/ruby-faraday/.openapi-generator/FILES index 8003747d27..94c0e36ec2 100644 --- a/samples/client/petstore/ruby-faraday/.openapi-generator/FILES +++ b/samples/client/petstore/ruby-faraday/.openapi-generator/FILES @@ -68,7 +68,6 @@ lib/petstore/api/user_api.rb lib/petstore/api_client.rb lib/petstore/api_error.rb lib/petstore/configuration.rb -lib/petstore/configuration.rb lib/petstore/models/additional_properties_class.rb lib/petstore/models/animal.rb lib/petstore/models/api_response.rb diff --git a/samples/client/petstore/ruby/.openapi-generator/FILES b/samples/client/petstore/ruby/.openapi-generator/FILES index 8003747d27..94c0e36ec2 100644 --- a/samples/client/petstore/ruby/.openapi-generator/FILES +++ b/samples/client/petstore/ruby/.openapi-generator/FILES @@ -68,7 +68,6 @@ lib/petstore/api/user_api.rb lib/petstore/api_client.rb lib/petstore/api_error.rb lib/petstore/configuration.rb -lib/petstore/configuration.rb lib/petstore/models/additional_properties_class.rb lib/petstore/models/animal.rb lib/petstore/models/api_response.rb diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.openapi-generator/FILES b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.openapi-generator/FILES index b6d67848c7..113a62913f 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.openapi-generator/FILES +++ b/samples/openapi3/client/extensions/x-auth-id-alias/ruby-client/.openapi-generator/FILES @@ -12,7 +12,6 @@ lib/x_auth_id_alias/api/usage_api.rb lib/x_auth_id_alias/api_client.rb lib/x_auth_id_alias/api_error.rb lib/x_auth_id_alias/configuration.rb -lib/x_auth_id_alias/configuration.rb lib/x_auth_id_alias/version.rb spec/api_client_spec.rb spec/configuration_spec.rb diff --git a/samples/openapi3/client/features/dynamic-servers/ruby/.openapi-generator/FILES b/samples/openapi3/client/features/dynamic-servers/ruby/.openapi-generator/FILES index 2eaa447daa..acdf7ab239 100644 --- a/samples/openapi3/client/features/dynamic-servers/ruby/.openapi-generator/FILES +++ b/samples/openapi3/client/features/dynamic-servers/ruby/.openapi-generator/FILES @@ -13,7 +13,6 @@ lib/dynamic_servers/api/usage_api.rb lib/dynamic_servers/api_client.rb lib/dynamic_servers/api_error.rb lib/dynamic_servers/configuration.rb -lib/dynamic_servers/configuration.rb lib/dynamic_servers/version.rb spec/api_client_spec.rb spec/configuration_spec.rb diff --git a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.openapi-generator/FILES b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.openapi-generator/FILES index 6599ee36fe..f2383908ca 100644 --- a/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.openapi-generator/FILES +++ b/samples/openapi3/client/features/generate-alias-as-model/ruby-client/.openapi-generator/FILES @@ -14,7 +14,6 @@ lib/petstore/api/usage_api.rb lib/petstore/api_client.rb lib/petstore/api_error.rb lib/petstore/configuration.rb -lib/petstore/configuration.rb lib/petstore/models/array_alias.rb lib/petstore/models/map_alias.rb lib/petstore/version.rb From ab6c6962c2bd01cb9bf7b1012e0fcc2181a7f629 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 29 Mar 2021 11:40:26 +0800 Subject: [PATCH 22/32] add enum suffic support to rust client (#9107) --- docs/generators/rust.md | 1 + .../codegen/languages/RustClientCodegen.java | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/generators/rust.md b/docs/generators/rust.md index 670ff8079a..dc57794b8d 100644 --- a/docs/generators/rust.md +++ b/docs/generators/rust.md @@ -7,6 +7,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl | Option | Description | Values | Default | | ------ | ----------- | ------ | ------- | +|enumNameSuffix|Suffix that will be appended to all enum names.| || |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |true| |library|library template (sub-template) to use.|
**hyper**
HTTP client: Hyper.
**reqwest**
HTTP client: Reqwest.
|reqwest| |packageName|Rust package name (convention: lowercase).| |openapi| diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java index e06e8e3456..2aa6d625e0 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java @@ -54,6 +54,7 @@ public class RustClientCodegen extends DefaultCodegen implements CodegenConfig { protected String modelDocPath = "docs/"; protected String apiFolder = "src/apis"; protected String modelFolder = "src/models"; + protected String enumSuffix = ""; // default to empty string for backward compatibility public CodegenType getTag() { return CodegenType.CLIENT; @@ -179,6 +180,7 @@ public class RustClientCodegen extends DefaultCodegen implements CodegenConfig { .defaultValue(Boolean.TRUE.toString())); cliOptions.add(new CliOption(SUPPORT_MULTIPLE_RESPONSES, "If set, return type wraps an enum of all possible 2xx schemas. This option is for 'reqwest' library only", SchemaTypeUtil.BOOLEAN_TYPE) .defaultValue(Boolean.FALSE.toString())); + cliOptions.add(new CliOption(CodegenConstants.ENUM_NAME_SUFFIX, CodegenConstants.ENUM_NAME_SUFFIX_DESC).defaultValue(this.enumSuffix)); supportedLibraries.put(HYPER_LIBRARY, "HTTP client: Hyper."); supportedLibraries.put(REQWEST_LIBRARY, "HTTP client: Reqwest."); @@ -247,6 +249,10 @@ public class RustClientCodegen extends DefaultCodegen implements CodegenConfig { public void processOpts() { super.processOpts(); + if (additionalProperties.containsKey(CodegenConstants.ENUM_NAME_SUFFIX)) { + enumSuffix = additionalProperties.get(CodegenConstants.ENUM_NAME_SUFFIX).toString(); + } + if (additionalProperties.containsKey(CodegenConstants.PACKAGE_NAME)) { setPackageName((String) additionalProperties.get(CodegenConstants.PACKAGE_NAME)); } else { @@ -650,9 +656,13 @@ public class RustClientCodegen extends DefaultCodegen implements CodegenConfig { @Override public String toEnumName(CodegenProperty property) { + String name = property.name; + if (!org.apache.commons.lang3.StringUtils.isEmpty(enumSuffix)) { + name = name + "_" + enumSuffix; + } // camelize the enum name // phone_number => PhoneNumber - String enumName = camelize(toModelName(property.name)); + String enumName = camelize(toModelName(name)); // remove [] for array or map of enum enumName = enumName.replace("[]", ""); From 8d372fa66af8d7555415367cfcd36b33c715f9cf Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 29 Mar 2021 12:05:17 +0800 Subject: [PATCH 23/32] better null check for response (#9105) --- .../org/openapitools/codegen/DefaultCodegen.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java index 57e2605edc..590e925a14 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -813,11 +813,13 @@ public class DefaultCodegen implements CodegenConfig { schemas.put(opId, requestSchema); } // process all response bodies - for (Map.Entry ar : op.getValue().getResponses().entrySet()) { - ApiResponse a = ModelUtils.getReferencedApiResponse(openAPI, ar.getValue()); - Schema responseSchema = ModelUtils.getSchemaFromResponse(a); - if (responseSchema != null) { - schemas.put(opId + ar.getKey(), responseSchema); + if (op.getValue().getResponses() != null) { + for (Map.Entry ar : op.getValue().getResponses().entrySet()) { + ApiResponse a = ModelUtils.getReferencedApiResponse(openAPI, ar.getValue()); + Schema responseSchema = ModelUtils.getSchemaFromResponse(a); + if (responseSchema != null) { + schemas.put(opId + ar.getKey(), responseSchema); + } } } } From 67d7f60f6a4ff1f2034be40764cf3e72d647d823 Mon Sep 17 00:00:00 2001 From: cal Date: Mon, 29 Mar 2021 06:13:26 +0200 Subject: [PATCH 24/32] [cleanup] erefactor/EclipseJdt - Convert 'for' loops to enhanced (#9110) EclipseJdt cleanup 'ConvertForLoopToEnhanced' applied by erefactor. For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php For erefactor see https://github.com/cal101/erefactor --- .../codegen/languages/HaskellServantCodegen.java | 4 ++-- .../openapitools/codegen/languages/LuaClientCodegen.java | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/HaskellServantCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/HaskellServantCodegen.java index bbbc932d0a..cefd7cebde 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/HaskellServantCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/HaskellServantCodegen.java @@ -313,8 +313,8 @@ public class HaskellServantCodegen extends DefaultCodegen implements CodegenConf List> replacements = new ArrayList<>(); Object[] replacementChars = specialCharReplacements.keySet().toArray(); - for (int i = 0; i < replacementChars.length; i++) { - String c = (String) replacementChars[i]; + for (Object replacementChar : replacementChars) { + String c = (String) replacementChar; Map o = new HashMap<>(); o.put("char", c); o.put("replacement", "'" + specialCharReplacements.get(c)); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java index 401496bc31..819dcf6bf4 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/LuaClientCodegen.java @@ -428,16 +428,16 @@ public class LuaClientCodegen extends DefaultCodegen implements CodegenConfig { String luaPath = ""; int pathParamIndex = 0; - for (int i = 0; i < items.length; ++i) { - if (items[i].matches("^\\{(.*)\\}$")) { // wrap in {} + for (String item : items) { + if (item.matches("^\\{(.*)\\}$")) { // wrap in {} // find the datatype of the parameter //final CodegenParameter cp = op.pathParams.get(pathParamIndex); // TODO: Handle non-primitives… //luaPath = luaPath + cp.dataType.toLowerCase(Locale.ROOT); luaPath = luaPath + "/%s"; pathParamIndex++; - } else if (items[i].length() != 0) { - luaPath = luaPath + "/" + items[i]; + } else if (item.length() != 0) { + luaPath = luaPath + "/" + item; } else { //luaPath = luaPath + "/"; } From d913b14d45f01d7b371a5ec119d460feb30dd5d5 Mon Sep 17 00:00:00 2001 From: cal Date: Mon, 29 Mar 2021 14:54:41 +0200 Subject: [PATCH 25/32] [cleanup] erefactor/EclipseJdt - Make inner class static (#9112) EclipseJdt cleanup 'MakeInnerClassStatic' applied by erefactor. For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php For erefactor see https://github.com/cal101/erefactor --- .../openapitools/codegen/validation/ValidationRuleTest.java | 2 +- .../org/openapitools/codegen/online/OpenAPI2SpringBoot.java | 2 +- .../codegen/languages/CSharpNancyFXServerCodegen.java | 2 +- .../codegen/languages/JavaPKMSTServerCodegen.java | 2 +- .../openapitools/codegen/languages/KtormSchemaCodegen.java | 6 +++--- .../main/java/org/openapitools/codegen/utils/JsonCache.java | 2 +- .../codegen/kotlin/AbstractKotlinCodegenTest.java | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/openapi-generator-core/src/test/java/org/openapitools/codegen/validation/ValidationRuleTest.java b/modules/openapi-generator-core/src/test/java/org/openapitools/codegen/validation/ValidationRuleTest.java index b626085c8b..f75389aafa 100644 --- a/modules/openapi-generator-core/src/test/java/org/openapitools/codegen/validation/ValidationRuleTest.java +++ b/modules/openapi-generator-core/src/test/java/org/openapitools/codegen/validation/ValidationRuleTest.java @@ -21,7 +21,7 @@ import org.testng.annotations.Test; import static org.testng.Assert.*; public class ValidationRuleTest { - class Sample { + static class Sample { private String name; public Sample(String name) { diff --git a/modules/openapi-generator-online/src/main/java/org/openapitools/codegen/online/OpenAPI2SpringBoot.java b/modules/openapi-generator-online/src/main/java/org/openapitools/codegen/online/OpenAPI2SpringBoot.java index 91fb6c32fd..c81012e09f 100644 --- a/modules/openapi-generator-online/src/main/java/org/openapitools/codegen/online/OpenAPI2SpringBoot.java +++ b/modules/openapi-generator-online/src/main/java/org/openapitools/codegen/online/OpenAPI2SpringBoot.java @@ -42,7 +42,7 @@ public class OpenAPI2SpringBoot implements CommandLineRunner { new SpringApplication(OpenAPI2SpringBoot.class).run(args); } - class ExitException extends RuntimeException implements ExitCodeGenerator { + static class ExitException extends RuntimeException implements ExitCodeGenerator { private static final long serialVersionUID = 1L; @Override diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNancyFXServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNancyFXServerCodegen.java index 88815de2f2..74db8d4ca2 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNancyFXServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNancyFXServerCodegen.java @@ -423,7 +423,7 @@ public class CSharpNancyFXServerCodegen extends AbstractCSharpCodegen { return ImmutableSet.of("LocalTime?", "LocalDate?", "ZonedDateTime?"); } - private class DependencyInfo { + private static class DependencyInfo { private final String version; private final String framework; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java index 7354d1fda7..eadabeb902 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java @@ -658,7 +658,7 @@ public class JavaPKMSTServerCodegen extends AbstractJavaCodegen { void setReturnContainer(String returnContainer); } - private class ResourcePath { + private static class ResourcePath { private String path; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KtormSchemaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KtormSchemaCodegen.java index 3c013d9160..979d6e3420 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KtormSchemaCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KtormSchemaCodegen.java @@ -61,7 +61,7 @@ public class KtormSchemaCodegen extends AbstractKotlinCodegen { protected Map sqlTypeMapping = new HashMap(); // https://ktorm.liuwj.me/api-docs/me.liuwj.ktorm.schema/index.html - protected class SqlType { + protected static class SqlType { protected static final String Blob = "blob"; protected static final String Boolean = "boolean"; protected static final String Bytes = "bytes"; @@ -335,7 +335,7 @@ public class KtormSchemaCodegen extends AbstractKotlinCodegen { return objs; } - private class KtormSchema extends HashMap { + private static class KtormSchema extends HashMap { private static final long serialVersionUID = -9159755928980443880L; } @@ -763,7 +763,7 @@ public class KtormSchemaCodegen extends AbstractKotlinCodegen { return input.substring(0, 1).toLowerCase(Locale.ROOT) + input.substring(1); } - private class SqlTypeArgs { + private static class SqlTypeArgs { // type classes public boolean isPrimitive; public boolean isNumeric; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/JsonCache.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/JsonCache.java index 8ea5c548c9..ac5873ee56 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/JsonCache.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/JsonCache.java @@ -58,7 +58,7 @@ public interface JsonCache { /** * Exception thrown by cache operations. Not intended to be created by client code. */ - class CacheException extends Exception { + static class CacheException extends Exception { private static final long serialVersionUID = -1215367978375557620L; CacheException(String message) { diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/AbstractKotlinCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/AbstractKotlinCodegenTest.java index 3c9781bd63..ab7973fb75 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/AbstractKotlinCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/AbstractKotlinCodegenTest.java @@ -76,7 +76,7 @@ public class AbstractKotlinCodegenTest { assertEquals(codegen.toEnumValue("data", "Something"), "\"data\""); } - private class P_AbstractKotlinCodegen extends AbstractKotlinCodegen { + private static class P_AbstractKotlinCodegen extends AbstractKotlinCodegen { @Override public CodegenType getTag() { return null; From 6c8bc1ec8822146a7b3089448bee6f255b9d70da Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Mon, 29 Mar 2021 14:56:11 +0200 Subject: [PATCH 26/32] [core] Allow using lists as globalProperty in config files (#8339) --- .../codegen/config/WorkflowSettings.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/config/WorkflowSettings.java b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/config/WorkflowSettings.java index dee02645d1..0f2f605dd6 100644 --- a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/config/WorkflowSettings.java +++ b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/config/WorkflowSettings.java @@ -26,9 +26,11 @@ import java.net.URISyntaxException; import java.net.URL; import java.nio.file.Paths; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.regex.Pattern; +import java.util.stream.Collectors; /** * Represents those settings applied to a generation workflow. @@ -66,7 +68,7 @@ public class WorkflowSettings { private String templateDir; private String templatingEngineName = DEFAULT_TEMPLATING_ENGINE_NAME; private String ignoreFileOverride; - private ImmutableMap globalProperties = DEFAULT_GLOBAL_PROPERTIES; + private ImmutableMap globalProperties = DEFAULT_GLOBAL_PROPERTIES; private WorkflowSettings(Builder builder) { this.inputSpec = builder.inputSpec; @@ -282,7 +284,15 @@ public class WorkflowSettings { * @return the system properties */ public Map getGlobalProperties() { - return globalProperties; + return globalProperties.entrySet().stream() + .collect(Collectors.toMap(Map.Entry::getKey, e -> { + if (e.getValue() instanceof List) { + return ((List) e.getValue()).stream() + .map(Object::toString) + .collect(Collectors.joining(",")); + } + return String.valueOf(e.getValue()); + })); } /** From 6daecb88c2cad654da8fdca37c71bb7c2b5db709 Mon Sep 17 00:00:00 2001 From: cal Date: Mon, 29 Mar 2021 15:02:51 +0200 Subject: [PATCH 27/32] [cleanup] erefactor/EclipseJdt - Use primitive parse methods instead of wrapper. (#9113) EclipseJdt cleanup 'ParsePrimitive' applied by erefactor. For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php For erefactor see https://github.com/cal101/erefactor --- .../languages/AbstractJavaCodegen.java | 16 +++++----- .../AbstractPythonConnexionServerCodegen.java | 4 +-- .../languages/CSharpNetCoreClientCodegen.java | 2 +- .../codegen/languages/ElmClientCodegen.java | 2 +- .../codegen/languages/GoClientCodegen.java | 2 +- .../codegen/languages/JavaClientCodegen.java | 20 ++++++------- .../languages/JavaJAXRSSpecServerCodegen.java | 10 +++---- .../languages/JavaPKMSTServerCodegen.java | 6 ++-- .../languages/KotlinClientCodegen.java | 8 ++--- .../languages/KotlinSpringServerCodegen.java | 14 ++++----- .../languages/PowerShellClientCodegen.java | 4 +-- .../languages/PythonLegacyClientCodegen.java | 2 +- .../codegen/languages/RClientCodegen.java | 2 +- .../codegen/languages/SpringCodegen.java | 30 +++++++++---------- .../TypeScriptAngularClientCodegen.java | 2 +- .../TypeScriptNestjsClientCodegen.java | 2 +- .../codegen/utils/ModelUtils.java | 2 +- .../codegen/swift5/Swift5OptionsTest.java | 2 +- 18 files changed, 65 insertions(+), 65 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java index a548ea3b0e..0ef7bc8d84 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java @@ -275,12 +275,12 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code } if (additionalProperties.containsKey(SUPPORT_JAVA6)) { - this.setSupportJava6(Boolean.valueOf(additionalProperties.get(SUPPORT_JAVA6).toString())); + this.setSupportJava6(Boolean.parseBoolean(additionalProperties.get(SUPPORT_JAVA6).toString())); } additionalProperties.put(SUPPORT_JAVA6, supportJava6); if (additionalProperties.containsKey(DISABLE_HTML_ESCAPING)) { - this.setDisableHtmlEscaping(Boolean.valueOf(additionalProperties.get(DISABLE_HTML_ESCAPING).toString())); + this.setDisableHtmlEscaping(Boolean.parseBoolean(additionalProperties.get(DISABLE_HTML_ESCAPING).toString())); } additionalProperties.put(DISABLE_HTML_ESCAPING, disableHtmlEscaping); @@ -290,7 +290,7 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code additionalProperties.put(BOOLEAN_GETTER_PREFIX, booleanGetterPrefix); if (additionalProperties.containsKey(IGNORE_ANYOF_IN_ENUM)) { - this.setIgnoreAnyOfInEnum(Boolean.valueOf(additionalProperties.get(IGNORE_ANYOF_IN_ENUM).toString())); + this.setIgnoreAnyOfInEnum(Boolean.parseBoolean(additionalProperties.get(IGNORE_ANYOF_IN_ENUM).toString())); } additionalProperties.put(IGNORE_ANYOF_IN_ENUM, ignoreAnyOfInEnum); @@ -427,17 +427,17 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code } if (additionalProperties.containsKey(CodegenConstants.SERIALIZE_BIG_DECIMAL_AS_STRING)) { - this.setSerializeBigDecimalAsString(Boolean.valueOf(additionalProperties.get(CodegenConstants.SERIALIZE_BIG_DECIMAL_AS_STRING).toString())); + this.setSerializeBigDecimalAsString(Boolean.parseBoolean(additionalProperties.get(CodegenConstants.SERIALIZE_BIG_DECIMAL_AS_STRING).toString())); } // need to put back serializableModel (boolean) into additionalProperties as value in additionalProperties is string additionalProperties.put(CodegenConstants.SERIALIZABLE_MODEL, serializableModel); if (additionalProperties.containsKey(FULL_JAVA_UTIL)) { - this.setFullJavaUtil(Boolean.valueOf(additionalProperties.get(FULL_JAVA_UTIL).toString())); + this.setFullJavaUtil(Boolean.parseBoolean(additionalProperties.get(FULL_JAVA_UTIL).toString())); } if (additionalProperties.containsKey(DISCRIMINATOR_CASE_SENSITIVE)) { - this.setDiscriminatorCaseSensitive(Boolean.valueOf(additionalProperties.get(DISCRIMINATOR_CASE_SENSITIVE).toString())); + this.setDiscriminatorCaseSensitive(Boolean.parseBoolean(additionalProperties.get(DISCRIMINATOR_CASE_SENSITIVE).toString())); } else { // By default, the discriminator lookup should be case sensitive. There is nothing in the OpenAPI specification // that indicates the lookup should be case insensitive. However, some implementations perform @@ -453,12 +453,12 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code additionalProperties.put("javaUtilPrefix", javaUtilPrefix); if (additionalProperties.containsKey(WITH_XML)) { - this.setWithXml(Boolean.valueOf(additionalProperties.get(WITH_XML).toString())); + this.setWithXml(Boolean.parseBoolean(additionalProperties.get(WITH_XML).toString())); } additionalProperties.put(WITH_XML, withXml); if (additionalProperties.containsKey(OPENAPI_NULLABLE)) { - this.setOpenApiNullable(Boolean.valueOf(additionalProperties.get(OPENAPI_NULLABLE).toString())); + this.setOpenApiNullable(Boolean.parseBoolean(additionalProperties.get(OPENAPI_NULLABLE).toString())); } additionalProperties.put(OPENAPI_NULLABLE, openApiNullable); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonConnexionServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonConnexionServerCodegen.java index a1fd6d1a23..3898b7c09d 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonConnexionServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonConnexionServerCodegen.java @@ -198,11 +198,11 @@ public abstract class AbstractPythonConnexionServerCodegen extends AbstractPytho } public void setFeatureCORS(String val) { - this.featureCORS = Boolean.valueOf(val); + this.featureCORS = Boolean.parseBoolean(val); } public void setUseNose(String val) { - this.useNose = Boolean.valueOf(val); + this.useNose = Boolean.parseBoolean(val); } public void setPythonSrcRoot(String val) { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java index 2575c4d4d4..be64dde62f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpNetCoreClientCodegen.java @@ -556,7 +556,7 @@ public class CSharpNetCoreClientCodegen extends AbstractCSharpCodegen { */ if (additionalProperties.containsKey(CodegenConstants.DISALLOW_ADDITIONAL_PROPERTIES_IF_NOT_PRESENT)) { - this.setDisallowAdditionalPropertiesIfNotPresent(Boolean.valueOf(additionalProperties + this.setDisallowAdditionalPropertiesIfNotPresent(Boolean.parseBoolean(additionalProperties .get(CodegenConstants.DISALLOW_ADDITIONAL_PROPERTIES_IF_NOT_PRESENT).toString())); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ElmClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ElmClientCodegen.java index 9ab73202e9..e7aaf1a369 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ElmClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ElmClientCodegen.java @@ -420,7 +420,7 @@ public class ElmClientCodegen extends DefaultCodegen implements CodegenConfig { } } else if (ModelUtils.isBooleanSchema(p)) { if (p.getDefault() != null) { - return Boolean.valueOf(p.getDefault().toString()) ? "True" : "False"; + return Boolean.parseBoolean(p.getDefault().toString()) ? "True" : "False"; } } else if (ModelUtils.isNumberSchema(p)) { if (p.getDefault() != null) { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java index 52c5d46bcc..11861b5792 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GoClientCodegen.java @@ -238,7 +238,7 @@ public class GoClientCodegen extends AbstractGoCodegen { } if (additionalProperties.containsKey(CodegenConstants.DISALLOW_ADDITIONAL_PROPERTIES_IF_NOT_PRESENT)) { - this.setDisallowAdditionalPropertiesIfNotPresent(Boolean.valueOf(additionalProperties + this.setDisallowAdditionalPropertiesIfNotPresent(Boolean.parseBoolean(additionalProperties .get(CodegenConstants.DISALLOW_ADDITIONAL_PROPERTIES_IF_NOT_PRESENT).toString())); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java index b01b999c3b..f82aba5b28 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaClientCodegen.java @@ -226,26 +226,26 @@ public class JavaClientCodegen extends AbstractJavaCodegen // RxJava if (additionalProperties.containsKey(USE_RX_JAVA) && additionalProperties.containsKey(USE_RX_JAVA2) && additionalProperties.containsKey(USE_RX_JAVA3)) { LOGGER.warn("You specified all RxJava versions 1, 2 and 3 but they are mutually exclusive. Defaulting to v3."); - this.setUseRxJava3(Boolean.valueOf(additionalProperties.get(USE_RX_JAVA3).toString())); + this.setUseRxJava3(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA3).toString())); } else { if (additionalProperties.containsKey(USE_RX_JAVA) && additionalProperties.containsKey(USE_RX_JAVA2)) { LOGGER.warn("You specified both RxJava versions 1 and 2 but they are mutually exclusive. Defaulting to v2."); - this.setUseRxJava2(Boolean.valueOf(additionalProperties.get(USE_RX_JAVA2).toString())); + this.setUseRxJava2(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA2).toString())); } else if (additionalProperties.containsKey(USE_RX_JAVA) && additionalProperties.containsKey(USE_RX_JAVA3)) { LOGGER.warn("You specified both RxJava versions 1 and 3 but they are mutually exclusive. Defaulting to v3."); - this.setUseRxJava3(Boolean.valueOf(additionalProperties.get(USE_RX_JAVA3).toString())); + this.setUseRxJava3(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA3).toString())); } else if (additionalProperties.containsKey(USE_RX_JAVA2) && additionalProperties.containsKey(USE_RX_JAVA3)) { LOGGER.warn("You specified both RxJava versions 2 and 3 but they are mutually exclusive. Defaulting to v3."); - this.setUseRxJava3(Boolean.valueOf(additionalProperties.get(USE_RX_JAVA3).toString())); + this.setUseRxJava3(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA3).toString())); } else { if (additionalProperties.containsKey(USE_RX_JAVA)) { - this.setUseRxJava(Boolean.valueOf(additionalProperties.get(USE_RX_JAVA).toString())); + this.setUseRxJava(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA).toString())); } if (additionalProperties.containsKey(USE_RX_JAVA2)) { - this.setUseRxJava2(Boolean.valueOf(additionalProperties.get(USE_RX_JAVA2).toString())); + this.setUseRxJava2(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA2).toString())); } if (additionalProperties.containsKey(USE_RX_JAVA3)) { - this.setUseRxJava3(Boolean.valueOf(additionalProperties.get(USE_RX_JAVA3).toString())); + this.setUseRxJava3(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA3).toString())); } } } @@ -256,7 +256,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen // Java Play if (additionalProperties.containsKey(USE_PLAY_WS)) { - this.setUsePlayWS(Boolean.valueOf(additionalProperties.get(USE_PLAY_WS).toString())); + this.setUsePlayWS(Boolean.parseBoolean(additionalProperties.get(USE_PLAY_WS).toString())); } additionalProperties.put(USE_PLAY_WS, usePlayWS); @@ -279,7 +279,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen } if (additionalProperties.containsKey(PARCELABLE_MODEL)) { - this.setParcelableModel(Boolean.valueOf(additionalProperties.get(PARCELABLE_MODEL).toString())); + this.setParcelableModel(Boolean.parseBoolean(additionalProperties.get(PARCELABLE_MODEL).toString())); } // put the boolean value back to PARCELABLE_MODEL in additionalProperties additionalProperties.put(PARCELABLE_MODEL, parcelableModel); @@ -313,7 +313,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen } if (additionalProperties.containsKey(DYNAMIC_OPERATIONS)) { - this.setDynamicOperations(Boolean.valueOf(additionalProperties.get(DYNAMIC_OPERATIONS).toString())); + this.setDynamicOperations(Boolean.parseBoolean(additionalProperties.get(DYNAMIC_OPERATIONS).toString())); } additionalProperties.put(DYNAMIC_OPERATIONS, dynamicOperations); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java index d517b686b9..95fdf15a39 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaJAXRSSpecServerCodegen.java @@ -108,16 +108,16 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen { @Override public void processOpts() { if (additionalProperties.containsKey(GENERATE_POM)) { - generatePom = Boolean.valueOf(additionalProperties.get(GENERATE_POM).toString()); + generatePom = Boolean.parseBoolean(additionalProperties.get(GENERATE_POM).toString()); } if (additionalProperties.containsKey(INTERFACE_ONLY)) { - interfaceOnly = Boolean.valueOf(additionalProperties.get(INTERFACE_ONLY).toString()); + interfaceOnly = Boolean.parseBoolean(additionalProperties.get(INTERFACE_ONLY).toString()); if (!interfaceOnly) { additionalProperties.remove(INTERFACE_ONLY); } } if (additionalProperties.containsKey(RETURN_RESPONSE)) { - returnResponse = Boolean.valueOf(additionalProperties.get(RETURN_RESPONSE).toString()); + returnResponse = Boolean.parseBoolean(additionalProperties.get(RETURN_RESPONSE).toString()); if (!returnResponse) { additionalProperties.remove(RETURN_RESPONSE); } @@ -126,7 +126,7 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen { useSwaggerAnnotations = false; } else { if (additionalProperties.containsKey(USE_SWAGGER_ANNOTATIONS)) { - useSwaggerAnnotations = Boolean.valueOf(additionalProperties.get(USE_SWAGGER_ANNOTATIONS).toString()); + useSwaggerAnnotations = Boolean.parseBoolean(additionalProperties.get(USE_SWAGGER_ANNOTATIONS).toString()); } } if (KUMULUZEE_LIBRARY.equals(library)){ @@ -135,7 +135,7 @@ public class JavaJAXRSSpecServerCodegen extends AbstractJavaJAXRSServerCodegen { writePropertyBack(USE_SWAGGER_ANNOTATIONS, useSwaggerAnnotations); if (additionalProperties.containsKey(GENERATE_BUILDERS)) { - generateBuilders = Boolean.valueOf(additionalProperties.get(GENERATE_BUILDERS).toString()); + generateBuilders = Boolean.parseBoolean(additionalProperties.get(GENERATE_BUILDERS).toString()); } additionalProperties.put(GENERATE_BUILDERS, generateBuilders); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java index eadabeb902..415ac439ae 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/JavaPKMSTServerCodegen.java @@ -145,7 +145,7 @@ public class JavaPKMSTServerCodegen extends AbstractJavaCodegen { } if (this.additionalProperties.containsKey(CodegenConstants.SERIALIZE_BIG_DECIMAL_AS_STRING)) { - this.setSerializeBigDecimalAsString(Boolean.valueOf( + this.setSerializeBigDecimalAsString(Boolean.parseBoolean( this.additionalProperties.get(CodegenConstants.SERIALIZE_BIG_DECIMAL_AS_STRING).toString())); } if (this.additionalProperties.containsKey(CodegenConstants.SERIALIZABLE_MODEL)) { @@ -157,7 +157,7 @@ public class JavaPKMSTServerCodegen extends AbstractJavaCodegen { } this.additionalProperties.put(CodegenConstants.SERIALIZABLE_MODEL, serializableModel); if (this.additionalProperties.containsKey(FULL_JAVA_UTIL)) { - this.setFullJavaUtil(Boolean.valueOf(this.additionalProperties.get(FULL_JAVA_UTIL).toString())); + this.setFullJavaUtil(Boolean.parseBoolean(this.additionalProperties.get(FULL_JAVA_UTIL).toString())); } if (this.additionalProperties.containsKey(EUREKA_URI)) { @@ -178,7 +178,7 @@ public class JavaPKMSTServerCodegen extends AbstractJavaCodegen { this.additionalProperties.put("java8", true); if (this.additionalProperties.containsKey(WITH_XML)) { - this.setWithXml(Boolean.valueOf(additionalProperties.get(WITH_XML).toString())); + this.setWithXml(Boolean.parseBoolean(additionalProperties.get(WITH_XML).toString())); } this.additionalProperties.put(WITH_XML, withXml); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java index 781e7546eb..17afe550c7 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java @@ -311,13 +311,13 @@ public class KotlinClientCodegen extends AbstractKotlinCodegen { if (hasConflict) { LOGGER.warn("You specified RxJava versions 1 and 2 and 3 or Coroutines together, please choose one of them."); } else if (hasRx) { - this.setUseRxJava(Boolean.valueOf(additionalProperties.get(USE_RX_JAVA).toString())); + this.setUseRxJava(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA).toString())); } else if (hasRx2) { - this.setUseRxJava2(Boolean.valueOf(additionalProperties.get(USE_RX_JAVA2).toString())); + this.setUseRxJava2(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA2).toString())); } else if (hasRx3) { - this.setUseRxJava3(Boolean.valueOf(additionalProperties.get(USE_RX_JAVA3).toString())); + this.setUseRxJava3(Boolean.parseBoolean(additionalProperties.get(USE_RX_JAVA3).toString())); } else if (hasCoroutines) { - this.setUseCoroutines(Boolean.valueOf(additionalProperties.get(USE_COROUTINES).toString())); + this.setUseCoroutines(Boolean.parseBoolean(additionalProperties.get(USE_COROUTINES).toString())); } if (!hasRx && !hasRx2 && !hasRx3 && !hasCoroutines) { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java index f18ecfc0aa..cf3c64b033 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinSpringServerCodegen.java @@ -319,27 +319,27 @@ public class KotlinSpringServerCodegen extends AbstractKotlinCodegen } if (additionalProperties.containsKey(EXCEPTION_HANDLER)) { - this.setExceptionHandler(Boolean.valueOf(additionalProperties.get(EXCEPTION_HANDLER).toString())); + this.setExceptionHandler(Boolean.parseBoolean(additionalProperties.get(EXCEPTION_HANDLER).toString())); } writePropertyBack(EXCEPTION_HANDLER, exceptionHandler); if (additionalProperties.containsKey(GRADLE_BUILD_FILE)) { - this.setGradleBuildFile(Boolean.valueOf(additionalProperties.get(GRADLE_BUILD_FILE).toString())); + this.setGradleBuildFile(Boolean.parseBoolean(additionalProperties.get(GRADLE_BUILD_FILE).toString())); } writePropertyBack(GRADLE_BUILD_FILE, gradleBuildFile); if (additionalProperties.containsKey(SWAGGER_ANNOTATIONS)) { - this.setSwaggerAnnotations(Boolean.valueOf(additionalProperties.get(SWAGGER_ANNOTATIONS).toString())); + this.setSwaggerAnnotations(Boolean.parseBoolean(additionalProperties.get(SWAGGER_ANNOTATIONS).toString())); } writePropertyBack(SWAGGER_ANNOTATIONS, swaggerAnnotations); if (additionalProperties.containsKey(SERVICE_INTERFACE)) { - this.setServiceInterface(Boolean.valueOf(additionalProperties.get(SERVICE_INTERFACE).toString())); + this.setServiceInterface(Boolean.parseBoolean(additionalProperties.get(SERVICE_INTERFACE).toString())); } writePropertyBack(SERVICE_INTERFACE, serviceInterface); if (additionalProperties.containsKey(SERVICE_IMPLEMENTATION)) { - this.setServiceImplementation(Boolean.valueOf(additionalProperties.get(SERVICE_IMPLEMENTATION).toString())); + this.setServiceImplementation(Boolean.parseBoolean(additionalProperties.get(SERVICE_IMPLEMENTATION).toString())); } writePropertyBack(SERVICE_IMPLEMENTATION, serviceImplementation); @@ -357,11 +357,11 @@ public class KotlinSpringServerCodegen extends AbstractKotlinCodegen writePropertyBack(EXCEPTION_HANDLER, exceptionHandler); if (additionalProperties.containsKey(INTERFACE_ONLY)) { - this.setInterfaceOnly(Boolean.valueOf(additionalProperties.get(INTERFACE_ONLY).toString())); + this.setInterfaceOnly(Boolean.parseBoolean(additionalProperties.get(INTERFACE_ONLY).toString())); } if (additionalProperties.containsKey(DELEGATE_PATTERN)) { - this.setDelegatePattern(Boolean.valueOf(additionalProperties.get(DELEGATE_PATTERN).toString())); + this.setDelegatePattern(Boolean.parseBoolean(additionalProperties.get(DELEGATE_PATTERN).toString())); if (!this.interfaceOnly) { this.setSwaggerAnnotations(true); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PowerShellClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PowerShellClientCodegen.java index 399cd1c85b..0b4add6760 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PowerShellClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PowerShellClientCodegen.java @@ -750,7 +750,7 @@ public class PowerShellClientCodegen extends DefaultCodegen implements CodegenCo } if (additionalProperties.containsKey(CodegenConstants.DISALLOW_ADDITIONAL_PROPERTIES_IF_NOT_PRESENT)) { - this.setDisallowAdditionalPropertiesIfNotPresent(Boolean.valueOf(additionalProperties + this.setDisallowAdditionalPropertiesIfNotPresent(Boolean.parseBoolean(additionalProperties .get(CodegenConstants.DISALLOW_ADDITIONAL_PROPERTIES_IF_NOT_PRESENT).toString())); } @@ -1330,7 +1330,7 @@ public class PowerShellClientCodegen extends DefaultCodegen implements CodegenCo public String toDefaultValue(Schema p) { if (p.getDefault() != null) { if (ModelUtils.isBooleanSchema(p)) { - if (Boolean.valueOf(p.getDefault().toString())) { + if (Boolean.parseBoolean(p.getDefault().toString())) { return "$true"; } else { return "$false"; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonLegacyClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonLegacyClientCodegen.java index 06853a5d20..7d5cc631a8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonLegacyClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonLegacyClientCodegen.java @@ -405,7 +405,7 @@ public class PythonLegacyClientCodegen extends AbstractPythonCodegen implements public void setUseNose(String val) { - this.useNose = Boolean.valueOf(val); + this.useNose = Boolean.parseBoolean(val); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RClientCodegen.java index a225aa532c..df86492ffb 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RClientCodegen.java @@ -183,7 +183,7 @@ public class RClientCodegen extends DefaultCodegen implements CodegenConfig { } if (additionalProperties.containsKey(CodegenConstants.EXCEPTION_ON_FAILURE)) { - boolean booleanValue = Boolean.valueOf(additionalProperties.get(CodegenConstants.EXCEPTION_ON_FAILURE).toString()); + boolean booleanValue = Boolean.parseBoolean(additionalProperties.get(CodegenConstants.EXCEPTION_ON_FAILURE).toString()); setReturnExceptionOnFailure(booleanValue); } else { setReturnExceptionOnFailure(false); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java index 0610a858ee..b2481bd370 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java @@ -217,7 +217,7 @@ public class SpringCodegen extends AbstractJavaCodegen // Process java8 option before common java ones to change the default dateLibrary to java8. LOGGER.info("----------------------------------"); if (additionalProperties.containsKey(JAVA_8)) { - this.setJava8(Boolean.valueOf(additionalProperties.get(JAVA_8).toString())); + this.setJava8(Boolean.parseBoolean(additionalProperties.get(JAVA_8).toString())); additionalProperties.put(JAVA_8, java8); LOGGER.warn("java8 option has been deprecated as it's set to true by default (JDK7 support has been deprecated)"); } @@ -257,27 +257,27 @@ public class SpringCodegen extends AbstractJavaCodegen } if (additionalProperties.containsKey(VIRTUAL_SERVICE)) { - this.setVirtualService(Boolean.valueOf(additionalProperties.get(VIRTUAL_SERVICE).toString())); + this.setVirtualService(Boolean.parseBoolean(additionalProperties.get(VIRTUAL_SERVICE).toString())); } if (additionalProperties.containsKey(INTERFACE_ONLY)) { - this.setInterfaceOnly(Boolean.valueOf(additionalProperties.get(INTERFACE_ONLY).toString())); + this.setInterfaceOnly(Boolean.parseBoolean(additionalProperties.get(INTERFACE_ONLY).toString())); } if (additionalProperties.containsKey(DELEGATE_PATTERN)) { - this.setDelegatePattern(Boolean.valueOf(additionalProperties.get(DELEGATE_PATTERN).toString())); + this.setDelegatePattern(Boolean.parseBoolean(additionalProperties.get(DELEGATE_PATTERN).toString())); } if (additionalProperties.containsKey(SINGLE_CONTENT_TYPES)) { - this.setSingleContentTypes(Boolean.valueOf(additionalProperties.get(SINGLE_CONTENT_TYPES).toString())); + this.setSingleContentTypes(Boolean.parseBoolean(additionalProperties.get(SINGLE_CONTENT_TYPES).toString())); } if (additionalProperties.containsKey(SKIP_DEFAULT_INTERFACE)) { - this.setSkipDefaultInterface(Boolean.valueOf(additionalProperties.get(SKIP_DEFAULT_INTERFACE).toString())); + this.setSkipDefaultInterface(Boolean.parseBoolean(additionalProperties.get(SKIP_DEFAULT_INTERFACE).toString())); } if (additionalProperties.containsKey(ASYNC)) { - this.setAsync(Boolean.valueOf(additionalProperties.get(ASYNC).toString())); + this.setAsync(Boolean.parseBoolean(additionalProperties.get(ASYNC).toString())); //fix for issue/1164 convertPropertyToBooleanAndWriteBack(ASYNC); } @@ -286,7 +286,7 @@ public class SpringCodegen extends AbstractJavaCodegen if (!SPRING_BOOT.equals(library)) { throw new IllegalArgumentException("Currently, reactive option is only supported with Spring-boot"); } - this.setReactive(Boolean.valueOf(additionalProperties.get(REACTIVE).toString())); + this.setReactive(Boolean.parseBoolean(additionalProperties.get(REACTIVE).toString())); } if (additionalProperties.containsKey(RESPONSE_WRAPPER)) { @@ -294,7 +294,7 @@ public class SpringCodegen extends AbstractJavaCodegen } if (additionalProperties.containsKey(USE_TAGS)) { - this.setUseTags(Boolean.valueOf(additionalProperties.get(USE_TAGS).toString())); + this.setUseTags(Boolean.parseBoolean(additionalProperties.get(USE_TAGS).toString())); } if (additionalProperties.containsKey(USE_BEANVALIDATION)) { @@ -312,27 +312,27 @@ public class SpringCodegen extends AbstractJavaCodegen } if (additionalProperties.containsKey(IMPLICIT_HEADERS)) { - this.setImplicitHeaders(Boolean.valueOf(additionalProperties.get(IMPLICIT_HEADERS).toString())); + this.setImplicitHeaders(Boolean.parseBoolean(additionalProperties.get(IMPLICIT_HEADERS).toString())); } if (additionalProperties.containsKey(OPENAPI_DOCKET_CONFIG)) { - this.setOpenapiDocketConfig(Boolean.valueOf(additionalProperties.get(OPENAPI_DOCKET_CONFIG).toString())); + this.setOpenapiDocketConfig(Boolean.parseBoolean(additionalProperties.get(OPENAPI_DOCKET_CONFIG).toString())); } if (additionalProperties.containsKey(API_FIRST)) { - this.setApiFirst(Boolean.valueOf(additionalProperties.get(API_FIRST).toString())); + this.setApiFirst(Boolean.parseBoolean(additionalProperties.get(API_FIRST).toString())); } if (additionalProperties.containsKey(HATEOAS)) { - this.setHateoas(Boolean.valueOf(additionalProperties.get(HATEOAS).toString())); + this.setHateoas(Boolean.parseBoolean(additionalProperties.get(HATEOAS).toString())); } if (additionalProperties.containsKey(RETURN_SUCCESS_CODE)) { - this.setReturnSuccessCode(Boolean.valueOf(additionalProperties.get(RETURN_SUCCESS_CODE).toString())); + this.setReturnSuccessCode(Boolean.parseBoolean(additionalProperties.get(RETURN_SUCCESS_CODE).toString())); } if (additionalProperties.containsKey(UNHANDLED_EXCEPTION_HANDLING)) { - this.setUnhandledException(Boolean.valueOf(additionalProperties.get(UNHANDLED_EXCEPTION_HANDLING).toString())); + this.setUnhandledException(Boolean.parseBoolean(additionalProperties.get(UNHANDLED_EXCEPTION_HANDLING).toString())); } additionalProperties.put(UNHANDLED_EXCEPTION_HANDLING, this.isUnhandledException()); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java index 77cdbe229f..174908624e 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java @@ -177,7 +177,7 @@ public class TypeScriptAngularClientCodegen extends AbstractTypeScriptClientCode } if (additionalProperties.containsKey(STRING_ENUMS)) { - setStringEnums(Boolean.valueOf(additionalProperties.get(STRING_ENUMS).toString())); + setStringEnums(Boolean.parseBoolean(additionalProperties.get(STRING_ENUMS).toString())); additionalProperties.put("stringEnums", getStringEnums()); if (getStringEnums()) { classEnumSeparator = ""; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNestjsClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNestjsClientCodegen.java index 3256aafa88..f37e6c0990 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNestjsClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNestjsClientCodegen.java @@ -143,7 +143,7 @@ public class TypeScriptNestjsClientCodegen extends AbstractTypeScriptClientCodeg } if (additionalProperties.containsKey(STRING_ENUMS)) { - setStringEnums(Boolean.valueOf(additionalProperties.get(STRING_ENUMS).toString())); + setStringEnums(Boolean.parseBoolean(additionalProperties.get(STRING_ENUMS).toString())); additionalProperties.put("stringEnums", getStringEnums()); if (getStringEnums()) { enumSuffix = ""; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java index f4e56f8e0d..a4bc0147c6 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java @@ -1426,7 +1426,7 @@ public class ModelUtils { } if (schema.getExtensions() != null && schema.getExtensions().get("x-nullable") != null) { - return Boolean.valueOf(schema.getExtensions().get("x-nullable").toString()); + return Boolean.parseBoolean(schema.getExtensions().get("x-nullable").toString()); } // In OAS 3.1, the recommended way to define a nullable property or object is to use oneOf. if (schema instanceof ComposedSchema) { diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/swift5/Swift5OptionsTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/swift5/Swift5OptionsTest.java index 0dbbaedf3d..65e97494cf 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/swift5/Swift5OptionsTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/swift5/Swift5OptionsTest.java @@ -47,6 +47,6 @@ public class Swift5OptionsTest extends AbstractOptionsTest { verify(clientCodegen).setObjcCompatible(Boolean.parseBoolean(Swift5OptionsProvider.OBJC_COMPATIBLE_VALUE)); verify(clientCodegen).setLenientTypeCast(Boolean.parseBoolean(Swift5OptionsProvider.LENIENT_TYPE_CAST_VALUE)); verify(clientCodegen).setPrependFormOrBodyParameters(Boolean.valueOf(Swift5OptionsProvider.PREPEND_FORM_OR_BODY_PARAMETERS_VALUE)); - verify(clientCodegen).setReadonlyProperties(Boolean.valueOf(Swift5OptionsProvider.READONLY_PROPERTIES_VALUE)); + verify(clientCodegen).setReadonlyProperties(Boolean.parseBoolean(Swift5OptionsProvider.READONLY_PROPERTIES_VALUE)); } } From 7816ea076ec8e7e6980925f9dc51f1f5e6343b03 Mon Sep 17 00:00:00 2001 From: cal Date: Mon, 29 Mar 2021 17:58:52 +0200 Subject: [PATCH 28/32] [cleanup] erefactor/EclipseJdt - Invert equals arguments if parameter is constant string (#9111) EclipseJdt cleanup 'InvertEquals' applied by erefactor. For EclipseJdt see https://www.eclipse.org/eclipse/news/4.19/jdt.php For erefactor see https://github.com/cal101/erefactor --- .../languages/PhpSlimServerCodegen.java | 2 +- .../languages/PhpSymfonyServerCodegen.java | 6 ++-- .../languages/PythonClientCodegen.java | 2 +- .../codegen/languages/RustServerCodegen.java | 28 +++++++++---------- .../languages/ScalaAkkaHttpServerCodegen.java | 4 +-- .../languages/ScalaFinchServerCodegen.java | 2 +- .../languages/ScalaGatlingCodegen.java | 6 ++-- .../languages/ScalaSttpClientCodegen.java | 6 ++-- .../codegen/languages/SpringCodegen.java | 16 +++++------ .../codegen/languages/Swift4Codegen.java | 4 +-- .../languages/Swift5ClientCodegen.java | 4 +-- .../TypeScriptAngularClientCodegen.java | 2 +- .../TypeScriptAureliaClientCodegen.java | 2 +- .../languages/TypeScriptClientCodegen.java | 6 ++-- .../TypeScriptInversifyClientCodegen.java | 2 +- .../TypeScriptNestjsClientCodegen.java | 2 +- .../TypeScriptNodeClientCodegen.java | 2 +- .../TypeScriptRxjsClientCodegen.java | 2 +- .../oas/OpenApiParameterValidations.java | 2 +- .../codegen/DefaultCodegenTest.java | 26 ++++++++--------- 20 files changed, 63 insertions(+), 63 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlimServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlimServerCodegen.java index 6fb92a794e..96452fec5c 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlimServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSlimServerCodegen.java @@ -92,7 +92,7 @@ public class PhpSlimServerCodegen extends AbstractPhpCodegen { // override cliOptions from AbstractPhpCodegen for (CliOption co : cliOptions) { - if (co.getOpt().equals(AbstractPhpCodegen.VARIABLE_NAMING_CONVENTION)) { + if (AbstractPhpCodegen.VARIABLE_NAMING_CONVENTION.equals(co.getOpt())) { co.setDescription("naming convention of variable name, e.g. camelCase."); co.setDefault("camelCase"); break; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSymfonyServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSymfonyServerCodegen.java index 9cf1721473..9d468195f8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSymfonyServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PhpSymfonyServerCodegen.java @@ -256,7 +256,7 @@ public class PhpSymfonyServerCodegen extends AbstractPhpCodegen implements Codeg @Override public String apiFilename(String templateName, String tag) { String suffix = apiTemplateFiles().get(templateName); - if (templateName.equals("api_controller.mustache")) + if ("api_controller.mustache".equals(templateName)) return controllerFileFolder() + File.separator + toControllerName(tag) + suffix; return apiFileFolder() + File.separator + toApiFilename(tag) + suffix; @@ -421,7 +421,7 @@ public class PhpSymfonyServerCodegen extends AbstractPhpCodegen implements Codeg // @todo: The default values for headers, forms and query params are handled // in DefaultCodegen fromParameter with no real possibility to override // the functionality. Thus we are handling quoting of string values here - if (param.dataType.equals("string") && param.defaultValue != null && !param.defaultValue.isEmpty()) { + if ("string".equals(param.dataType) && param.defaultValue != null && !param.defaultValue.isEmpty()) { param.defaultValue = "'" + param.defaultValue + "'"; } } @@ -429,7 +429,7 @@ public class PhpSymfonyServerCodegen extends AbstractPhpCodegen implements Codeg // Create a variable to display the correct return type in comments for interfaces if (op.returnType != null) { op.vendorExtensions.put("x-comment-type", op.returnType); - if (op.returnContainer != null && op.returnContainer.equals("array")) { + if (op.returnContainer != null && "array".equals(op.returnContainer)) { op.vendorExtensions.put("x-comment-type", op.returnType + "[]"); } } else { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index 6c5741cdbe..b38d2448d8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -547,7 +547,7 @@ public class PythonClientCodegen extends PythonLegacyClientCodegen { * @return the sanitized value for enum */ public String toEnumValue(String value, String datatype) { - if (datatype.equals("int") || datatype.equals("float")) { + if ("int".equals(datatype) || "float".equals(datatype)) { return value; } else { return ensureQuotes(value); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustServerCodegen.java index 48508d1609..5ff03773da 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustServerCodegen.java @@ -584,7 +584,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { } private boolean isMimetypeUnknown(String mimetype) { - return mimetype.equals("*/*"); + return "*/*".equals(mimetype); } /** @@ -864,7 +864,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { if (producesXml) { outputMime = xmlMimeType; } else if (producesPlainText) { - if (rsp.dataType.equals(bytesType)) { + if (bytesType.equals(rsp.dataType)) { outputMime = octetMimeType; } else { outputMime = plainTextMimeType; @@ -907,7 +907,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { // and string/bytes - that is we don't auto-detect whether // base64 encoding should be done. They both look like // 'producesBytes'. - if (rsp.dataType.equals(bytesType)) { + if (bytesType.equals(rsp.dataType)) { rsp.vendorExtensions.put("x-produces-bytes", true); } else { rsp.vendorExtensions.put("x-produces-plain-text", true); @@ -917,7 +917,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { // If the data type is just "object", then ensure that the // Rust data type is "serde_json::Value". This allows us // to define APIs that can return arbitrary JSON bodies. - if (rsp.dataType.equals("object")) { + if ("object".equals(rsp.dataType)) { rsp.dataType = "serde_json::Value"; } } @@ -935,7 +935,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { } } for (CodegenProperty header : rsp.headers) { - if (header.dataType.equals(uuidType)) { + if (uuidType.equals(header.dataType)) { additionalProperties.put("apiUsesUuid", true); } header.nameInCamelCase = toModelName(header.baseName); @@ -948,7 +948,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { } for (CodegenProperty header : op.responseHeaders) { - if (header.dataType.equals(uuidType)) { + if (uuidType.equals(header.dataType)) { additionalProperties.put("apiUsesUuid", true); } header.nameInCamelCase = toModelName(header.baseName); @@ -1043,7 +1043,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { } for (CodegenProperty header : op.responseHeaders) { - if (header.dataType.equals(uuidType)) { + if (uuidType.equals(header.dataType)) { additionalProperties.put("apiUsesUuid", true); } header.nameInCamelCase = toModelName(header.baseName); @@ -1280,7 +1280,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { } for (CodegenProperty prop : model.vars) { - if (prop.dataType.equals(uuidType)) { + if (uuidType.equals(prop.dataType)) { additionalProperties.put("apiUsesUuid", true); } @@ -1289,7 +1289,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { prop.vendorExtensions.put("x-item-xml-name", xmlName); } - if (prop.dataType.equals(uuidType)) { + if (uuidType.equals(prop.dataType)) { additionalProperties.put("apiUsesUuid", true); } } @@ -1383,11 +1383,11 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { @Override public String toDefaultValue(Schema p) { String defaultValue = null; - if ((ModelUtils.isNullable(p)) && (p.getDefault() != null) && (p.getDefault().toString().equalsIgnoreCase("null"))) + if ((ModelUtils.isNullable(p)) && (p.getDefault() != null) && ("null".equalsIgnoreCase(p.getDefault().toString()))) return "swagger::Nullable::Null"; else if (ModelUtils.isBooleanSchema(p)) { if (p.getDefault() != null) { - if (p.getDefault().toString().equalsIgnoreCase("false")) + if ("false".equalsIgnoreCase(p.getDefault().toString())) defaultValue = "false"; else defaultValue = "true"; @@ -1560,12 +1560,12 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { LOGGER.trace("Post processing model: {}", cm); - if (cm.dataType != null && cm.dataType.equals("object")) { + if (cm.dataType != null && "object".equals(cm.dataType)) { // Object isn't a sensible default. Instead, we set it to // 'null'. This ensures that we treat this model as a struct // with multiple parameters. cm.dataType = null; - } else if (cm.dataType != null && cm.dataType.equals("map")) { + } else if (cm.dataType != null && "map".equals(cm.dataType)) { if (!cm.allVars.isEmpty() || cm.additionalPropertiesType == null) { // We don't yet support `additionalProperties` that also have // properties. If we see variables, we ignore the @@ -1639,7 +1639,7 @@ public class RustServerCodegen extends DefaultCodegen implements CodegenConfig { param.vendorExtensions.put("x-example", "???"); op.vendorExtensions.put("x-no-client-example", Boolean.TRUE); } - } else if ((param.dataFormat != null) && ((param.dataFormat.equals("date-time")) || (param.dataFormat.equals("date")))) { + } else if ((param.dataFormat != null) && (("date-time".equals(param.dataFormat)) || ("date".equals(param.dataFormat)))) { param.vendorExtensions.put("x-format-string", "{:?}"); param.vendorExtensions.put("x-example", "None"); } else { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaAkkaHttpServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaAkkaHttpServerCodegen.java index 677742424b..f2d63fbf14 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaAkkaHttpServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaAkkaHttpServerCodegen.java @@ -271,7 +271,7 @@ public class ScalaAkkaHttpServerCodegen extends AbstractScalaCodegen implements if (!param.required) { param.vendorExtensions.put("x-has-default-value", param.defaultValue != null); // Escaping default string values - if (param.defaultValue != null && param.dataType.equals("String")) { + if (param.defaultValue != null && "String".equals(param.dataType)) { param.defaultValue = String.format(Locale.ROOT, "\"%s\"", param.defaultValue); } } @@ -417,7 +417,7 @@ public class ScalaAkkaHttpServerCodegen extends AbstractScalaCodegen implements operationSpecificMarshallers.add(marshaller); } response.vendorExtensions.put("x-empty-response", response.baseType == null && response.message == null); - response.vendorExtensions.put("x-is-default", response.code.equals("0")); + response.vendorExtensions.put("x-is-default", "0".equals(response.code)); } op.vendorExtensions.put("x-specific-marshallers", operationSpecificMarshallers); op.vendorExtensions.put("x-file-params", fileParams); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaFinchServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaFinchServerCodegen.java index ea2aba2b0c..963e81a4cf 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaFinchServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaFinchServerCodegen.java @@ -316,7 +316,7 @@ public class ScalaFinchServerCodegen extends DefaultCodegen implements CodegenCo //All path parameters are String initially, for primitives these need to be converted private String toPathParameter(CodegenParameter p, String paramType, Boolean canBeOptional) { - Boolean isNotAString = !p.dataType.equals("String"); + Boolean isNotAString = !"String".equals(p.dataType); return paramType + (canBeOptional && !p.required ? "Option" : "") + "(\"" + p.baseName + "\")" + (isNotAString ? toPrimitive(p.dataType, p.required, canBeOptional) : ""); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaGatlingCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaGatlingCodegen.java index 00f6f75f66..0ca30c31ea 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaGatlingCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaGatlingCodegen.java @@ -279,7 +279,7 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen if (operation.getParameters() != null) { for (Parameter parameter : operation.getParameters()) { - if (parameter.getIn().equalsIgnoreCase("header")) { + if ("header".equalsIgnoreCase(parameter.getIn())) { headerParameters.add(parameter); } /* need to revise below as form parameter is no longer in the parameter list @@ -287,10 +287,10 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen formParameters.add(parameter); } */ - if (parameter.getIn().equalsIgnoreCase("query")) { + if ("query".equalsIgnoreCase(parameter.getIn())) { queryParameters.add(parameter); } - if (parameter.getIn().equalsIgnoreCase("path")) { + if ("path".equalsIgnoreCase(parameter.getIn())) { pathParameters.add(parameter); } /* TODO need to revise below as body is no longer in the parameter diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaSttpClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaSttpClientCodegen.java index 4e26928038..701be93e47 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaSttpClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/ScalaSttpClientCodegen.java @@ -380,9 +380,9 @@ public class ScalaSttpClientCodegen extends AbstractScalaCodegen implements Code @Override public void updateAdditionalProperties(Map additionalProperties) { String value = getValue(additionalProperties); - if (value.equals(CIRCE) || value.equals(JSON4S)) { - additionalProperties.put(CIRCE, value.equals(CIRCE)); - additionalProperties.put(JSON4S, value.equals(JSON4S)); + if (CIRCE.equals(value) || JSON4S.equals(value)) { + additionalProperties.put(CIRCE, CIRCE.equals(value)); + additionalProperties.put(JSON4S, JSON4S.equals(value)); } else { IllegalArgumentException exception = new IllegalArgumentException("Invalid json library: " + value + ". Must be " + CIRCE + " " + diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java index b2481bd370..058acbed95 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java @@ -358,13 +358,13 @@ public class SpringCodegen extends AbstractJavaCodegen supportingFiles.add(new SupportingFile("README.mustache", "", "README.md")); if (!this.interfaceOnly) { - if (library.equals(SPRING_BOOT)) { + if (SPRING_BOOT.equals(library)) { supportingFiles.add(new SupportingFile("openapi2SpringBoot.mustache", (sourceFolder + File.separator + basePackage).replace(".", java.io.File.separator), "OpenAPI2SpringBoot.java")); supportingFiles.add(new SupportingFile("RFC3339DateFormat.mustache", (sourceFolder + File.separator + basePackage).replace(".", java.io.File.separator), "RFC3339DateFormat.java")); } - if (library.equals(SPRING_MVC_LIBRARY)) { + if (SPRING_MVC_LIBRARY.equals(library)) { supportingFiles.add(new SupportingFile("webApplication.mustache", (sourceFolder + File.separator + configPackage).replace(".", java.io.File.separator), "WebApplication.java")); supportingFiles.add(new SupportingFile("webMvcConfiguration.mustache", @@ -374,7 +374,7 @@ public class SpringCodegen extends AbstractJavaCodegen supportingFiles.add(new SupportingFile("RFC3339DateFormat.mustache", (sourceFolder + File.separator + configPackage).replace(".", java.io.File.separator), "RFC3339DateFormat.java")); } - if (library.equals(SPRING_CLOUD_LIBRARY)) { + if (SPRING_CLOUD_LIBRARY.equals(library)) { supportingFiles.add(new SupportingFile("apiKeyRequestInterceptor.mustache", (sourceFolder + File.separator + configPackage).replace(".", java.io.File.separator), "ApiKeyRequestInterceptor.java")); supportingFiles.add(new SupportingFile("clientConfiguration.mustache", @@ -398,7 +398,7 @@ public class SpringCodegen extends AbstractJavaCodegen ("src/main/resources").replace("/", java.io.File.separator), "openapi.yaml")); } } - } else if (this.openapiDocketConfig && !library.equals(SPRING_CLOUD_LIBRARY) && !this.reactive && !this.apiFirst) { + } else if (this.openapiDocketConfig && !SPRING_CLOUD_LIBRARY.equals(library) && !this.reactive && !this.apiFirst) { supportingFiles.add(new SupportingFile("openapiDocumentationConfig.mustache", (sourceFolder + File.separator + configPackage).replace(".", java.io.File.separator), "OpenAPIDocumentationConfig.java")); } @@ -416,7 +416,7 @@ public class SpringCodegen extends AbstractJavaCodegen if ("threetenbp".equals(dateLibrary)) { supportingFiles.add(new SupportingFile("customInstantDeserializer.mustache", (sourceFolder + File.separator + configPackage).replace(".", java.io.File.separator), "CustomInstantDeserializer.java")); - if (library.equals(SPRING_BOOT) || library.equals(SPRING_CLOUD_LIBRARY)) { + if (SPRING_BOOT.equals(library) || SPRING_CLOUD_LIBRARY.equals(library)) { supportingFiles.add(new SupportingFile("jacksonConfiguration.mustache", (sourceFolder + File.separator + configPackage).replace(".", java.io.File.separator), "JacksonConfiguration.java")); } @@ -500,7 +500,7 @@ public class SpringCodegen extends AbstractJavaCodegen @Override public void addOperationToGroup(String tag, String resourcePath, Operation operation, CodegenOperation co, Map> operations) { - if ((library.equals(SPRING_BOOT) || library.equals(SPRING_MVC_LIBRARY)) && !useTags) { + if ((SPRING_BOOT.equals(library) || SPRING_MVC_LIBRARY.equals(library)) && !useTags) { String basePath = resourcePath; if (basePath.startsWith("/")) { basePath = basePath.substring(1); @@ -510,7 +510,7 @@ public class SpringCodegen extends AbstractJavaCodegen basePath = basePath.substring(0, pos); } - if (basePath.equals("")) { + if ("".equals(basePath)) { basePath = "default"; } else { co.subresourceOperation = !co.path.isEmpty(); @@ -682,7 +682,7 @@ public class SpringCodegen extends AbstractJavaCodegen @Override public Map postProcessSupportingFileData(Map objs) { generateYAMLSpecFile(objs); - if (library.equals(SPRING_CLOUD_LIBRARY)) { + if (SPRING_CLOUD_LIBRARY.equals(library)) { List authMethods = (List) objs.get("authMethods"); if (authMethods != null) { for (CodegenSecurity authMethod : authMethods) { diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift4Codegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift4Codegen.java index f972f2760a..e5724a3c7e 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift4Codegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift4Codegen.java @@ -534,12 +534,12 @@ public class Swift4Codegen extends DefaultCodegen implements CodegenConfig { @Override public boolean isDataTypeFile(String dataType) { - return dataType != null && dataType.equals("URL"); + return dataType != null && "URL".equals(dataType); } @Override public boolean isDataTypeBinary(final String dataType) { - return dataType != null && dataType.equals("Data"); + return dataType != null && "Data".equals(dataType); } /** diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java index 068f0f5ac6..a5d71b4d30 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/Swift5ClientCodegen.java @@ -546,12 +546,12 @@ public class Swift5ClientCodegen extends DefaultCodegen implements CodegenConfig @Override public boolean isDataTypeFile(String dataType) { - return dataType != null && dataType.equals("URL"); + return dataType != null && "URL".equals(dataType); } @Override public boolean isDataTypeBinary(final String dataType) { - return dataType != null && dataType.equals("Data"); + return dataType != null && "Data".equals(dataType); } /** diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java index 174908624e..77bf353a41 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAngularClientCodegen.java @@ -384,7 +384,7 @@ public class TypeScriptAngularClientCodegen extends AbstractTypeScriptClientCode @Override public boolean isDataTypeFile(final String dataType) { - return dataType != null && dataType.equals("Blob"); + return dataType != null && "Blob".equals(dataType); } @Override diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAureliaClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAureliaClientCodegen.java index 1c7f374921..c879a6bb54 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAureliaClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptAureliaClientCodegen.java @@ -94,7 +94,7 @@ public class TypeScriptAureliaClientCodegen extends AbstractTypeScriptClientCode // Collect models to be imported for (CodegenParameter param : op.allParams) { - if (!param.isPrimitiveType && !param.isArray && !param.dataType.equals("any")) { + if (!param.isPrimitiveType && !param.isArray && !"any".equals(param.dataType)) { modelImports.add(param.dataType); } } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java index de64802525..c8fe4b4e04 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptClientCodegen.java @@ -783,15 +783,15 @@ public class TypeScriptClientCodegen extends DefaultCodegen implements CodegenCo } additionalProperties.put("platforms", platforms); - additionalProperties.putIfAbsent(FILE_CONTENT_DATA_TYPE, propPlatform.equals("node") ? "Buffer" : "Blob"); + additionalProperties.putIfAbsent(FILE_CONTENT_DATA_TYPE, "node".equals(propPlatform) ? "Buffer" : "Blob"); - if (!propPlatform.equals("deno")) { + if (!"deno".equals(propPlatform)) { supportingFiles.add(new SupportingFile("README.mustache", "", "README.md")); supportingFiles.add(new SupportingFile("package.mustache", "", "package.json")); supportingFiles.add(new SupportingFile("tsconfig.mustache", "", "tsconfig.json")); } - if (propPlatform.equals("deno")) { + if ("deno".equals(propPlatform)) { additionalProperties.put("extensionForDeno", ".ts"); } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptInversifyClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptInversifyClientCodegen.java index 461e1e963e..4b3daba3f8 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptInversifyClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptInversifyClientCodegen.java @@ -141,7 +141,7 @@ public class TypeScriptInversifyClientCodegen extends AbstractTypeScriptClientCo @Override public boolean isDataTypeFile(final String dataType) { - return dataType != null && dataType.equals("Blob"); + return dataType != null && "Blob".equals(dataType); } @Override diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNestjsClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNestjsClientCodegen.java index f37e6c0990..4e5e6c903c 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNestjsClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNestjsClientCodegen.java @@ -216,7 +216,7 @@ public class TypeScriptNestjsClientCodegen extends AbstractTypeScriptClientCodeg @Override public boolean isDataTypeFile(final String dataType) { - return dataType != null && dataType.equals("Blob"); + return dataType != null && "Blob".equals(dataType); } @Override diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNodeClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNodeClientCodegen.java index ab719e8990..9ff6f444c5 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNodeClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptNodeClientCodegen.java @@ -82,7 +82,7 @@ public class TypeScriptNodeClientCodegen extends AbstractTypeScriptClientCodegen @Override public boolean isDataTypeFile(final String dataType) { - return dataType != null && dataType.equals("RequestFile"); + return dataType != null && "RequestFile".equals(dataType); } @Override diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptRxjsClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptRxjsClientCodegen.java index 9e185c40e7..a2f79f519a 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptRxjsClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/TypeScriptRxjsClientCodegen.java @@ -98,7 +98,7 @@ public class TypeScriptRxjsClientCodegen extends AbstractTypeScriptClientCodegen @Override public boolean isDataTypeFile(final String dataType) { - return dataType != null && dataType.equals("Blob"); + return dataType != null && "Blob".equals(dataType); } @Override diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/validations/oas/OpenApiParameterValidations.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/validations/oas/OpenApiParameterValidations.java index d7bf3ff2e4..17dd08c433 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/validations/oas/OpenApiParameterValidations.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/validations/oas/OpenApiParameterValidations.java @@ -34,7 +34,7 @@ class OpenApiParameterValidations extends GenericValidator { */ private static ValidationRule.Result apacheNginxHeaderCheck(ParameterWrapper parameterWrapper) { Parameter parameter = parameterWrapper.getParameter(); - if (parameter == null || !parameter.getIn().equals("header")) return ValidationRule.Pass.empty(); + if (parameter == null || !"header".equals(parameter.getIn())) return ValidationRule.Pass.empty(); ValidationRule.Result result = ValidationRule.Pass.empty(); String headerName = parameter.getName(); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java index c2c5b2a040..a21c506d5a 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java @@ -270,11 +270,11 @@ public class DefaultCodegenTest { CodegenProperty map_without_additional_properties_cp = null; for(CodegenProperty cp: cm.vars) { - if (cp.baseName.equals("map_string")) { + if ("map_string".equals(cp.baseName)) { map_string_cp = cp; - } else if (cp.baseName.equals("map_with_additional_properties")) { + } else if ("map_with_additional_properties".equals(cp.baseName)) { map_with_additional_properties_cp = cp; - } else if (cp.baseName.equals("map_without_additional_properties")) { + } else if ("map_without_additional_properties".equals(cp.baseName)) { map_without_additional_properties_cp = cp; } } @@ -359,11 +359,11 @@ public class DefaultCodegenTest { CodegenProperty map_without_additional_properties_cp = null; for(CodegenProperty cp: cm.vars) { - if (cp.baseName.equals("map_string")) { + if ("map_string".equals(cp.baseName)) { map_string_cp = cp; - } else if (cp.baseName.equals("map_with_additional_properties")) { + } else if ("map_with_additional_properties".equals(cp.baseName)) { map_with_additional_properties_cp = cp; - } else if (cp.baseName.equals("map_without_additional_properties")) { + } else if ("map_without_additional_properties".equals(cp.baseName)) { map_without_additional_properties_cp = cp; } } @@ -439,15 +439,15 @@ public class DefaultCodegenTest { CodegenProperty empty_map_cp = null; for(CodegenProperty cp: cm.vars) { - if (cp.baseName.equals("map_with_undeclared_properties_string")) { + if ("map_with_undeclared_properties_string".equals(cp.baseName)) { map_with_undeclared_properties_string_cp = cp; - } else if (cp.baseName.equals("map_with_undeclared_properties_anytype_1")) { + } else if ("map_with_undeclared_properties_anytype_1".equals(cp.baseName)) { map_with_undeclared_properties_anytype_1_cp = cp; - } else if (cp.baseName.equals("map_with_undeclared_properties_anytype_2")) { + } else if ("map_with_undeclared_properties_anytype_2".equals(cp.baseName)) { map_with_undeclared_properties_anytype_2_cp = cp; - } else if (cp.baseName.equals("map_with_undeclared_properties_anytype_3")) { + } else if ("map_with_undeclared_properties_anytype_3".equals(cp.baseName)) { map_with_undeclared_properties_anytype_3_cp = cp; - } else if (cp.baseName.equals("empty_map")) { + } else if ("empty_map".equals(cp.baseName)) { empty_map_cp = cp; } } @@ -610,7 +610,7 @@ public class DefaultCodegenTest { // make sure that fruit has the property color boolean colorSeen = false; for (CodegenProperty cp : fruit.vars) { - if (cp.name.equals("color")) { + if ("color".equals(cp.name)) { colorSeen = true; break; } @@ -618,7 +618,7 @@ public class DefaultCodegenTest { Assert.assertTrue(colorSeen); colorSeen = false; for (CodegenProperty cp : fruit.optionalVars) { - if (cp.name.equals("color")) { + if ("color".equals(cp.name)) { colorSeen = true; break; } From f66fbf6969080f8070dad8675e8cea8226eb10df Mon Sep 17 00:00:00 2001 From: Peter Leibiger Date: Mon, 29 Mar 2021 18:17:37 +0200 Subject: [PATCH 29/32] [dart][dart-dio] Update dependencies (#9122) * [dart-dio] Update dio * [dart-dio] Update to dio 4.0.0 * [dart-dio] Fix dependency problems with Dart 2.12 SDK during build * Revert changes to analyzer This only fails locally, not sure why. CI only shows a warning. * Fix compile error after http_mock update --- .../src/main/resources/dart-dio/pubspec.mustache | 7 +++---- .../resources/dart/libraries/dio/pubspec.mustache | 2 +- .../dart-dio/petstore_client_lib/pubspec.yaml | 5 ++--- .../petstore_client_lib_fake/pubspec.yaml | 2 +- .../petstore_client_lib_fake_tests/pubspec.yaml | 12 ++++++------ .../test/api/pet_api_test.dart | 2 +- .../dart-dio/petstore_client_lib/pubspec.yaml | 5 ++--- .../dart-dio/petstore_client_lib_fake/pubspec.yaml | 5 ++--- .../petstore_client_lib_fake_tests/pubspec.yaml | 2 +- .../test/api/pet_api_test.dart | 2 +- 10 files changed, 20 insertions(+), 24 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/dart-dio/pubspec.mustache b/modules/openapi-generator/src/main/resources/dart-dio/pubspec.mustache index 8aea662a61..1d1a328aff 100644 --- a/modules/openapi-generator/src/main/resources/dart-dio/pubspec.mustache +++ b/modules/openapi-generator/src/main/resources/dart-dio/pubspec.mustache @@ -4,14 +4,13 @@ description: {{pubDescription}} environment: sdk: '>=2.7.0 <3.0.0' dependencies: - dio: ^3.0.9 + dio: '^3.0.9' built_value: '>=7.1.0 <8.0.0' built_collection: '>=4.3.2 <5.0.0' {{#timeMachine}} - time_machine: ^0.9.12 + time_machine: '^0.9.12' {{/timeMachine}} dev_dependencies: built_value_generator: '>=7.1.0 <8.0.0' - build_runner: ^1.7.1 + build_runner: any test: '>=1.3.0 <1.16.0' - diff --git a/modules/openapi-generator/src/main/resources/dart/libraries/dio/pubspec.mustache b/modules/openapi-generator/src/main/resources/dart/libraries/dio/pubspec.mustache index 55234533fd..7e466cc87f 100644 --- a/modules/openapi-generator/src/main/resources/dart/libraries/dio/pubspec.mustache +++ b/modules/openapi-generator/src/main/resources/dart/libraries/dio/pubspec.mustache @@ -6,7 +6,7 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - dio: '4.0.0-prev2' + dio: '>=4.0.0 <5.0.0' {{#useBuiltValue}} built_value: '>=8.0.3 <9.0.0' built_collection: '>=5.0.0 <6.0.0' diff --git a/samples/client/petstore/dart-dio/petstore_client_lib/pubspec.yaml b/samples/client/petstore/dart-dio/petstore_client_lib/pubspec.yaml index cd7cef8cc4..0db393df2b 100644 --- a/samples/client/petstore/dart-dio/petstore_client_lib/pubspec.yaml +++ b/samples/client/petstore/dart-dio/petstore_client_lib/pubspec.yaml @@ -4,11 +4,10 @@ description: OpenAPI API client environment: sdk: '>=2.7.0 <3.0.0' dependencies: - dio: ^3.0.9 + dio: '^3.0.9' built_value: '>=7.1.0 <8.0.0' built_collection: '>=4.3.2 <5.0.0' dev_dependencies: built_value_generator: '>=7.1.0 <8.0.0' - build_runner: ^1.7.1 + build_runner: any test: '>=1.3.0 <1.16.0' - diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/pubspec.yaml b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/pubspec.yaml index 5bcd72573d..ccc4160f3f 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/pubspec.yaml +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake/pubspec.yaml @@ -6,7 +6,7 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - dio: '4.0.0-prev2' + dio: '>=4.0.0 <5.0.0' built_value: '>=8.0.3 <9.0.0' built_collection: '>=5.0.0 <6.0.0' diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake_tests/pubspec.yaml b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake_tests/pubspec.yaml index 73a5b2fbe3..14ffe9f815 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake_tests/pubspec.yaml +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake_tests/pubspec.yaml @@ -8,17 +8,17 @@ environment: sdk: '>=2.10.0 <3.0.0' dev_dependencies: - built_collection: '>=5.0.0 <6.0.0' - built_value: '>=8.0.3 <9.0.0' - dio: '4.0.0-prev2' + built_collection: '5.0.0' + built_value: '8.0.3' + dio: '4.0.0' http_mock_adapter: 1.0.0-nullsafety.1 - mockito: ^5.0.0 + mockito: '5.0.0' openapi: path: ../petstore_client_lib_fake - test: ^1.16.5 + test: '1.16.5' dependency_overrides: http_mock_adapter: git: url: https://github.com/kuhnroyal/http-mock-adapter.git - ref: 6f4489cbceb076494d3fb956665259749520a3bf + ref: 1e3115a3de1dde132ebe7cb711d9175a97adda02 diff --git a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake_tests/test/api/pet_api_test.dart b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake_tests/test/api/pet_api_test.dart index 80aa2b8bfa..5aae7639fd 100644 --- a/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake_tests/test/api/pet_api_test.dart +++ b/samples/openapi3/client/petstore/dart-dio-next/petstore_client_lib_fake_tests/test/api/pet_api_test.dart @@ -190,7 +190,7 @@ void main() { }, ]), request: Request( - method: RequestMethods.GET, + method: RequestMethods.get, queryParameters: { 'status': [ 'available', diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/pubspec.yaml b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/pubspec.yaml index cd7cef8cc4..0db393df2b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/pubspec.yaml +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib/pubspec.yaml @@ -4,11 +4,10 @@ description: OpenAPI API client environment: sdk: '>=2.7.0 <3.0.0' dependencies: - dio: ^3.0.9 + dio: '^3.0.9' built_value: '>=7.1.0 <8.0.0' built_collection: '>=4.3.2 <5.0.0' dev_dependencies: built_value_generator: '>=7.1.0 <8.0.0' - build_runner: ^1.7.1 + build_runner: any test: '>=1.3.0 <1.16.0' - diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/pubspec.yaml b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/pubspec.yaml index cd7cef8cc4..0db393df2b 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/pubspec.yaml +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/pubspec.yaml @@ -4,11 +4,10 @@ description: OpenAPI API client environment: sdk: '>=2.7.0 <3.0.0' dependencies: - dio: ^3.0.9 + dio: '^3.0.9' built_value: '>=7.1.0 <8.0.0' built_collection: '>=4.3.2 <5.0.0' dev_dependencies: built_value_generator: '>=7.1.0 <8.0.0' - build_runner: ^1.7.1 + build_runner: any test: '>=1.3.0 <1.16.0' - diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/pubspec.yaml b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/pubspec.yaml index 0bf2e1272b..9cfa0f90cd 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/pubspec.yaml +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/pubspec.yaml @@ -13,7 +13,7 @@ dev_dependencies: http_mock_adapter: git: url: https://github.com/kuhnroyal/http-mock-adapter.git - ref: 2d7bb10369be49d3c53a6567cc76e8580b5d133d + ref: 24cafff5236f8cc7d52a05529751ac47abd895ff openapi: path: ../petstore_client_lib_fake test: 1.15.5 diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/test/api/pet_api_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/test/api/pet_api_test.dart index 616441379b..39baadd837 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/test/api/pet_api_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake_tests/test/api/pet_api_test.dart @@ -186,7 +186,7 @@ void main() { }, ]), request: Request( - method: RequestMethods.GET, + method: RequestMethods.get, queryParameters: { 'status': [ 'available', From f898bfc7d6a0c9bba90b1cb41ae8f01ffae400ee Mon Sep 17 00:00:00 2001 From: William Cheng Date: Tue, 30 Mar 2021 11:09:21 +0800 Subject: [PATCH 30/32] better default value handling in go generators (#9106) --- .../org/openapitools/codegen/languages/AbstractGoCodegen.java | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java index cfcf4fa27d..e45bc2ef3f 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java @@ -788,6 +788,7 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege @Override public String toDefaultValue(Schema schema) { + schema = ModelUtils.unaliasSchema(this.openAPI, schema); if (schema.getDefault() != null) { return schema.getDefault().toString(); } else { From becb4244559e377269b053139e554ed359548005 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Tue, 30 Mar 2021 11:13:30 +0800 Subject: [PATCH 31/32] [PHP] minor code enhancement (#9009) * minor code enhancement * remove unused files --- .../resources/php/ObjectSerializer.mustache | 4 +- .../src/main/resources/php/api.mustache | 43 +- .../src/main/resources/php/model.mustache | 2 +- .../main/resources/php/model_generic.mustache | 19 +- .../resources/php/partial_header.mustache | 8 +- .../docs/Model/AdditionalPropertiesAnyType.md | 11 - .../docs/Model/AdditionalPropertiesArray.md | 11 - .../docs/Model/AdditionalPropertiesBoolean.md | 11 - .../docs/Model/AdditionalPropertiesInteger.md | 11 - .../docs/Model/AdditionalPropertiesNumber.md | 11 - .../docs/Model/AdditionalPropertiesObject.md | 11 - .../docs/Model/AdditionalPropertiesString.md | 11 - .../OpenAPIClient-php/docs/Model/BigCat.md | 11 - .../docs/Model/BigCatAllOf.md | 11 - .../docs/Model/InlineObject.md | 10 - .../docs/Model/InlineObject1.md | 10 - .../docs/Model/InlineObject2.md | 10 - .../docs/Model/InlineObject3.md | 22 - .../docs/Model/InlineObject4.md | 10 - .../docs/Model/InlineObject5.md | 10 - .../docs/Model/TypeHolderDefault.md | 15 - .../docs/Model/TypeHolderExample.md | 16 - .../OpenAPIClient-php/docs/Model/XmlItem.md | 39 - .../lib/Api/AnotherFakeApi.php | 26 +- .../OpenAPIClient-php/lib/Api/DefaultApi.php | 30 +- .../php/OpenAPIClient-php/lib/Api/FakeApi.php | 276 ++-- .../lib/Api/FakeClassnameTags123Api.php | 26 +- .../php/OpenAPIClient-php/lib/Api/PetApi.php | 150 +-- .../OpenAPIClient-php/lib/Api/StoreApi.php | 80 +- .../php/OpenAPIClient-php/lib/Api/UserApi.php | 97 +- .../OpenAPIClient-php/lib/ApiException.php | 1 - .../OpenAPIClient-php/lib/Configuration.php | 1 - .../OpenAPIClient-php/lib/HeaderSelector.php | 1 - .../lib/Model/AdditionalPropertiesAnyType.php | 307 ----- .../lib/Model/AdditionalPropertiesArray.php | 307 ----- .../lib/Model/AdditionalPropertiesBoolean.php | 307 ----- .../lib/Model/AdditionalPropertiesClass.php | 6 +- .../lib/Model/AdditionalPropertiesInteger.php | 307 ----- .../lib/Model/AdditionalPropertiesNumber.php | 307 ----- .../lib/Model/AdditionalPropertiesObject.php | 307 ----- .../lib/Model/AdditionalPropertiesString.php | 307 ----- .../OpenAPIClient-php/lib/Model/Animal.php | 6 +- .../lib/Model/ApiResponse.php | 6 +- .../lib/Model/ArrayOfArrayOfNumberOnly.php | 6 +- .../lib/Model/ArrayOfNumberOnly.php | 6 +- .../OpenAPIClient-php/lib/Model/ArrayTest.php | 6 +- .../OpenAPIClient-php/lib/Model/BigCat.php | 337 ----- .../lib/Model/BigCatAllOf.php | 343 ----- .../lib/Model/Capitalization.php | 6 +- .../php/OpenAPIClient-php/lib/Model/Cat.php | 8 +- .../OpenAPIClient-php/lib/Model/CatAllOf.php | 6 +- .../OpenAPIClient-php/lib/Model/Category.php | 6 +- .../lib/Model/ClassModel.php | 6 +- .../OpenAPIClient-php/lib/Model/Client.php | 6 +- .../php/OpenAPIClient-php/lib/Model/Dog.php | 8 +- .../OpenAPIClient-php/lib/Model/DogAllOf.php | 6 +- .../lib/Model/EnumArrays.php | 8 +- .../OpenAPIClient-php/lib/Model/EnumClass.php | 1 - .../OpenAPIClient-php/lib/Model/EnumTest.php | 12 +- .../php/OpenAPIClient-php/lib/Model/File.php | 6 +- .../lib/Model/FileSchemaTestClass.php | 6 +- .../php/OpenAPIClient-php/lib/Model/Foo.php | 6 +- .../lib/Model/FormatTest.php | 6 +- .../lib/Model/HasOnlyReadOnly.php | 6 +- .../lib/Model/HealthCheckResult.php | 6 +- .../lib/Model/InlineObject.php | 354 ----- .../lib/Model/InlineObject1.php | 354 ----- .../lib/Model/InlineObject2.php | 414 ------ .../lib/Model/InlineObject3.php | 832 ------------ .../lib/Model/InlineObject4.php | 360 ------ .../lib/Model/InlineObject5.php | 357 ----- .../lib/Model/InlineResponseDefault.php | 6 +- .../OpenAPIClient-php/lib/Model/MapTest.php | 6 +- ...PropertiesAndAdditionalPropertiesClass.php | 6 +- .../lib/Model/Model200Response.php | 6 +- .../lib/Model/ModelInterface.php | 1 - .../OpenAPIClient-php/lib/Model/ModelList.php | 6 +- .../lib/Model/ModelReturn.php | 6 +- .../php/OpenAPIClient-php/lib/Model/Name.php | 6 +- .../lib/Model/NullableClass.php | 6 +- .../lib/Model/NumberOnly.php | 6 +- .../php/OpenAPIClient-php/lib/Model/Order.php | 6 +- .../lib/Model/OuterComposite.php | 6 +- .../OpenAPIClient-php/lib/Model/OuterEnum.php | 1 - .../lib/Model/OuterEnumDefaultValue.php | 1 - .../lib/Model/OuterEnumInteger.php | 1 - .../Model/OuterEnumIntegerDefaultValue.php | 1 - .../lib/Model/OuterObjectWithEnumProperty.php | 6 +- .../php/OpenAPIClient-php/lib/Model/Pet.php | 6 +- .../lib/Model/ReadOnlyFirst.php | 6 +- .../lib/Model/SpecialModelName.php | 6 +- .../php/OpenAPIClient-php/lib/Model/Tag.php | 6 +- .../lib/Model/TypeHolderDefault.php | 442 ------- .../lib/Model/TypeHolderExample.php | 475 ------- .../php/OpenAPIClient-php/lib/Model/User.php | 6 +- .../OpenAPIClient-php/lib/Model/XmlItem.php | 1147 ----------------- .../lib/ObjectSerializer.php | 5 +- 97 files changed, 383 insertions(+), 8443 deletions(-) delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesAnyType.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesArray.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesBoolean.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesInteger.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesNumber.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesObject.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesString.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/BigCat.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/BigCatAllOf.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject1.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject2.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject3.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject4.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject5.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderDefault.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderExample.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/docs/Model/XmlItem.md delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesAnyType.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesArray.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesBoolean.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesInteger.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesNumber.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesObject.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesString.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/BigCat.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/BigCatAllOf.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject1.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject2.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject3.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject4.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject5.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderDefault.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderExample.php delete mode 100644 samples/client/petstore/php/OpenAPIClient-php/lib/Model/XmlItem.php diff --git a/modules/openapi-generator/src/main/resources/php/ObjectSerializer.mustache b/modules/openapi-generator/src/main/resources/php/ObjectSerializer.mustache index 6af8543ad0..0d8490f057 100644 --- a/modules/openapi-generator/src/main/resources/php/ObjectSerializer.mustache +++ b/modules/openapi-generator/src/main/resources/php/ObjectSerializer.mustache @@ -265,11 +265,11 @@ class ObjectSerializer if (strcasecmp(substr($class, -2), '[]') === 0) { $data = is_string($data) ? json_decode($data) : $data; - + if (!is_array($data)) { throw new \InvalidArgumentException("Invalid array '$class'"); } - + $subClass = substr($class, 0, -2); $values = []; foreach ($data as $key => $value) { diff --git a/modules/openapi-generator/src/main/resources/php/api.mustache b/modules/openapi-generator/src/main/resources/php/api.mustache index 38ae500ff4..206c0a2582 100644 --- a/modules/openapi-generator/src/main/resources/php/api.mustache +++ b/modules/openapi-generator/src/main/resources/php/api.mustache @@ -82,7 +82,7 @@ use {{invokerPackage}}\ObjectSerializer; * * @param int $hostIndex Host index (required) */ - public function setHostIndex($hostIndex) + public function setHostIndex($hostIndex): void { $this->hostIndex = $hostIndex; } @@ -110,7 +110,7 @@ use {{invokerPackage}}\ObjectSerializer; * Operation {{{operationId}}} {{#summary}} * - * {{{summary}}} + * {{.}} {{/summary}} * {{#description}} @@ -148,7 +148,7 @@ use {{invokerPackage}}\ObjectSerializer; * Operation {{{operationId}}}WithHttpInfo {{#summary}} * - * {{{summary}}} + * {{.}} {{/summary}} * {{#description}} @@ -187,7 +187,7 @@ use {{invokerPackage}}\ObjectSerializer; } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -200,26 +200,25 @@ use {{invokerPackage}}\ObjectSerializer; sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } {{#returnType}} - {{#responses}} + {{#responses}} {{#-first}} - $responseBody = $response->getBody(); switch($statusCode) { {{/-first}} {{#dataType}} {{^isWildcard}}case {{code}}:{{/isWildcard}}{{#isWildcard}}default:{{/isWildcard}} if ('{{{dataType}}}' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -231,14 +230,13 @@ use {{invokerPackage}}\ObjectSerializer; {{#-last}} } {{/-last}} - {{/responses}} + {{/responses}} $returnType = '{{{returnType}}}'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -274,8 +272,10 @@ use {{invokerPackage}}\ObjectSerializer; /** * Operation {{{operationId}}}Async * - * {{{summary}}} +{{#summary}} + * {{.}} * +{{/summary}} {{#description}} * {{.}} * @@ -313,8 +313,10 @@ use {{invokerPackage}}\ObjectSerializer; /** * Operation {{{operationId}}}AsyncWithHttpInfo * - * {{{summary}}} +{{#summary}} + * {{.}} * +{{/summary}} {{#description}} * {{.}} * @@ -349,11 +351,10 @@ use {{invokerPackage}}\ObjectSerializer; ->then( function ($response) use ($returnType) { {{#returnType}} - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -364,7 +365,7 @@ use {{invokerPackage}}\ObjectSerializer; {{/returnType}} {{^returnType}} return [null, $response->getStatusCode(), $response->getHeaders()]; - {{/returnType}} + {{/returnType}} }, function ($exception) { $response = $exception->getResponse(); @@ -377,7 +378,7 @@ use {{invokerPackage}}\ObjectSerializer; ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); diff --git a/modules/openapi-generator/src/main/resources/php/model.mustache b/modules/openapi-generator/src/main/resources/php/model.mustache index 3c0b819822..d1450f72cb 100644 --- a/modules/openapi-generator/src/main/resources/php/model.mustache +++ b/modules/openapi-generator/src/main/resources/php/model.mustache @@ -41,7 +41,7 @@ use \{{invokerPackage}}\ObjectSerializer; {{^isEnum}} * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null {{/isEnum}} */ {{#isEnum}}{{>model_enum}}{{/isEnum}}{{^isEnum}}{{>model_generic}}{{/isEnum}} diff --git a/modules/openapi-generator/src/main/resources/php/model_generic.mustache b/modules/openapi-generator/src/main/resources/php/model_generic.mustache index d0ac8f0c02..276b2bd9d8 100644 --- a/modules/openapi-generator/src/main/resources/php/model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/php/model_generic.mustache @@ -1,4 +1,4 @@ -class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^parentSchema}}implements ModelInterface, ArrayAccess, \JsonSerializable{{/parentSchema}} +class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^parentSchema}}implements ModelInterface, ArrayAccess, \JsonSerializable{{/parentSchema}} { public const DISCRIMINATOR = {{#discriminator}}'{{discriminatorName}}'{{/discriminator}}{{^discriminator}}null{{/discriminator}}; @@ -123,10 +123,18 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa return self::$openAPIModelName; } - {{#vars}}{{#isEnum}}{{#allowableValues}}{{#enumVars}}const {{enumName}}_{{{name}}} = {{{value}}}; - {{/enumVars}}{{/allowableValues}}{{/isEnum}}{{/vars}} + {{#vars}} + {{#isEnum}} + {{#allowableValues}} + {{#enumVars}} + const {{enumName}}_{{{name}}} = {{{value}}}; + {{/enumVars}} + {{/allowableValues}} + {{/isEnum}} + {{/vars}} - {{#vars}}{{#isEnum}} + {{#vars}} + {{#isEnum}} /** * Gets allowable values of the enum * @@ -139,8 +147,9 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa {{/-last}}{{/enumVars}}{{/allowableValues}} ]; } - {{/isEnum}}{{/vars}} + {{/isEnum}} + {{/vars}} {{^parentSchema}} /** * Associative array for storing property values diff --git a/modules/openapi-generator/src/main/resources/php/partial_header.mustache b/modules/openapi-generator/src/main/resources/php/partial_header.mustache index 67ad45e43b..496169aae3 100644 --- a/modules/openapi-generator/src/main/resources/php/partial_header.mustache +++ b/modules/openapi-generator/src/main/resources/php/partial_header.mustache @@ -7,8 +7,12 @@ * {{{appDescription}}} * {{/appDescription}} - * {{#version}}The version of the OpenAPI document: {{{version}}}{{/version}} - * {{#infoEmail}}Contact: {{{infoEmail}}}{{/infoEmail}} + {{#version}} + * The version of the OpenAPI document: {{{version}}} + {{/version}} + {{#infoEmail}} + * Contact: {{{infoEmail}}} + {{/infoEmail}} * Generated by: https://openapi-generator.tech * OpenAPI Generator version: {{{generatorVersion}}} */ diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesAnyType.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesAnyType.md deleted file mode 100644 index 595bf4b841..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesAnyType.md +++ /dev/null @@ -1,11 +0,0 @@ -# # AdditionalPropertiesAnyType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesArray.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesArray.md deleted file mode 100644 index 2af1984c63..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesArray.md +++ /dev/null @@ -1,11 +0,0 @@ -# # AdditionalPropertiesArray - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesBoolean.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesBoolean.md deleted file mode 100644 index 1f8207bec9..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesBoolean.md +++ /dev/null @@ -1,11 +0,0 @@ -# # AdditionalPropertiesBoolean - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesInteger.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesInteger.md deleted file mode 100644 index 101b8f40a3..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesInteger.md +++ /dev/null @@ -1,11 +0,0 @@ -# # AdditionalPropertiesInteger - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesNumber.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesNumber.md deleted file mode 100644 index 82ed504518..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesNumber.md +++ /dev/null @@ -1,11 +0,0 @@ -# # AdditionalPropertiesNumber - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesObject.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesObject.md deleted file mode 100644 index e06f51ef7b..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesObject.md +++ /dev/null @@ -1,11 +0,0 @@ -# # AdditionalPropertiesObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesString.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesString.md deleted file mode 100644 index 2483d6b582..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/AdditionalPropertiesString.md +++ /dev/null @@ -1,11 +0,0 @@ -# # AdditionalPropertiesString - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/BigCat.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/BigCat.md deleted file mode 100644 index 8aa1c543ea..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/BigCat.md +++ /dev/null @@ -1,11 +0,0 @@ -# # BigCat - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kind** | **string** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/BigCatAllOf.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/BigCatAllOf.md deleted file mode 100644 index 7241eb0843..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/BigCatAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# # BigCatAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**kind** | **string** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject.md deleted file mode 100644 index 147910e8f5..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject.md +++ /dev/null @@ -1,10 +0,0 @@ -# # InlineObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **string** | Updated name of the pet | [optional] -**status** | **string** | Updated status of the pet | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject1.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject1.md deleted file mode 100644 index 2aa9afa208..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject1.md +++ /dev/null @@ -1,10 +0,0 @@ -# # InlineObject1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**additional_metadata** | **string** | Additional data to pass to server | [optional] -**file** | [**\SplFileObject**](\SplFileObject.md) | file to upload | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject2.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject2.md deleted file mode 100644 index 1bc037b38d..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject2.md +++ /dev/null @@ -1,10 +0,0 @@ -# # InlineObject2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enum_form_string_array** | **string[]** | Form parameter enum test (string array) | [optional] -**enum_form_string** | **string** | Form parameter enum test (string) | [optional] [default to '-efg'] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject3.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject3.md deleted file mode 100644 index b71d410949..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject3.md +++ /dev/null @@ -1,22 +0,0 @@ -# # InlineObject3 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**integer** | **int** | None | [optional] -**int32** | **int** | None | [optional] -**int64** | **int** | None | [optional] -**number** | **float** | None | -**float** | **float** | None | [optional] -**double** | **double** | None | -**string** | **string** | None | [optional] -**pattern_without_delimiter** | **string** | None | -**byte** | **string** | None | -**binary** | [**\SplFileObject**](\SplFileObject.md) | None | [optional] -**date** | [**\DateTime**](\DateTime.md) | None | [optional] -**date_time** | [**\DateTime**](\DateTime.md) | None | [optional] -**password** | **string** | None | [optional] -**callback** | **string** | None | [optional] - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject4.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject4.md deleted file mode 100644 index c16cf834eb..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject4.md +++ /dev/null @@ -1,10 +0,0 @@ -# # InlineObject4 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**param** | **string** | field1 | -**param2** | **string** | field2 | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject5.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject5.md deleted file mode 100644 index a0f3dbae38..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/InlineObject5.md +++ /dev/null @@ -1,10 +0,0 @@ -# # InlineObject5 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**additional_metadata** | **string** | Additional data to pass to server | [optional] -**required_file** | [**\SplFileObject**](\SplFileObject.md) | file to upload | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderDefault.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderDefault.md deleted file mode 100644 index d13890be3e..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderDefault.md +++ /dev/null @@ -1,15 +0,0 @@ -# # TypeHolderDefault - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**string_item** | **string** | | [default to 'what'] -**number_item** | **float** | | -**integer_item** | **int** | | -**bool_item** | **bool** | | [default to true] -**array_item** | **int[]** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderExample.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderExample.md deleted file mode 100644 index bafe6adae4..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderExample.md +++ /dev/null @@ -1,16 +0,0 @@ -# # TypeHolderExample - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**string_item** | **string** | | -**number_item** | **float** | | -**float_item** | **float** | | -**integer_item** | **int** | | -**bool_item** | **bool** | | -**array_item** | **int[]** | | - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/XmlItem.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/XmlItem.md deleted file mode 100644 index fa348356c4..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/XmlItem.md +++ /dev/null @@ -1,39 +0,0 @@ -# # XmlItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attribute_string** | **string** | | [optional] -**attribute_number** | **float** | | [optional] -**attribute_integer** | **int** | | [optional] -**attribute_boolean** | **bool** | | [optional] -**wrapped_array** | **int[]** | | [optional] -**name_string** | **string** | | [optional] -**name_number** | **float** | | [optional] -**name_integer** | **int** | | [optional] -**name_boolean** | **bool** | | [optional] -**name_array** | **int[]** | | [optional] -**name_wrapped_array** | **int[]** | | [optional] -**prefix_string** | **string** | | [optional] -**prefix_number** | **float** | | [optional] -**prefix_integer** | **int** | | [optional] -**prefix_boolean** | **bool** | | [optional] -**prefix_array** | **int[]** | | [optional] -**prefix_wrapped_array** | **int[]** | | [optional] -**namespace_string** | **string** | | [optional] -**namespace_number** | **float** | | [optional] -**namespace_integer** | **int** | | [optional] -**namespace_boolean** | **bool** | | [optional] -**namespace_array** | **int[]** | | [optional] -**namespace_wrapped_array** | **int[]** | | [optional] -**prefix_ns_string** | **string** | | [optional] -**prefix_ns_number** | **float** | | [optional] -**prefix_ns_integer** | **int** | | [optional] -**prefix_ns_boolean** | **bool** | | [optional] -**prefix_ns_array** | **int[]** | | [optional] -**prefix_ns_wrapped_array** | **int[]** | | [optional] - -[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php index ead5b3c65f..56d6d46064 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php @@ -15,7 +15,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -92,7 +91,7 @@ class AnotherFakeApi * * @param int $hostIndex Host index (required) */ - public function setHostIndex($hostIndex) + public function setHostIndex($hostIndex): void { $this->hostIndex = $hostIndex; } @@ -154,7 +153,7 @@ class AnotherFakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -167,21 +166,20 @@ class AnotherFakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\Client' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -192,11 +190,10 @@ class AnotherFakeApi } $returnType = '\OpenAPI\Client\Model\Client'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -259,11 +256,10 @@ class AnotherFakeApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -283,7 +279,7 @@ class AnotherFakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/DefaultApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/DefaultApi.php index cdee737dcb..6bd203664b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/DefaultApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/DefaultApi.php @@ -15,7 +15,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -92,7 +91,7 @@ class DefaultApi * * @param int $hostIndex Host index (required) */ - public function setHostIndex($hostIndex) + public function setHostIndex($hostIndex): void { $this->hostIndex = $hostIndex; } @@ -148,7 +147,7 @@ class DefaultApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -161,21 +160,20 @@ class DefaultApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { default: if ('\OpenAPI\Client\Model\InlineResponseDefault' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -186,11 +184,10 @@ class DefaultApi } $returnType = '\OpenAPI\Client\Model\InlineResponseDefault'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -217,8 +214,6 @@ class DefaultApi /** * Operation fooGetAsync * - * - * * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -236,8 +231,6 @@ class DefaultApi /** * Operation fooGetAsyncWithHttpInfo * - * - * * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -251,11 +244,10 @@ class DefaultApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -275,7 +267,7 @@ class DefaultApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php index 85bdf8b8b4..bbb07a5052 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeApi.php @@ -15,7 +15,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -92,7 +91,7 @@ class FakeApi * * @param int $hostIndex Host index (required) */ - public function setHostIndex($hostIndex) + public function setHostIndex($hostIndex): void { $this->hostIndex = $hostIndex; } @@ -152,7 +151,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -165,21 +164,20 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\HealthCheckResult' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -190,11 +188,10 @@ class FakeApi } $returnType = '\OpenAPI\Client\Model\HealthCheckResult'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -255,11 +252,10 @@ class FakeApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -279,7 +275,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -405,7 +401,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -418,11 +414,11 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -491,7 +487,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -640,7 +636,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -653,21 +649,20 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('bool' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -678,11 +673,10 @@ class FakeApi } $returnType = 'bool'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -709,8 +703,6 @@ class FakeApi /** * Operation fakeOuterBooleanSerializeAsync * - * - * * @param bool $body Input boolean as post body (optional) * * @throws \InvalidArgumentException @@ -729,8 +721,6 @@ class FakeApi /** * Operation fakeOuterBooleanSerializeAsyncWithHttpInfo * - * - * * @param bool $body Input boolean as post body (optional) * * @throws \InvalidArgumentException @@ -745,11 +735,10 @@ class FakeApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -769,7 +758,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -895,7 +884,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -908,21 +897,20 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\OuterComposite' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -933,11 +921,10 @@ class FakeApi } $returnType = '\OpenAPI\Client\Model\OuterComposite'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -964,8 +951,6 @@ class FakeApi /** * Operation fakeOuterCompositeSerializeAsync * - * - * * @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) * * @throws \InvalidArgumentException @@ -984,8 +969,6 @@ class FakeApi /** * Operation fakeOuterCompositeSerializeAsyncWithHttpInfo * - * - * * @param \OpenAPI\Client\Model\OuterComposite $outer_composite Input composite as post body (optional) * * @throws \InvalidArgumentException @@ -1000,11 +983,10 @@ class FakeApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1024,7 +1006,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1150,7 +1132,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1163,21 +1145,20 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('float' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1188,11 +1169,10 @@ class FakeApi } $returnType = 'float'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1219,8 +1199,6 @@ class FakeApi /** * Operation fakeOuterNumberSerializeAsync * - * - * * @param float $body Input number as post body (optional) * * @throws \InvalidArgumentException @@ -1239,8 +1217,6 @@ class FakeApi /** * Operation fakeOuterNumberSerializeAsyncWithHttpInfo * - * - * * @param float $body Input number as post body (optional) * * @throws \InvalidArgumentException @@ -1255,11 +1231,10 @@ class FakeApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1279,7 +1254,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1405,7 +1380,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1418,21 +1393,20 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('string' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1443,11 +1417,10 @@ class FakeApi } $returnType = 'string'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1474,8 +1447,6 @@ class FakeApi /** * Operation fakeOuterStringSerializeAsync * - * - * * @param string $body Input string as post body (optional) * * @throws \InvalidArgumentException @@ -1494,8 +1465,6 @@ class FakeApi /** * Operation fakeOuterStringSerializeAsyncWithHttpInfo * - * - * * @param string $body Input string as post body (optional) * * @throws \InvalidArgumentException @@ -1510,11 +1479,10 @@ class FakeApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1534,7 +1502,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1660,7 +1628,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1673,21 +1641,20 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\OuterObjectWithEnumProperty' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1698,11 +1665,10 @@ class FakeApi } $returnType = '\OpenAPI\Client\Model\OuterObjectWithEnumProperty'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1729,8 +1695,6 @@ class FakeApi /** * Operation fakePropertyEnumIntegerSerializeAsync * - * - * * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) * * @throws \InvalidArgumentException @@ -1749,8 +1713,6 @@ class FakeApi /** * Operation fakePropertyEnumIntegerSerializeAsyncWithHttpInfo * - * - * * @param \OpenAPI\Client\Model\OuterObjectWithEnumProperty $outer_object_with_enum_property Input enum (int) as post body (required) * * @throws \InvalidArgumentException @@ -1765,11 +1727,10 @@ class FakeApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1789,7 +1750,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1920,7 +1881,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1933,11 +1894,11 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -1953,8 +1914,6 @@ class FakeApi /** * Operation testBodyWithFileSchemaAsync * - * - * * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) * * @throws \InvalidArgumentException @@ -1973,8 +1932,6 @@ class FakeApi /** * Operation testBodyWithFileSchemaAsyncWithHttpInfo * - * - * * @param \OpenAPI\Client\Model\FileSchemaTestClass $file_schema_test_class (required) * * @throws \InvalidArgumentException @@ -2002,7 +1959,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -2135,7 +2092,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -2148,11 +2105,11 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -2168,8 +2125,6 @@ class FakeApi /** * Operation testBodyWithQueryParamsAsync * - * - * * @param string $query (required) * @param \OpenAPI\Client\Model\User $user (required) * @@ -2189,8 +2144,6 @@ class FakeApi /** * Operation testBodyWithQueryParamsAsyncWithHttpInfo * - * - * * @param string $query (required) * @param \OpenAPI\Client\Model\User $user (required) * @@ -2219,7 +2172,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -2337,7 +2290,7 @@ class FakeApi /** * Operation testClientModel * - * To test \"client\" model + * To test \"client\" model * * @param \OpenAPI\Client\Model\Client $client client model (required) * @@ -2354,7 +2307,7 @@ class FakeApi /** * Operation testClientModelWithHttpInfo * - * To test \"client\" model + * To test \"client\" model * * @param \OpenAPI\Client\Model\Client $client client model (required) * @@ -2373,7 +2326,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -2386,21 +2339,20 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\Client' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -2411,11 +2363,10 @@ class FakeApi } $returnType = '\OpenAPI\Client\Model\Client'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -2442,7 +2393,7 @@ class FakeApi /** * Operation testClientModelAsync * - * To test \"client\" model + * To test \"client\" model * * @param \OpenAPI\Client\Model\Client $client client model (required) * @@ -2462,7 +2413,7 @@ class FakeApi /** * Operation testClientModelAsyncWithHttpInfo * - * To test \"client\" model + * To test \"client\" model * * @param \OpenAPI\Client\Model\Client $client client model (required) * @@ -2478,11 +2429,10 @@ class FakeApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -2502,7 +2452,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -2663,7 +2613,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -2676,11 +2626,11 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -2771,7 +2721,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -3060,7 +3010,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -3073,11 +3023,11 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -3156,7 +3106,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -3363,7 +3313,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -3376,11 +3326,11 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -3459,7 +3409,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -3671,7 +3621,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -3684,11 +3634,11 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -3753,7 +3703,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -3890,7 +3840,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -3903,11 +3853,11 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -3974,7 +3924,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -4122,7 +4072,7 @@ class FakeApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -4135,11 +4085,11 @@ class FakeApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -4155,8 +4105,6 @@ class FakeApi /** * Operation testQueryParameterCollectionFormatAsync * - * - * * @param string[] $pipe (required) * @param string[] $ioutil (required) * @param string[] $http (required) @@ -4179,8 +4127,6 @@ class FakeApi /** * Operation testQueryParameterCollectionFormatAsyncWithHttpInfo * - * - * * @param string[] $pipe (required) * @param string[] $ioutil (required) * @param string[] $http (required) @@ -4212,7 +4158,7 @@ class FakeApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php index 1bf9e08dbd..54e0401ada 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/FakeClassnameTags123Api.php @@ -15,7 +15,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -92,7 +91,7 @@ class FakeClassnameTags123Api * * @param int $hostIndex Host index (required) */ - public function setHostIndex($hostIndex) + public function setHostIndex($hostIndex): void { $this->hostIndex = $hostIndex; } @@ -154,7 +153,7 @@ class FakeClassnameTags123Api } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -167,21 +166,20 @@ class FakeClassnameTags123Api sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\Client' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -192,11 +190,10 @@ class FakeClassnameTags123Api } $returnType = '\OpenAPI\Client\Model\Client'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -259,11 +256,10 @@ class FakeClassnameTags123Api ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -283,7 +279,7 @@ class FakeClassnameTags123Api ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php index eac844650d..d6283a8c75 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/PetApi.php @@ -15,7 +15,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -92,7 +91,7 @@ class PetApi * * @param int $hostIndex Host index (required) */ - public function setHostIndex($hostIndex) + public function setHostIndex($hostIndex): void { $this->hostIndex = $hostIndex; } @@ -161,7 +160,7 @@ class PetApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -174,11 +173,11 @@ class PetApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -251,7 +250,7 @@ class PetApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -402,7 +401,7 @@ class PetApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -415,11 +414,11 @@ class PetApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -486,7 +485,7 @@ class PetApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -633,7 +632,7 @@ class PetApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -646,21 +645,20 @@ class PetApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\Pet[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -671,11 +669,10 @@ class PetApi } $returnType = '\OpenAPI\Client\Model\Pet[]'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -738,11 +735,10 @@ class PetApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -762,7 +758,7 @@ class PetApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -903,7 +899,7 @@ class PetApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -916,21 +912,20 @@ class PetApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\Pet[]' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -941,11 +936,10 @@ class PetApi } $returnType = '\OpenAPI\Client\Model\Pet[]'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1008,11 +1002,10 @@ class PetApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1032,7 +1025,7 @@ class PetApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1174,7 +1167,7 @@ class PetApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1187,21 +1180,20 @@ class PetApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\Pet' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1212,11 +1204,10 @@ class PetApi } $returnType = '\OpenAPI\Client\Model\Pet'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1279,11 +1270,10 @@ class PetApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1303,7 +1293,7 @@ class PetApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1453,7 +1443,7 @@ class PetApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1466,11 +1456,11 @@ class PetApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -1543,7 +1533,7 @@ class PetApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1696,7 +1686,7 @@ class PetApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1709,11 +1699,11 @@ class PetApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -1782,7 +1772,7 @@ class PetApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1938,7 +1928,7 @@ class PetApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1951,21 +1941,20 @@ class PetApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\ApiResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1976,11 +1965,10 @@ class PetApi } $returnType = '\OpenAPI\Client\Model\ApiResponse'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -2047,11 +2035,10 @@ class PetApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -2071,7 +2058,7 @@ class PetApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -2235,7 +2222,7 @@ class PetApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -2248,21 +2235,20 @@ class PetApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\ApiResponse' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -2273,11 +2259,10 @@ class PetApi } $returnType = '\OpenAPI\Client\Model\ApiResponse'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -2344,11 +2329,10 @@ class PetApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -2368,7 +2352,7 @@ class PetApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php index fd2cbfe60f..7d1042ec3b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/StoreApi.php @@ -15,7 +15,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -92,7 +91,7 @@ class StoreApi * * @param int $hostIndex Host index (required) */ - public function setHostIndex($hostIndex) + public function setHostIndex($hostIndex): void { $this->hostIndex = $hostIndex; } @@ -153,7 +152,7 @@ class StoreApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -166,11 +165,11 @@ class StoreApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -235,7 +234,7 @@ class StoreApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -371,7 +370,7 @@ class StoreApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -384,21 +383,20 @@ class StoreApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('array' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -409,11 +407,10 @@ class StoreApi } $returnType = 'array'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -474,11 +471,10 @@ class StoreApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -498,7 +494,7 @@ class StoreApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -626,7 +622,7 @@ class StoreApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -639,21 +635,20 @@ class StoreApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\Order' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -664,11 +659,10 @@ class StoreApi } $returnType = '\OpenAPI\Client\Model\Order'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -731,11 +725,10 @@ class StoreApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -755,7 +748,7 @@ class StoreApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -900,7 +893,7 @@ class StoreApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -913,21 +906,20 @@ class StoreApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\Order' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -938,11 +930,10 @@ class StoreApi } $returnType = '\OpenAPI\Client\Model\Order'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1005,11 +996,10 @@ class StoreApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1029,7 +1019,7 @@ class StoreApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php index 7f380d1871..6e3fa9a1bb 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/UserApi.php @@ -15,7 +15,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -92,7 +91,7 @@ class UserApi * * @param int $hostIndex Host index (required) */ - public function setHostIndex($hostIndex) + public function setHostIndex($hostIndex): void { $this->hostIndex = $hostIndex; } @@ -153,7 +152,7 @@ class UserApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -166,11 +165,11 @@ class UserApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -235,7 +234,7 @@ class UserApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -370,7 +369,7 @@ class UserApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -383,11 +382,11 @@ class UserApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -452,7 +451,7 @@ class UserApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -587,7 +586,7 @@ class UserApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -600,11 +599,11 @@ class UserApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -669,7 +668,7 @@ class UserApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -804,7 +803,7 @@ class UserApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -817,11 +816,11 @@ class UserApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -886,7 +885,7 @@ class UserApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1024,7 +1023,7 @@ class UserApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1037,21 +1036,20 @@ class UserApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('\OpenAPI\Client\Model\User' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1062,11 +1060,10 @@ class UserApi } $returnType = '\OpenAPI\Client\Model\User'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1129,11 +1126,10 @@ class UserApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1153,7 +1149,7 @@ class UserApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1293,7 +1289,7 @@ class UserApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1306,21 +1302,20 @@ class UserApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } - $responseBody = $response->getBody(); switch($statusCode) { case 200: if ('string' === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1331,11 +1326,10 @@ class UserApi } $returnType = 'string'; - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1400,11 +1394,10 @@ class UserApi ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnType) { - $responseBody = $response->getBody(); if ($returnType === '\SplFileObject') { - $content = $responseBody; //stream goes to serializer + $content = $response->getBody(); //stream goes to serializer } else { - $content = (string) $responseBody; + $content = (string) $response->getBody(); } return [ @@ -1424,7 +1417,7 @@ class UserApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1580,7 +1573,7 @@ class UserApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1593,11 +1586,11 @@ class UserApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -1660,7 +1653,7 @@ class UserApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); @@ -1784,7 +1777,7 @@ class UserApi } catch (RequestException $e) { throw new ApiException( "[{$e->getCode()}] {$e->getMessage()}", - $e->getCode(), + (int) $e->getCode(), $e->getResponse() ? $e->getResponse()->getHeaders() : null, $e->getResponse() ? (string) $e->getResponse()->getBody() : null ); @@ -1797,11 +1790,11 @@ class UserApi sprintf( '[%d] Error connecting to the API (%s)', $statusCode, - $request->getUri() + (string) $request->getUri() ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } @@ -1868,7 +1861,7 @@ class UserApi ), $statusCode, $response->getHeaders(), - $response->getBody() + (string) $response->getBody() ); } ); diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php b/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php index e858f99e1b..5ebab62f94 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php @@ -15,7 +15,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php index cf931ae29b..72c04f73a9 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Configuration.php @@ -15,7 +15,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/HeaderSelector.php b/samples/client/petstore/php/OpenAPIClient-php/lib/HeaderSelector.php index 6c586d11a3..ebb51d8320 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/HeaderSelector.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/HeaderSelector.php @@ -15,7 +15,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesAnyType.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesAnyType.php deleted file mode 100644 index b2b27ea5d1..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesAnyType.php +++ /dev/null @@ -1,307 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'name' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = parent::listInvalidProperties(); - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesArray.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesArray.php deleted file mode 100644 index f24315bf50..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesArray.php +++ /dev/null @@ -1,307 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'name' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = parent::listInvalidProperties(); - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesBoolean.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesBoolean.php deleted file mode 100644 index 3a96306f68..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesBoolean.php +++ /dev/null @@ -1,307 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'name' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = parent::listInvalidProperties(); - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php index 523ba32797..91e73c485f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -168,9 +167,6 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess, \JsonSer return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesInteger.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesInteger.php deleted file mode 100644 index a88602bc85..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesInteger.php +++ /dev/null @@ -1,307 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'name' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = parent::listInvalidProperties(); - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesNumber.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesNumber.php deleted file mode 100644 index a3238f4af9..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesNumber.php +++ /dev/null @@ -1,307 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'name' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = parent::listInvalidProperties(); - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesObject.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesObject.php deleted file mode 100644 index a86548a858..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesObject.php +++ /dev/null @@ -1,307 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'name' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = parent::listInvalidProperties(); - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesString.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesString.php deleted file mode 100644 index e1d3148549..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesString.php +++ /dev/null @@ -1,307 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'name' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = isset($data['name']) ? $data['name'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = parent::listInvalidProperties(); - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name name - * - * @return $this - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php index e360942651..38b133bb9b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class Animal implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -168,9 +167,6 @@ class Animal implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php index 66ebf80a39..a63bc06dac 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -173,9 +172,6 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php index e9e571f859..ef99db2a5b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -163,9 +162,6 @@ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSeri return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php index 3e1431cf01..fb0d29ea91 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -163,9 +162,6 @@ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSerializabl return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php index 22a912415e..95d9c568e9 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -173,9 +172,6 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/BigCat.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/BigCat.php deleted file mode 100644 index e831b5a347..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/BigCat.php +++ /dev/null @@ -1,337 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'kind' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes + parent::openAPITypes(); - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats + parent::openAPIFormats(); - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'kind' => 'kind' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'kind' => 'setKind' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'kind' => 'getKind' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return parent::attributeMap() + self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return parent::setters() + self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return parent::getters() + self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - const KIND_LIONS = 'lions'; - const KIND_TIGERS = 'tigers'; - const KIND_LEOPARDS = 'leopards'; - const KIND_JAGUARS = 'jaguars'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getKindAllowableValues() - { - return [ - self::KIND_LIONS, - self::KIND_TIGERS, - self::KIND_LEOPARDS, - self::KIND_JAGUARS, - ]; - } - - - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - parent::__construct($data); - - $this->container['kind'] = isset($data['kind']) ? $data['kind'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = parent::listInvalidProperties(); - - $allowedValues = $this->getKindAllowableValues(); - if (!is_null($this->container['kind']) && !in_array($this->container['kind'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'kind', must be one of '%s'", - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets kind - * - * @return string|null - */ - public function getKind() - { - return $this->container['kind']; - } - - /** - * Sets kind - * - * @param string|null $kind kind - * - * @return $this - */ - public function setKind($kind) - { - $allowedValues = $this->getKindAllowableValues(); - if (!is_null($kind) && !in_array($kind, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'kind', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); - } - $this->container['kind'] = $kind; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/BigCatAllOf.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/BigCatAllOf.php deleted file mode 100644 index 468864545d..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/BigCatAllOf.php +++ /dev/null @@ -1,343 +0,0 @@ - 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'kind' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'kind' => 'kind' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'kind' => 'setKind' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'kind' => 'getKind' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - const KIND_LIONS = 'lions'; - const KIND_TIGERS = 'tigers'; - const KIND_LEOPARDS = 'leopards'; - const KIND_JAGUARS = 'jaguars'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getKindAllowableValues() - { - return [ - self::KIND_LIONS, - self::KIND_TIGERS, - self::KIND_LEOPARDS, - self::KIND_JAGUARS, - ]; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['kind'] = isset($data['kind']) ? $data['kind'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getKindAllowableValues(); - if (!is_null($this->container['kind']) && !in_array($this->container['kind'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value for 'kind', must be one of '%s'", - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets kind - * - * @return string|null - */ - public function getKind() - { - return $this->container['kind']; - } - - /** - * Sets kind - * - * @param string|null $kind kind - * - * @return $this - */ - public function setKind($kind) - { - $allowedValues = $this->getKindAllowableValues(); - if (!is_null($kind) && !in_array($kind, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'kind', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); - } - $this->container['kind'] = $kind; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php index 9b282d3e50..93a9832264 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -188,9 +187,6 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php index 94e7a3b209..eec5473d0a 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -39,9 +38,9 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ -class Cat extends Animal +class Cat extends Animal { public const DISCRIMINATOR = null; @@ -161,9 +160,6 @@ class Cat extends Animal return self::$openAPIModelName; } - - - /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/CatAllOf.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/CatAllOf.php index efd89de0ce..c0a50ac3d2 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/CatAllOf.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/CatAllOf.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class CatAllOf implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -163,9 +162,6 @@ class CatAllOf implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php index 266efef15f..4f9f0cf851 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class Category implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -168,9 +167,6 @@ class Category implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php index 1d8705a3db..18f1d351ce 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -42,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class ClassModel implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -164,9 +163,6 @@ class ClassModel implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php index 902019253c..72fd6b41f8 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class Client implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -163,9 +162,6 @@ class Client implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php index 7f7fa2781e..1cd94b6fcf 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -39,9 +38,9 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ -class Dog extends Animal +class Dog extends Animal { public const DISCRIMINATOR = null; @@ -161,9 +160,6 @@ class Dog extends Animal return self::$openAPIModelName; } - - - /** diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DogAllOf.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DogAllOf.php index 99a992b61a..85189f46fb 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DogAllOf.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DogAllOf.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class DogAllOf implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -163,9 +162,6 @@ class DogAllOf implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php index 89c3d2d887..5eef1d5719 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class EnumArrays implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -172,9 +171,7 @@ class EnumArrays implements ModelInterface, ArrayAccess, \JsonSerializable const JUST_SYMBOL_DOLLAR = '$'; const ARRAY_ENUM_FISH = 'fish'; const ARRAY_ENUM_CRAB = 'crab'; - - /** * Gets allowable values of the enum * @@ -187,7 +184,7 @@ class EnumArrays implements ModelInterface, ArrayAccess, \JsonSerializable self::JUST_SYMBOL_DOLLAR, ]; } - + /** * Gets allowable values of the enum * @@ -200,7 +197,6 @@ class EnumArrays implements ModelInterface, ArrayAccess, \JsonSerializable self::ARRAY_ENUM_CRAB, ]; } - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumClass.php index f78a407acb..4e958e7e81 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumClass.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php index 68d7d26213..33d2915789 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -208,9 +207,7 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable const ENUM_INTEGER_MINUS_1 = -1; const ENUM_NUMBER_1_DOT_1 = 1.1; const ENUM_NUMBER_MINUS_1_DOT_2 = -1.2; - - /** * Gets allowable values of the enum * @@ -224,7 +221,7 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable self::ENUM_STRING_EMPTY, ]; } - + /** * Gets allowable values of the enum * @@ -238,7 +235,7 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable self::ENUM_STRING_REQUIRED_EMPTY, ]; } - + /** * Gets allowable values of the enum * @@ -251,7 +248,7 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable self::ENUM_INTEGER_MINUS_1, ]; } - + /** * Gets allowable values of the enum * @@ -264,7 +261,6 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable self::ENUM_NUMBER_MINUS_1_DOT_2, ]; } - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php index 8adb43821a..8309279cf2 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -42,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class File implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -164,9 +163,6 @@ class File implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php index 02208bc6e3..7c453b90cb 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class FileSchemaTestClass implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -168,9 +167,6 @@ class FileSchemaTestClass implements ModelInterface, ArrayAccess, \JsonSerializa return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php index 271a9f170c..4812d1bb55 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class Foo implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -163,9 +162,6 @@ class Foo implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php index 02b01fde7c..42cab9a02f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -238,9 +237,6 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php index 15d671e561..4ac2aa8235 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class HasOnlyReadOnly implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -168,9 +167,6 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php index 3d7e15944c..f4c0f3b53a 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -42,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class HealthCheckResult implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -164,9 +163,6 @@ class HealthCheckResult implements ModelInterface, ArrayAccess, \JsonSerializabl return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject.php deleted file mode 100644 index 7276352b91..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject.php +++ /dev/null @@ -1,354 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InlineObject implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'inline_object'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'name' => 'string', - 'status' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'name' => null, - 'status' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'name' => 'name', - 'status' => 'status' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'name' => 'setName', - 'status' => 'setStatus' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'name' => 'getName', - 'status' => 'getStatus' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['name'] = $data['name'] ?? null; - $this->container['status'] = $data['status'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets name - * - * @return string|null - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string|null $name Updated name of the pet - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; - - return $this; - } - - /** - * Gets status - * - * @return string|null - */ - public function getStatus() - { - return $this->container['status']; - } - - /** - * Sets status - * - * @param string|null $status Updated status of the pet - * - * @return self - */ - public function setStatus($status) - { - $this->container['status'] = $status; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject1.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject1.php deleted file mode 100644 index 6f675c2c74..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject1.php +++ /dev/null @@ -1,354 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InlineObject1 implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'inline_object_1'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'additional_metadata' => 'string', - 'file' => '\SplFileObject' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'additional_metadata' => null, - 'file' => 'binary' - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'additional_metadata' => 'additionalMetadata', - 'file' => 'file' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'additional_metadata' => 'setAdditionalMetadata', - 'file' => 'setFile' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'additional_metadata' => 'getAdditionalMetadata', - 'file' => 'getFile' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['additional_metadata'] = $data['additional_metadata'] ?? null; - $this->container['file'] = $data['file'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets additional_metadata - * - * @return string|null - */ - public function getAdditionalMetadata() - { - return $this->container['additional_metadata']; - } - - /** - * Sets additional_metadata - * - * @param string|null $additional_metadata Additional data to pass to server - * - * @return self - */ - public function setAdditionalMetadata($additional_metadata) - { - $this->container['additional_metadata'] = $additional_metadata; - - return $this; - } - - /** - * Gets file - * - * @return \SplFileObject|null - */ - public function getFile() - { - return $this->container['file']; - } - - /** - * Sets file - * - * @param \SplFileObject|null $file file to upload - * - * @return self - */ - public function setFile($file) - { - $this->container['file'] = $file; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject2.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject2.php deleted file mode 100644 index 9b27cdd4f6..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject2.php +++ /dev/null @@ -1,414 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InlineObject2 implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'inline_object_2'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'enum_form_string_array' => 'string[]', - 'enum_form_string' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'enum_form_string_array' => null, - 'enum_form_string' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'enum_form_string_array' => 'enum_form_string_array', - 'enum_form_string' => 'enum_form_string' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'enum_form_string_array' => 'setEnumFormStringArray', - 'enum_form_string' => 'setEnumFormString' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'enum_form_string_array' => 'getEnumFormStringArray', - 'enum_form_string' => 'getEnumFormString' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - const ENUM_FORM_STRING_ARRAY_GREATER_THAN = '>'; - const ENUM_FORM_STRING_ARRAY_DOLLAR = '$'; - const ENUM_FORM_STRING_ABC = '_abc'; - const ENUM_FORM_STRING_EFG = '-efg'; - const ENUM_FORM_STRING_XYZ = '(xyz)'; - - - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getEnumFormStringArrayAllowableValues() - { - return [ - self::ENUM_FORM_STRING_ARRAY_GREATER_THAN, - self::ENUM_FORM_STRING_ARRAY_DOLLAR, - ]; - } - - /** - * Gets allowable values of the enum - * - * @return string[] - */ - public function getEnumFormStringAllowableValues() - { - return [ - self::ENUM_FORM_STRING_ABC, - self::ENUM_FORM_STRING_EFG, - self::ENUM_FORM_STRING_XYZ, - ]; - } - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['enum_form_string_array'] = $data['enum_form_string_array'] ?? null; - $this->container['enum_form_string'] = $data['enum_form_string'] ?? '-efg'; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - $allowedValues = $this->getEnumFormStringAllowableValues(); - if (!is_null($this->container['enum_form_string']) && !in_array($this->container['enum_form_string'], $allowedValues, true)) { - $invalidProperties[] = sprintf( - "invalid value '%s' for 'enum_form_string', must be one of '%s'", - $this->container['enum_form_string'], - implode("', '", $allowedValues) - ); - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets enum_form_string_array - * - * @return string[]|null - */ - public function getEnumFormStringArray() - { - return $this->container['enum_form_string_array']; - } - - /** - * Sets enum_form_string_array - * - * @param string[]|null $enum_form_string_array Form parameter enum test (string array) - * - * @return self - */ - public function setEnumFormStringArray($enum_form_string_array) - { - $allowedValues = $this->getEnumFormStringArrayAllowableValues(); - if (!is_null($enum_form_string_array) && array_diff($enum_form_string_array, $allowedValues)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value for 'enum_form_string_array', must be one of '%s'", - implode("', '", $allowedValues) - ) - ); - } - $this->container['enum_form_string_array'] = $enum_form_string_array; - - return $this; - } - - /** - * Gets enum_form_string - * - * @return string|null - */ - public function getEnumFormString() - { - return $this->container['enum_form_string']; - } - - /** - * Sets enum_form_string - * - * @param string|null $enum_form_string Form parameter enum test (string) - * - * @return self - */ - public function setEnumFormString($enum_form_string) - { - $allowedValues = $this->getEnumFormStringAllowableValues(); - if (!is_null($enum_form_string) && !in_array($enum_form_string, $allowedValues, true)) { - throw new \InvalidArgumentException( - sprintf( - "Invalid value '%s' for 'enum_form_string', must be one of '%s'", - $enum_form_string, - implode("', '", $allowedValues) - ) - ); - } - $this->container['enum_form_string'] = $enum_form_string; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject3.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject3.php deleted file mode 100644 index ba3ddd211b..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject3.php +++ /dev/null @@ -1,832 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InlineObject3 implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'inline_object_3'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'integer' => 'int', - 'int32' => 'int', - 'int64' => 'int', - 'number' => 'float', - 'float' => 'float', - 'double' => 'double', - 'string' => 'string', - 'pattern_without_delimiter' => 'string', - 'byte' => 'string', - 'binary' => '\SplFileObject', - 'date' => '\DateTime', - 'date_time' => '\DateTime', - 'password' => 'string', - 'callback' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'integer' => null, - 'int32' => 'int32', - 'int64' => 'int64', - 'number' => null, - 'float' => 'float', - 'double' => 'double', - 'string' => null, - 'pattern_without_delimiter' => null, - 'byte' => 'byte', - 'binary' => 'binary', - 'date' => 'date', - 'date_time' => 'date-time', - 'password' => 'password', - 'callback' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'integer' => 'integer', - 'int32' => 'int32', - 'int64' => 'int64', - 'number' => 'number', - 'float' => 'float', - 'double' => 'double', - 'string' => 'string', - 'pattern_without_delimiter' => 'pattern_without_delimiter', - 'byte' => 'byte', - 'binary' => 'binary', - 'date' => 'date', - 'date_time' => 'dateTime', - 'password' => 'password', - 'callback' => 'callback' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'integer' => 'setInteger', - 'int32' => 'setInt32', - 'int64' => 'setInt64', - 'number' => 'setNumber', - 'float' => 'setFloat', - 'double' => 'setDouble', - 'string' => 'setString', - 'pattern_without_delimiter' => 'setPatternWithoutDelimiter', - 'byte' => 'setByte', - 'binary' => 'setBinary', - 'date' => 'setDate', - 'date_time' => 'setDateTime', - 'password' => 'setPassword', - 'callback' => 'setCallback' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'integer' => 'getInteger', - 'int32' => 'getInt32', - 'int64' => 'getInt64', - 'number' => 'getNumber', - 'float' => 'getFloat', - 'double' => 'getDouble', - 'string' => 'getString', - 'pattern_without_delimiter' => 'getPatternWithoutDelimiter', - 'byte' => 'getByte', - 'binary' => 'getBinary', - 'date' => 'getDate', - 'date_time' => 'getDateTime', - 'password' => 'getPassword', - 'callback' => 'getCallback' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['integer'] = $data['integer'] ?? null; - $this->container['int32'] = $data['int32'] ?? null; - $this->container['int64'] = $data['int64'] ?? null; - $this->container['number'] = $data['number'] ?? null; - $this->container['float'] = $data['float'] ?? null; - $this->container['double'] = $data['double'] ?? null; - $this->container['string'] = $data['string'] ?? null; - $this->container['pattern_without_delimiter'] = $data['pattern_without_delimiter'] ?? null; - $this->container['byte'] = $data['byte'] ?? null; - $this->container['binary'] = $data['binary'] ?? null; - $this->container['date'] = $data['date'] ?? null; - $this->container['date_time'] = $data['date_time'] ?? null; - $this->container['password'] = $data['password'] ?? null; - $this->container['callback'] = $data['callback'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if (!is_null($this->container['integer']) && ($this->container['integer'] > 100)) { - $invalidProperties[] = "invalid value for 'integer', must be smaller than or equal to 100."; - } - - if (!is_null($this->container['integer']) && ($this->container['integer'] < 10)) { - $invalidProperties[] = "invalid value for 'integer', must be bigger than or equal to 10."; - } - - if (!is_null($this->container['int32']) && ($this->container['int32'] > 200)) { - $invalidProperties[] = "invalid value for 'int32', must be smaller than or equal to 200."; - } - - if (!is_null($this->container['int32']) && ($this->container['int32'] < 20)) { - $invalidProperties[] = "invalid value for 'int32', must be bigger than or equal to 20."; - } - - if ($this->container['number'] === null) { - $invalidProperties[] = "'number' can't be null"; - } - if (($this->container['number'] > 543.2)) { - $invalidProperties[] = "invalid value for 'number', must be smaller than or equal to 543.2."; - } - - if (($this->container['number'] < 32.1)) { - $invalidProperties[] = "invalid value for 'number', must be bigger than or equal to 32.1."; - } - - if (!is_null($this->container['float']) && ($this->container['float'] > 987.6)) { - $invalidProperties[] = "invalid value for 'float', must be smaller than or equal to 987.6."; - } - - if ($this->container['double'] === null) { - $invalidProperties[] = "'double' can't be null"; - } - if (($this->container['double'] > 123.4)) { - $invalidProperties[] = "invalid value for 'double', must be smaller than or equal to 123.4."; - } - - if (($this->container['double'] < 67.8)) { - $invalidProperties[] = "invalid value for 'double', must be bigger than or equal to 67.8."; - } - - if (!is_null($this->container['string']) && !preg_match("/[a-z]/i", $this->container['string'])) { - $invalidProperties[] = "invalid value for 'string', must be conform to the pattern /[a-z]/i."; - } - - if ($this->container['pattern_without_delimiter'] === null) { - $invalidProperties[] = "'pattern_without_delimiter' can't be null"; - } - if (!preg_match("/^[A-Z].*/", $this->container['pattern_without_delimiter'])) { - $invalidProperties[] = "invalid value for 'pattern_without_delimiter', must be conform to the pattern /^[A-Z].*/."; - } - - if ($this->container['byte'] === null) { - $invalidProperties[] = "'byte' can't be null"; - } - if (!is_null($this->container['password']) && (mb_strlen($this->container['password']) > 64)) { - $invalidProperties[] = "invalid value for 'password', the character length must be smaller than or equal to 64."; - } - - if (!is_null($this->container['password']) && (mb_strlen($this->container['password']) < 10)) { - $invalidProperties[] = "invalid value for 'password', the character length must be bigger than or equal to 10."; - } - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets integer - * - * @return int|null - */ - public function getInteger() - { - return $this->container['integer']; - } - - /** - * Sets integer - * - * @param int|null $integer None - * - * @return self - */ - public function setInteger($integer) - { - - if (!is_null($integer) && ($integer > 100)) { - throw new \InvalidArgumentException('invalid value for $integer when calling InlineObject3., must be smaller than or equal to 100.'); - } - if (!is_null($integer) && ($integer < 10)) { - throw new \InvalidArgumentException('invalid value for $integer when calling InlineObject3., must be bigger than or equal to 10.'); - } - - $this->container['integer'] = $integer; - - return $this; - } - - /** - * Gets int32 - * - * @return int|null - */ - public function getInt32() - { - return $this->container['int32']; - } - - /** - * Sets int32 - * - * @param int|null $int32 None - * - * @return self - */ - public function setInt32($int32) - { - - if (!is_null($int32) && ($int32 > 200)) { - throw new \InvalidArgumentException('invalid value for $int32 when calling InlineObject3., must be smaller than or equal to 200.'); - } - if (!is_null($int32) && ($int32 < 20)) { - throw new \InvalidArgumentException('invalid value for $int32 when calling InlineObject3., must be bigger than or equal to 20.'); - } - - $this->container['int32'] = $int32; - - return $this; - } - - /** - * Gets int64 - * - * @return int|null - */ - public function getInt64() - { - return $this->container['int64']; - } - - /** - * Sets int64 - * - * @param int|null $int64 None - * - * @return self - */ - public function setInt64($int64) - { - $this->container['int64'] = $int64; - - return $this; - } - - /** - * Gets number - * - * @return float - */ - public function getNumber() - { - return $this->container['number']; - } - - /** - * Sets number - * - * @param float $number None - * - * @return self - */ - public function setNumber($number) - { - - if (($number > 543.2)) { - throw new \InvalidArgumentException('invalid value for $number when calling InlineObject3., must be smaller than or equal to 543.2.'); - } - if (($number < 32.1)) { - throw new \InvalidArgumentException('invalid value for $number when calling InlineObject3., must be bigger than or equal to 32.1.'); - } - - $this->container['number'] = $number; - - return $this; - } - - /** - * Gets float - * - * @return float|null - */ - public function getFloat() - { - return $this->container['float']; - } - - /** - * Sets float - * - * @param float|null $float None - * - * @return self - */ - public function setFloat($float) - { - - if (!is_null($float) && ($float > 987.6)) { - throw new \InvalidArgumentException('invalid value for $float when calling InlineObject3., must be smaller than or equal to 987.6.'); - } - - $this->container['float'] = $float; - - return $this; - } - - /** - * Gets double - * - * @return double - */ - public function getDouble() - { - return $this->container['double']; - } - - /** - * Sets double - * - * @param double $double None - * - * @return self - */ - public function setDouble($double) - { - - if (($double > 123.4)) { - throw new \InvalidArgumentException('invalid value for $double when calling InlineObject3., must be smaller than or equal to 123.4.'); - } - if (($double < 67.8)) { - throw new \InvalidArgumentException('invalid value for $double when calling InlineObject3., must be bigger than or equal to 67.8.'); - } - - $this->container['double'] = $double; - - return $this; - } - - /** - * Gets string - * - * @return string|null - */ - public function getString() - { - return $this->container['string']; - } - - /** - * Sets string - * - * @param string|null $string None - * - * @return self - */ - public function setString($string) - { - - if (!is_null($string) && (!preg_match("/[a-z]/i", $string))) { - throw new \InvalidArgumentException("invalid value for $string when calling InlineObject3., must conform to the pattern /[a-z]/i."); - } - - $this->container['string'] = $string; - - return $this; - } - - /** - * Gets pattern_without_delimiter - * - * @return string - */ - public function getPatternWithoutDelimiter() - { - return $this->container['pattern_without_delimiter']; - } - - /** - * Sets pattern_without_delimiter - * - * @param string $pattern_without_delimiter None - * - * @return self - */ - public function setPatternWithoutDelimiter($pattern_without_delimiter) - { - - if ((!preg_match("/^[A-Z].*/", $pattern_without_delimiter))) { - throw new \InvalidArgumentException("invalid value for $pattern_without_delimiter when calling InlineObject3., must conform to the pattern /^[A-Z].*/."); - } - - $this->container['pattern_without_delimiter'] = $pattern_without_delimiter; - - return $this; - } - - /** - * Gets byte - * - * @return string - */ - public function getByte() - { - return $this->container['byte']; - } - - /** - * Sets byte - * - * @param string $byte None - * - * @return self - */ - public function setByte($byte) - { - $this->container['byte'] = $byte; - - return $this; - } - - /** - * Gets binary - * - * @return \SplFileObject|null - */ - public function getBinary() - { - return $this->container['binary']; - } - - /** - * Sets binary - * - * @param \SplFileObject|null $binary None - * - * @return self - */ - public function setBinary($binary) - { - $this->container['binary'] = $binary; - - return $this; - } - - /** - * Gets date - * - * @return \DateTime|null - */ - public function getDate() - { - return $this->container['date']; - } - - /** - * Sets date - * - * @param \DateTime|null $date None - * - * @return self - */ - public function setDate($date) - { - $this->container['date'] = $date; - - return $this; - } - - /** - * Gets date_time - * - * @return \DateTime|null - */ - public function getDateTime() - { - return $this->container['date_time']; - } - - /** - * Sets date_time - * - * @param \DateTime|null $date_time None - * - * @return self - */ - public function setDateTime($date_time) - { - $this->container['date_time'] = $date_time; - - return $this; - } - - /** - * Gets password - * - * @return string|null - */ - public function getPassword() - { - return $this->container['password']; - } - - /** - * Sets password - * - * @param string|null $password None - * - * @return self - */ - public function setPassword($password) - { - if (!is_null($password) && (mb_strlen($password) > 64)) { - throw new \InvalidArgumentException('invalid length for $password when calling InlineObject3., must be smaller than or equal to 64.'); - } - if (!is_null($password) && (mb_strlen($password) < 10)) { - throw new \InvalidArgumentException('invalid length for $password when calling InlineObject3., must be bigger than or equal to 10.'); - } - - $this->container['password'] = $password; - - return $this; - } - - /** - * Gets callback - * - * @return string|null - */ - public function getCallback() - { - return $this->container['callback']; - } - - /** - * Sets callback - * - * @param string|null $callback None - * - * @return self - */ - public function setCallback($callback) - { - $this->container['callback'] = $callback; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject4.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject4.php deleted file mode 100644 index 4ec235df1f..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject4.php +++ /dev/null @@ -1,360 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InlineObject4 implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'inline_object_4'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'param' => 'string', - 'param2' => 'string' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'param' => null, - 'param2' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'param' => 'param', - 'param2' => 'param2' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'param' => 'setParam', - 'param2' => 'setParam2' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'param' => 'getParam', - 'param2' => 'getParam2' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['param'] = $data['param'] ?? null; - $this->container['param2'] = $data['param2'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['param'] === null) { - $invalidProperties[] = "'param' can't be null"; - } - if ($this->container['param2'] === null) { - $invalidProperties[] = "'param2' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets param - * - * @return string - */ - public function getParam() - { - return $this->container['param']; - } - - /** - * Sets param - * - * @param string $param field1 - * - * @return self - */ - public function setParam($param) - { - $this->container['param'] = $param; - - return $this; - } - - /** - * Gets param2 - * - * @return string - */ - public function getParam2() - { - return $this->container['param2']; - } - - /** - * Sets param2 - * - * @param string $param2 field2 - * - * @return self - */ - public function setParam2($param2) - { - $this->container['param2'] = $param2; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject5.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject5.php deleted file mode 100644 index eef18f95db..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineObject5.php +++ /dev/null @@ -1,357 +0,0 @@ - - * @template TKey int|null - * @template TValue mixed|null - */ -class InlineObject5 implements ModelInterface, ArrayAccess, \JsonSerializable -{ - public const DISCRIMINATOR = null; - - /** - * The original name of the model. - * - * @var string - */ - protected static $openAPIModelName = 'inline_object_5'; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPITypes = [ - 'additional_metadata' => 'string', - 'required_file' => '\SplFileObject' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ - protected static $openAPIFormats = [ - 'additional_metadata' => null, - 'required_file' => 'binary' - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'additional_metadata' => 'additionalMetadata', - 'required_file' => 'requiredFile' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'additional_metadata' => 'setAdditionalMetadata', - 'required_file' => 'setRequiredFile' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'additional_metadata' => 'getAdditionalMetadata', - 'required_file' => 'getRequiredFile' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['additional_metadata'] = $data['additional_metadata'] ?? null; - $this->container['required_file'] = $data['required_file'] ?? null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['required_file'] === null) { - $invalidProperties[] = "'required_file' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets additional_metadata - * - * @return string|null - */ - public function getAdditionalMetadata() - { - return $this->container['additional_metadata']; - } - - /** - * Sets additional_metadata - * - * @param string|null $additional_metadata Additional data to pass to server - * - * @return self - */ - public function setAdditionalMetadata($additional_metadata) - { - $this->container['additional_metadata'] = $additional_metadata; - - return $this; - } - - /** - * Gets required_file - * - * @return \SplFileObject - */ - public function getRequiredFile() - { - return $this->container['required_file']; - } - - /** - * Sets required_file - * - * @param \SplFileObject $required_file file to upload - * - * @return self - */ - public function setRequiredFile($required_file) - { - $this->container['required_file'] = $required_file; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed|null - */ - public function offsetGet($offset) - { - return $this->container[$offset] ?? null; - } - - /** - * Sets value based on offset. - * - * @param int|null $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Serializes the object to a value that can be serialized natively by json_encode(). - * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php - * - * @return mixed Returns data which can be serialized by json_encode(), which is a value - * of any type other than a resource. - */ - public function jsonSerialize() - { - return ObjectSerializer::sanitizeForSerialization($this); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineResponseDefault.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineResponseDefault.php index 7d16be6ad7..f4b9d7662e 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineResponseDefault.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/InlineResponseDefault.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class InlineResponseDefault implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -163,9 +162,6 @@ class InlineResponseDefault implements ModelInterface, ArrayAccess, \JsonSeriali return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php index aa803d6071..90be9383d3 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -180,9 +179,7 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable const MAP_OF_ENUM_STRING_UPPER = 'UPPER'; const MAP_OF_ENUM_STRING_LOWER = 'lower'; - - /** * Gets allowable values of the enum * @@ -195,7 +192,6 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable self::MAP_OF_ENUM_STRING_LOWER, ]; } - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php index 626d4d5a2f..d1b24805ff 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -173,9 +172,6 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php index c041f59911..7d2cc3bea1 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -42,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class Model200Response implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -169,9 +168,6 @@ class Model200Response implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelInterface.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelInterface.php index 627927f32c..1a8d27e2f4 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelInterface.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelInterface.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php index 065dba1c2a..e0d226b8e9 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class ModelList implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -163,9 +162,6 @@ class ModelList implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php index 6581057641..8a5df6f832 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -42,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class ModelReturn implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -164,9 +163,6 @@ class ModelReturn implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php index 4f623ce2aa..cea03c776f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -42,7 +41,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class Name implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -179,9 +178,6 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php index 063855d78c..353f25b955 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -218,9 +217,6 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php index 4eae4d0d42..3ae8a58df9 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class NumberOnly implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -163,9 +162,6 @@ class NumberOnly implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php index d37dbd3dd1..bf77a0ea4f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class Order implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -191,9 +190,7 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable const STATUS_PLACED = 'placed'; const STATUS_APPROVED = 'approved'; const STATUS_DELIVERED = 'delivered'; - - /** * Gets allowable values of the enum * @@ -207,7 +204,6 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable self::STATUS_DELIVERED, ]; } - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php index ccbd24d1da..89949af919 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -173,9 +172,6 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnum.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnum.php index 45fd9b7dbe..77daf309a4 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnum.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnum.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumDefaultValue.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumDefaultValue.php index 41242fa439..cca89e7f08 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumDefaultValue.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumDefaultValue.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumInteger.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumInteger.php index 6f32448fc7..d9a996d15a 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumInteger.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumInteger.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumIntegerDefaultValue.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumIntegerDefaultValue.php index 0d2e70ac62..235bf204e7 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumIntegerDefaultValue.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterEnumIntegerDefaultValue.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php index f886100f23..c053f0acb6 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class OuterObjectWithEnumProperty implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -163,9 +162,6 @@ class OuterObjectWithEnumProperty implements ModelInterface, ArrayAccess, \JsonS return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php index 7ee94716c0..989dfa568e 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -191,9 +190,7 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable const STATUS_AVAILABLE = 'available'; const STATUS_PENDING = 'pending'; const STATUS_SOLD = 'sold'; - - /** * Gets allowable values of the enum * @@ -207,7 +204,6 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable self::STATUS_SOLD, ]; } - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php index 7b541be7cf..e5805c532d 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class ReadOnlyFirst implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -168,9 +167,6 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php index dbb8ae2ed5..ab01d45aee 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class SpecialModelName implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -163,9 +162,6 @@ class SpecialModelName implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php index bf7d0193b9..f074c5cb4f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class Tag implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -168,9 +167,6 @@ class Tag implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderDefault.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderDefault.php deleted file mode 100644 index 1d0a089165..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderDefault.php +++ /dev/null @@ -1,442 +0,0 @@ - 'string', - 'number_item' => 'float', - 'integer_item' => 'int', - 'bool_item' => 'bool', - 'array_item' => 'int[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'string_item' => null, - 'number_item' => null, - 'integer_item' => null, - 'bool_item' => null, - 'array_item' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'string_item' => 'string_item', - 'number_item' => 'number_item', - 'integer_item' => 'integer_item', - 'bool_item' => 'bool_item', - 'array_item' => 'array_item' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'string_item' => 'setStringItem', - 'number_item' => 'setNumberItem', - 'integer_item' => 'setIntegerItem', - 'bool_item' => 'setBoolItem', - 'array_item' => 'setArrayItem' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'string_item' => 'getStringItem', - 'number_item' => 'getNumberItem', - 'integer_item' => 'getIntegerItem', - 'bool_item' => 'getBoolItem', - 'array_item' => 'getArrayItem' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['string_item'] = isset($data['string_item']) ? $data['string_item'] : 'what'; - $this->container['number_item'] = isset($data['number_item']) ? $data['number_item'] : null; - $this->container['integer_item'] = isset($data['integer_item']) ? $data['integer_item'] : null; - $this->container['bool_item'] = isset($data['bool_item']) ? $data['bool_item'] : true; - $this->container['array_item'] = isset($data['array_item']) ? $data['array_item'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['string_item'] === null) { - $invalidProperties[] = "'string_item' can't be null"; - } - if ($this->container['number_item'] === null) { - $invalidProperties[] = "'number_item' can't be null"; - } - if ($this->container['integer_item'] === null) { - $invalidProperties[] = "'integer_item' can't be null"; - } - if ($this->container['bool_item'] === null) { - $invalidProperties[] = "'bool_item' can't be null"; - } - if ($this->container['array_item'] === null) { - $invalidProperties[] = "'array_item' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets string_item - * - * @return string - */ - public function getStringItem() - { - return $this->container['string_item']; - } - - /** - * Sets string_item - * - * @param string $string_item string_item - * - * @return $this - */ - public function setStringItem($string_item) - { - $this->container['string_item'] = $string_item; - - return $this; - } - - /** - * Gets number_item - * - * @return float - */ - public function getNumberItem() - { - return $this->container['number_item']; - } - - /** - * Sets number_item - * - * @param float $number_item number_item - * - * @return $this - */ - public function setNumberItem($number_item) - { - $this->container['number_item'] = $number_item; - - return $this; - } - - /** - * Gets integer_item - * - * @return int - */ - public function getIntegerItem() - { - return $this->container['integer_item']; - } - - /** - * Sets integer_item - * - * @param int $integer_item integer_item - * - * @return $this - */ - public function setIntegerItem($integer_item) - { - $this->container['integer_item'] = $integer_item; - - return $this; - } - - /** - * Gets bool_item - * - * @return bool - */ - public function getBoolItem() - { - return $this->container['bool_item']; - } - - /** - * Sets bool_item - * - * @param bool $bool_item bool_item - * - * @return $this - */ - public function setBoolItem($bool_item) - { - $this->container['bool_item'] = $bool_item; - - return $this; - } - - /** - * Gets array_item - * - * @return int[] - */ - public function getArrayItem() - { - return $this->container['array_item']; - } - - /** - * Sets array_item - * - * @param int[] $array_item array_item - * - * @return $this - */ - public function setArrayItem($array_item) - { - $this->container['array_item'] = $array_item; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderExample.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderExample.php deleted file mode 100644 index ecadbe0ec2..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderExample.php +++ /dev/null @@ -1,475 +0,0 @@ - 'string', - 'number_item' => 'float', - 'float_item' => 'float', - 'integer_item' => 'int', - 'bool_item' => 'bool', - 'array_item' => 'int[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'string_item' => null, - 'number_item' => null, - 'float_item' => 'float', - 'integer_item' => null, - 'bool_item' => null, - 'array_item' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'string_item' => 'string_item', - 'number_item' => 'number_item', - 'float_item' => 'float_item', - 'integer_item' => 'integer_item', - 'bool_item' => 'bool_item', - 'array_item' => 'array_item' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'string_item' => 'setStringItem', - 'number_item' => 'setNumberItem', - 'float_item' => 'setFloatItem', - 'integer_item' => 'setIntegerItem', - 'bool_item' => 'setBoolItem', - 'array_item' => 'setArrayItem' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'string_item' => 'getStringItem', - 'number_item' => 'getNumberItem', - 'float_item' => 'getFloatItem', - 'integer_item' => 'getIntegerItem', - 'bool_item' => 'getBoolItem', - 'array_item' => 'getArrayItem' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['string_item'] = isset($data['string_item']) ? $data['string_item'] : null; - $this->container['number_item'] = isset($data['number_item']) ? $data['number_item'] : null; - $this->container['float_item'] = isset($data['float_item']) ? $data['float_item'] : null; - $this->container['integer_item'] = isset($data['integer_item']) ? $data['integer_item'] : null; - $this->container['bool_item'] = isset($data['bool_item']) ? $data['bool_item'] : null; - $this->container['array_item'] = isset($data['array_item']) ? $data['array_item'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - if ($this->container['string_item'] === null) { - $invalidProperties[] = "'string_item' can't be null"; - } - if ($this->container['number_item'] === null) { - $invalidProperties[] = "'number_item' can't be null"; - } - if ($this->container['float_item'] === null) { - $invalidProperties[] = "'float_item' can't be null"; - } - if ($this->container['integer_item'] === null) { - $invalidProperties[] = "'integer_item' can't be null"; - } - if ($this->container['bool_item'] === null) { - $invalidProperties[] = "'bool_item' can't be null"; - } - if ($this->container['array_item'] === null) { - $invalidProperties[] = "'array_item' can't be null"; - } - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets string_item - * - * @return string - */ - public function getStringItem() - { - return $this->container['string_item']; - } - - /** - * Sets string_item - * - * @param string $string_item string_item - * - * @return $this - */ - public function setStringItem($string_item) - { - $this->container['string_item'] = $string_item; - - return $this; - } - - /** - * Gets number_item - * - * @return float - */ - public function getNumberItem() - { - return $this->container['number_item']; - } - - /** - * Sets number_item - * - * @param float $number_item number_item - * - * @return $this - */ - public function setNumberItem($number_item) - { - $this->container['number_item'] = $number_item; - - return $this; - } - - /** - * Gets float_item - * - * @return float - */ - public function getFloatItem() - { - return $this->container['float_item']; - } - - /** - * Sets float_item - * - * @param float $float_item float_item - * - * @return $this - */ - public function setFloatItem($float_item) - { - $this->container['float_item'] = $float_item; - - return $this; - } - - /** - * Gets integer_item - * - * @return int - */ - public function getIntegerItem() - { - return $this->container['integer_item']; - } - - /** - * Sets integer_item - * - * @param int $integer_item integer_item - * - * @return $this - */ - public function setIntegerItem($integer_item) - { - $this->container['integer_item'] = $integer_item; - - return $this; - } - - /** - * Gets bool_item - * - * @return bool - */ - public function getBoolItem() - { - return $this->container['bool_item']; - } - - /** - * Sets bool_item - * - * @param bool $bool_item bool_item - * - * @return $this - */ - public function setBoolItem($bool_item) - { - $this->container['bool_item'] = $bool_item; - - return $this; - } - - /** - * Gets array_item - * - * @return int[] - */ - public function getArrayItem() - { - return $this->container['array_item']; - } - - /** - * Sets array_item - * - * @param int[] $array_item array_item - * - * @return $this - */ - public function setArrayItem($array_item) - { - $this->container['array_item'] = $array_item; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php index 2706dbada9..bb8c18c2be 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -41,7 +40,7 @@ use \OpenAPI\Client\ObjectSerializer; * @link https://openapi-generator.tech * @implements \ArrayAccess * @template TKey int|null - * @template TValue mixed|null + * @template TValue mixed|null */ class User implements ModelInterface, ArrayAccess, \JsonSerializable { @@ -198,9 +197,6 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable return self::$openAPIModelName; } - - - /** * Associative array for storing property values diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/XmlItem.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/XmlItem.php deleted file mode 100644 index 0b27d4ff57..0000000000 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/XmlItem.php +++ /dev/null @@ -1,1147 +0,0 @@ - 'string', - 'attribute_number' => 'float', - 'attribute_integer' => 'int', - 'attribute_boolean' => 'bool', - 'wrapped_array' => 'int[]', - 'name_string' => 'string', - 'name_number' => 'float', - 'name_integer' => 'int', - 'name_boolean' => 'bool', - 'name_array' => 'int[]', - 'name_wrapped_array' => 'int[]', - 'prefix_string' => 'string', - 'prefix_number' => 'float', - 'prefix_integer' => 'int', - 'prefix_boolean' => 'bool', - 'prefix_array' => 'int[]', - 'prefix_wrapped_array' => 'int[]', - 'namespace_string' => 'string', - 'namespace_number' => 'float', - 'namespace_integer' => 'int', - 'namespace_boolean' => 'bool', - 'namespace_array' => 'int[]', - 'namespace_wrapped_array' => 'int[]', - 'prefix_ns_string' => 'string', - 'prefix_ns_number' => 'float', - 'prefix_ns_integer' => 'int', - 'prefix_ns_boolean' => 'bool', - 'prefix_ns_array' => 'int[]', - 'prefix_ns_wrapped_array' => 'int[]' - ]; - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - */ - protected static $openAPIFormats = [ - 'attribute_string' => null, - 'attribute_number' => null, - 'attribute_integer' => null, - 'attribute_boolean' => null, - 'wrapped_array' => null, - 'name_string' => null, - 'name_number' => null, - 'name_integer' => null, - 'name_boolean' => null, - 'name_array' => null, - 'name_wrapped_array' => null, - 'prefix_string' => null, - 'prefix_number' => null, - 'prefix_integer' => null, - 'prefix_boolean' => null, - 'prefix_array' => null, - 'prefix_wrapped_array' => null, - 'namespace_string' => null, - 'namespace_number' => null, - 'namespace_integer' => null, - 'namespace_boolean' => null, - 'namespace_array' => null, - 'namespace_wrapped_array' => null, - 'prefix_ns_string' => null, - 'prefix_ns_number' => null, - 'prefix_ns_integer' => null, - 'prefix_ns_boolean' => null, - 'prefix_ns_array' => null, - 'prefix_ns_wrapped_array' => null - ]; - - /** - * Array of property to type mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPITypes() - { - return self::$openAPITypes; - } - - /** - * Array of property to format mappings. Used for (de)serialization - * - * @return array - */ - public static function openAPIFormats() - { - return self::$openAPIFormats; - } - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @var string[] - */ - protected static $attributeMap = [ - 'attribute_string' => 'attribute_string', - 'attribute_number' => 'attribute_number', - 'attribute_integer' => 'attribute_integer', - 'attribute_boolean' => 'attribute_boolean', - 'wrapped_array' => 'wrapped_array', - 'name_string' => 'name_string', - 'name_number' => 'name_number', - 'name_integer' => 'name_integer', - 'name_boolean' => 'name_boolean', - 'name_array' => 'name_array', - 'name_wrapped_array' => 'name_wrapped_array', - 'prefix_string' => 'prefix_string', - 'prefix_number' => 'prefix_number', - 'prefix_integer' => 'prefix_integer', - 'prefix_boolean' => 'prefix_boolean', - 'prefix_array' => 'prefix_array', - 'prefix_wrapped_array' => 'prefix_wrapped_array', - 'namespace_string' => 'namespace_string', - 'namespace_number' => 'namespace_number', - 'namespace_integer' => 'namespace_integer', - 'namespace_boolean' => 'namespace_boolean', - 'namespace_array' => 'namespace_array', - 'namespace_wrapped_array' => 'namespace_wrapped_array', - 'prefix_ns_string' => 'prefix_ns_string', - 'prefix_ns_number' => 'prefix_ns_number', - 'prefix_ns_integer' => 'prefix_ns_integer', - 'prefix_ns_boolean' => 'prefix_ns_boolean', - 'prefix_ns_array' => 'prefix_ns_array', - 'prefix_ns_wrapped_array' => 'prefix_ns_wrapped_array' - ]; - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @var string[] - */ - protected static $setters = [ - 'attribute_string' => 'setAttributeString', - 'attribute_number' => 'setAttributeNumber', - 'attribute_integer' => 'setAttributeInteger', - 'attribute_boolean' => 'setAttributeBoolean', - 'wrapped_array' => 'setWrappedArray', - 'name_string' => 'setNameString', - 'name_number' => 'setNameNumber', - 'name_integer' => 'setNameInteger', - 'name_boolean' => 'setNameBoolean', - 'name_array' => 'setNameArray', - 'name_wrapped_array' => 'setNameWrappedArray', - 'prefix_string' => 'setPrefixString', - 'prefix_number' => 'setPrefixNumber', - 'prefix_integer' => 'setPrefixInteger', - 'prefix_boolean' => 'setPrefixBoolean', - 'prefix_array' => 'setPrefixArray', - 'prefix_wrapped_array' => 'setPrefixWrappedArray', - 'namespace_string' => 'setNamespaceString', - 'namespace_number' => 'setNamespaceNumber', - 'namespace_integer' => 'setNamespaceInteger', - 'namespace_boolean' => 'setNamespaceBoolean', - 'namespace_array' => 'setNamespaceArray', - 'namespace_wrapped_array' => 'setNamespaceWrappedArray', - 'prefix_ns_string' => 'setPrefixNsString', - 'prefix_ns_number' => 'setPrefixNsNumber', - 'prefix_ns_integer' => 'setPrefixNsInteger', - 'prefix_ns_boolean' => 'setPrefixNsBoolean', - 'prefix_ns_array' => 'setPrefixNsArray', - 'prefix_ns_wrapped_array' => 'setPrefixNsWrappedArray' - ]; - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @var string[] - */ - protected static $getters = [ - 'attribute_string' => 'getAttributeString', - 'attribute_number' => 'getAttributeNumber', - 'attribute_integer' => 'getAttributeInteger', - 'attribute_boolean' => 'getAttributeBoolean', - 'wrapped_array' => 'getWrappedArray', - 'name_string' => 'getNameString', - 'name_number' => 'getNameNumber', - 'name_integer' => 'getNameInteger', - 'name_boolean' => 'getNameBoolean', - 'name_array' => 'getNameArray', - 'name_wrapped_array' => 'getNameWrappedArray', - 'prefix_string' => 'getPrefixString', - 'prefix_number' => 'getPrefixNumber', - 'prefix_integer' => 'getPrefixInteger', - 'prefix_boolean' => 'getPrefixBoolean', - 'prefix_array' => 'getPrefixArray', - 'prefix_wrapped_array' => 'getPrefixWrappedArray', - 'namespace_string' => 'getNamespaceString', - 'namespace_number' => 'getNamespaceNumber', - 'namespace_integer' => 'getNamespaceInteger', - 'namespace_boolean' => 'getNamespaceBoolean', - 'namespace_array' => 'getNamespaceArray', - 'namespace_wrapped_array' => 'getNamespaceWrappedArray', - 'prefix_ns_string' => 'getPrefixNsString', - 'prefix_ns_number' => 'getPrefixNsNumber', - 'prefix_ns_integer' => 'getPrefixNsInteger', - 'prefix_ns_boolean' => 'getPrefixNsBoolean', - 'prefix_ns_array' => 'getPrefixNsArray', - 'prefix_ns_wrapped_array' => 'getPrefixNsWrappedArray' - ]; - - /** - * Array of attributes where the key is the local name, - * and the value is the original name - * - * @return array - */ - public static function attributeMap() - { - return self::$attributeMap; - } - - /** - * Array of attributes to setter functions (for deserialization of responses) - * - * @return array - */ - public static function setters() - { - return self::$setters; - } - - /** - * Array of attributes to getter functions (for serialization of requests) - * - * @return array - */ - public static function getters() - { - return self::$getters; - } - - /** - * The original name of the model. - * - * @return string - */ - public function getModelName() - { - return self::$openAPIModelName; - } - - - - - - /** - * Associative array for storing property values - * - * @var mixed[] - */ - protected $container = []; - - /** - * Constructor - * - * @param mixed[] $data Associated array of property values - * initializing the model - */ - public function __construct(array $data = null) - { - $this->container['attribute_string'] = isset($data['attribute_string']) ? $data['attribute_string'] : null; - $this->container['attribute_number'] = isset($data['attribute_number']) ? $data['attribute_number'] : null; - $this->container['attribute_integer'] = isset($data['attribute_integer']) ? $data['attribute_integer'] : null; - $this->container['attribute_boolean'] = isset($data['attribute_boolean']) ? $data['attribute_boolean'] : null; - $this->container['wrapped_array'] = isset($data['wrapped_array']) ? $data['wrapped_array'] : null; - $this->container['name_string'] = isset($data['name_string']) ? $data['name_string'] : null; - $this->container['name_number'] = isset($data['name_number']) ? $data['name_number'] : null; - $this->container['name_integer'] = isset($data['name_integer']) ? $data['name_integer'] : null; - $this->container['name_boolean'] = isset($data['name_boolean']) ? $data['name_boolean'] : null; - $this->container['name_array'] = isset($data['name_array']) ? $data['name_array'] : null; - $this->container['name_wrapped_array'] = isset($data['name_wrapped_array']) ? $data['name_wrapped_array'] : null; - $this->container['prefix_string'] = isset($data['prefix_string']) ? $data['prefix_string'] : null; - $this->container['prefix_number'] = isset($data['prefix_number']) ? $data['prefix_number'] : null; - $this->container['prefix_integer'] = isset($data['prefix_integer']) ? $data['prefix_integer'] : null; - $this->container['prefix_boolean'] = isset($data['prefix_boolean']) ? $data['prefix_boolean'] : null; - $this->container['prefix_array'] = isset($data['prefix_array']) ? $data['prefix_array'] : null; - $this->container['prefix_wrapped_array'] = isset($data['prefix_wrapped_array']) ? $data['prefix_wrapped_array'] : null; - $this->container['namespace_string'] = isset($data['namespace_string']) ? $data['namespace_string'] : null; - $this->container['namespace_number'] = isset($data['namespace_number']) ? $data['namespace_number'] : null; - $this->container['namespace_integer'] = isset($data['namespace_integer']) ? $data['namespace_integer'] : null; - $this->container['namespace_boolean'] = isset($data['namespace_boolean']) ? $data['namespace_boolean'] : null; - $this->container['namespace_array'] = isset($data['namespace_array']) ? $data['namespace_array'] : null; - $this->container['namespace_wrapped_array'] = isset($data['namespace_wrapped_array']) ? $data['namespace_wrapped_array'] : null; - $this->container['prefix_ns_string'] = isset($data['prefix_ns_string']) ? $data['prefix_ns_string'] : null; - $this->container['prefix_ns_number'] = isset($data['prefix_ns_number']) ? $data['prefix_ns_number'] : null; - $this->container['prefix_ns_integer'] = isset($data['prefix_ns_integer']) ? $data['prefix_ns_integer'] : null; - $this->container['prefix_ns_boolean'] = isset($data['prefix_ns_boolean']) ? $data['prefix_ns_boolean'] : null; - $this->container['prefix_ns_array'] = isset($data['prefix_ns_array']) ? $data['prefix_ns_array'] : null; - $this->container['prefix_ns_wrapped_array'] = isset($data['prefix_ns_wrapped_array']) ? $data['prefix_ns_wrapped_array'] : null; - } - - /** - * Show all the invalid properties with reasons. - * - * @return array invalid properties with reasons - */ - public function listInvalidProperties() - { - $invalidProperties = []; - - return $invalidProperties; - } - - /** - * Validate all the properties in the model - * return true if all passed - * - * @return bool True if all properties are valid - */ - public function valid() - { - return count($this->listInvalidProperties()) === 0; - } - - - /** - * Gets attribute_string - * - * @return string|null - */ - public function getAttributeString() - { - return $this->container['attribute_string']; - } - - /** - * Sets attribute_string - * - * @param string|null $attribute_string attribute_string - * - * @return $this - */ - public function setAttributeString($attribute_string) - { - $this->container['attribute_string'] = $attribute_string; - - return $this; - } - - /** - * Gets attribute_number - * - * @return float|null - */ - public function getAttributeNumber() - { - return $this->container['attribute_number']; - } - - /** - * Sets attribute_number - * - * @param float|null $attribute_number attribute_number - * - * @return $this - */ - public function setAttributeNumber($attribute_number) - { - $this->container['attribute_number'] = $attribute_number; - - return $this; - } - - /** - * Gets attribute_integer - * - * @return int|null - */ - public function getAttributeInteger() - { - return $this->container['attribute_integer']; - } - - /** - * Sets attribute_integer - * - * @param int|null $attribute_integer attribute_integer - * - * @return $this - */ - public function setAttributeInteger($attribute_integer) - { - $this->container['attribute_integer'] = $attribute_integer; - - return $this; - } - - /** - * Gets attribute_boolean - * - * @return bool|null - */ - public function getAttributeBoolean() - { - return $this->container['attribute_boolean']; - } - - /** - * Sets attribute_boolean - * - * @param bool|null $attribute_boolean attribute_boolean - * - * @return $this - */ - public function setAttributeBoolean($attribute_boolean) - { - $this->container['attribute_boolean'] = $attribute_boolean; - - return $this; - } - - /** - * Gets wrapped_array - * - * @return int[]|null - */ - public function getWrappedArray() - { - return $this->container['wrapped_array']; - } - - /** - * Sets wrapped_array - * - * @param int[]|null $wrapped_array wrapped_array - * - * @return $this - */ - public function setWrappedArray($wrapped_array) - { - $this->container['wrapped_array'] = $wrapped_array; - - return $this; - } - - /** - * Gets name_string - * - * @return string|null - */ - public function getNameString() - { - return $this->container['name_string']; - } - - /** - * Sets name_string - * - * @param string|null $name_string name_string - * - * @return $this - */ - public function setNameString($name_string) - { - $this->container['name_string'] = $name_string; - - return $this; - } - - /** - * Gets name_number - * - * @return float|null - */ - public function getNameNumber() - { - return $this->container['name_number']; - } - - /** - * Sets name_number - * - * @param float|null $name_number name_number - * - * @return $this - */ - public function setNameNumber($name_number) - { - $this->container['name_number'] = $name_number; - - return $this; - } - - /** - * Gets name_integer - * - * @return int|null - */ - public function getNameInteger() - { - return $this->container['name_integer']; - } - - /** - * Sets name_integer - * - * @param int|null $name_integer name_integer - * - * @return $this - */ - public function setNameInteger($name_integer) - { - $this->container['name_integer'] = $name_integer; - - return $this; - } - - /** - * Gets name_boolean - * - * @return bool|null - */ - public function getNameBoolean() - { - return $this->container['name_boolean']; - } - - /** - * Sets name_boolean - * - * @param bool|null $name_boolean name_boolean - * - * @return $this - */ - public function setNameBoolean($name_boolean) - { - $this->container['name_boolean'] = $name_boolean; - - return $this; - } - - /** - * Gets name_array - * - * @return int[]|null - */ - public function getNameArray() - { - return $this->container['name_array']; - } - - /** - * Sets name_array - * - * @param int[]|null $name_array name_array - * - * @return $this - */ - public function setNameArray($name_array) - { - $this->container['name_array'] = $name_array; - - return $this; - } - - /** - * Gets name_wrapped_array - * - * @return int[]|null - */ - public function getNameWrappedArray() - { - return $this->container['name_wrapped_array']; - } - - /** - * Sets name_wrapped_array - * - * @param int[]|null $name_wrapped_array name_wrapped_array - * - * @return $this - */ - public function setNameWrappedArray($name_wrapped_array) - { - $this->container['name_wrapped_array'] = $name_wrapped_array; - - return $this; - } - - /** - * Gets prefix_string - * - * @return string|null - */ - public function getPrefixString() - { - return $this->container['prefix_string']; - } - - /** - * Sets prefix_string - * - * @param string|null $prefix_string prefix_string - * - * @return $this - */ - public function setPrefixString($prefix_string) - { - $this->container['prefix_string'] = $prefix_string; - - return $this; - } - - /** - * Gets prefix_number - * - * @return float|null - */ - public function getPrefixNumber() - { - return $this->container['prefix_number']; - } - - /** - * Sets prefix_number - * - * @param float|null $prefix_number prefix_number - * - * @return $this - */ - public function setPrefixNumber($prefix_number) - { - $this->container['prefix_number'] = $prefix_number; - - return $this; - } - - /** - * Gets prefix_integer - * - * @return int|null - */ - public function getPrefixInteger() - { - return $this->container['prefix_integer']; - } - - /** - * Sets prefix_integer - * - * @param int|null $prefix_integer prefix_integer - * - * @return $this - */ - public function setPrefixInteger($prefix_integer) - { - $this->container['prefix_integer'] = $prefix_integer; - - return $this; - } - - /** - * Gets prefix_boolean - * - * @return bool|null - */ - public function getPrefixBoolean() - { - return $this->container['prefix_boolean']; - } - - /** - * Sets prefix_boolean - * - * @param bool|null $prefix_boolean prefix_boolean - * - * @return $this - */ - public function setPrefixBoolean($prefix_boolean) - { - $this->container['prefix_boolean'] = $prefix_boolean; - - return $this; - } - - /** - * Gets prefix_array - * - * @return int[]|null - */ - public function getPrefixArray() - { - return $this->container['prefix_array']; - } - - /** - * Sets prefix_array - * - * @param int[]|null $prefix_array prefix_array - * - * @return $this - */ - public function setPrefixArray($prefix_array) - { - $this->container['prefix_array'] = $prefix_array; - - return $this; - } - - /** - * Gets prefix_wrapped_array - * - * @return int[]|null - */ - public function getPrefixWrappedArray() - { - return $this->container['prefix_wrapped_array']; - } - - /** - * Sets prefix_wrapped_array - * - * @param int[]|null $prefix_wrapped_array prefix_wrapped_array - * - * @return $this - */ - public function setPrefixWrappedArray($prefix_wrapped_array) - { - $this->container['prefix_wrapped_array'] = $prefix_wrapped_array; - - return $this; - } - - /** - * Gets namespace_string - * - * @return string|null - */ - public function getNamespaceString() - { - return $this->container['namespace_string']; - } - - /** - * Sets namespace_string - * - * @param string|null $namespace_string namespace_string - * - * @return $this - */ - public function setNamespaceString($namespace_string) - { - $this->container['namespace_string'] = $namespace_string; - - return $this; - } - - /** - * Gets namespace_number - * - * @return float|null - */ - public function getNamespaceNumber() - { - return $this->container['namespace_number']; - } - - /** - * Sets namespace_number - * - * @param float|null $namespace_number namespace_number - * - * @return $this - */ - public function setNamespaceNumber($namespace_number) - { - $this->container['namespace_number'] = $namespace_number; - - return $this; - } - - /** - * Gets namespace_integer - * - * @return int|null - */ - public function getNamespaceInteger() - { - return $this->container['namespace_integer']; - } - - /** - * Sets namespace_integer - * - * @param int|null $namespace_integer namespace_integer - * - * @return $this - */ - public function setNamespaceInteger($namespace_integer) - { - $this->container['namespace_integer'] = $namespace_integer; - - return $this; - } - - /** - * Gets namespace_boolean - * - * @return bool|null - */ - public function getNamespaceBoolean() - { - return $this->container['namespace_boolean']; - } - - /** - * Sets namespace_boolean - * - * @param bool|null $namespace_boolean namespace_boolean - * - * @return $this - */ - public function setNamespaceBoolean($namespace_boolean) - { - $this->container['namespace_boolean'] = $namespace_boolean; - - return $this; - } - - /** - * Gets namespace_array - * - * @return int[]|null - */ - public function getNamespaceArray() - { - return $this->container['namespace_array']; - } - - /** - * Sets namespace_array - * - * @param int[]|null $namespace_array namespace_array - * - * @return $this - */ - public function setNamespaceArray($namespace_array) - { - $this->container['namespace_array'] = $namespace_array; - - return $this; - } - - /** - * Gets namespace_wrapped_array - * - * @return int[]|null - */ - public function getNamespaceWrappedArray() - { - return $this->container['namespace_wrapped_array']; - } - - /** - * Sets namespace_wrapped_array - * - * @param int[]|null $namespace_wrapped_array namespace_wrapped_array - * - * @return $this - */ - public function setNamespaceWrappedArray($namespace_wrapped_array) - { - $this->container['namespace_wrapped_array'] = $namespace_wrapped_array; - - return $this; - } - - /** - * Gets prefix_ns_string - * - * @return string|null - */ - public function getPrefixNsString() - { - return $this->container['prefix_ns_string']; - } - - /** - * Sets prefix_ns_string - * - * @param string|null $prefix_ns_string prefix_ns_string - * - * @return $this - */ - public function setPrefixNsString($prefix_ns_string) - { - $this->container['prefix_ns_string'] = $prefix_ns_string; - - return $this; - } - - /** - * Gets prefix_ns_number - * - * @return float|null - */ - public function getPrefixNsNumber() - { - return $this->container['prefix_ns_number']; - } - - /** - * Sets prefix_ns_number - * - * @param float|null $prefix_ns_number prefix_ns_number - * - * @return $this - */ - public function setPrefixNsNumber($prefix_ns_number) - { - $this->container['prefix_ns_number'] = $prefix_ns_number; - - return $this; - } - - /** - * Gets prefix_ns_integer - * - * @return int|null - */ - public function getPrefixNsInteger() - { - return $this->container['prefix_ns_integer']; - } - - /** - * Sets prefix_ns_integer - * - * @param int|null $prefix_ns_integer prefix_ns_integer - * - * @return $this - */ - public function setPrefixNsInteger($prefix_ns_integer) - { - $this->container['prefix_ns_integer'] = $prefix_ns_integer; - - return $this; - } - - /** - * Gets prefix_ns_boolean - * - * @return bool|null - */ - public function getPrefixNsBoolean() - { - return $this->container['prefix_ns_boolean']; - } - - /** - * Sets prefix_ns_boolean - * - * @param bool|null $prefix_ns_boolean prefix_ns_boolean - * - * @return $this - */ - public function setPrefixNsBoolean($prefix_ns_boolean) - { - $this->container['prefix_ns_boolean'] = $prefix_ns_boolean; - - return $this; - } - - /** - * Gets prefix_ns_array - * - * @return int[]|null - */ - public function getPrefixNsArray() - { - return $this->container['prefix_ns_array']; - } - - /** - * Sets prefix_ns_array - * - * @param int[]|null $prefix_ns_array prefix_ns_array - * - * @return $this - */ - public function setPrefixNsArray($prefix_ns_array) - { - $this->container['prefix_ns_array'] = $prefix_ns_array; - - return $this; - } - - /** - * Gets prefix_ns_wrapped_array - * - * @return int[]|null - */ - public function getPrefixNsWrappedArray() - { - return $this->container['prefix_ns_wrapped_array']; - } - - /** - * Sets prefix_ns_wrapped_array - * - * @param int[]|null $prefix_ns_wrapped_array prefix_ns_wrapped_array - * - * @return $this - */ - public function setPrefixNsWrappedArray($prefix_ns_wrapped_array) - { - $this->container['prefix_ns_wrapped_array'] = $prefix_ns_wrapped_array; - - return $this; - } - /** - * Returns true if offset exists. False otherwise. - * - * @param integer $offset Offset - * - * @return boolean - */ - public function offsetExists($offset) - { - return isset($this->container[$offset]); - } - - /** - * Gets offset. - * - * @param integer $offset Offset - * - * @return mixed - */ - public function offsetGet($offset) - { - return isset($this->container[$offset]) ? $this->container[$offset] : null; - } - - /** - * Sets value based on offset. - * - * @param integer $offset Offset - * @param mixed $value Value to be set - * - * @return void - */ - public function offsetSet($offset, $value) - { - if (is_null($offset)) { - $this->container[] = $value; - } else { - $this->container[$offset] = $value; - } - } - - /** - * Unsets offset. - * - * @param integer $offset Offset - * - * @return void - */ - public function offsetUnset($offset) - { - unset($this->container[$offset]); - } - - /** - * Gets the string presentation of the object - * - * @return string - */ - public function __toString() - { - return json_encode( - ObjectSerializer::sanitizeForSerialization($this), - JSON_PRETTY_PRINT - ); - } - - /** - * Gets a header-safe presentation of the object - * - * @return string - */ - public function toHeaderValue() - { - return json_encode(ObjectSerializer::sanitizeForSerialization($this)); - } -} - - diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/ObjectSerializer.php b/samples/client/petstore/php/OpenAPIClient-php/lib/ObjectSerializer.php index ccd84696c3..37cb5423ba 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/ObjectSerializer.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/ObjectSerializer.php @@ -16,7 +16,6 @@ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * * The version of the OpenAPI document: 1.0.0 - * * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.1.1-SNAPSHOT */ @@ -275,11 +274,11 @@ class ObjectSerializer if (strcasecmp(substr($class, -2), '[]') === 0) { $data = is_string($data) ? json_decode($data) : $data; - + if (!is_array($data)) { throw new \InvalidArgumentException("Invalid array '$class'"); } - + $subClass = substr($class, 0, -2); $values = []; foreach ($data as $key => $value) { From 0af45b382315e8d42567aacfd0c7231d35720a49 Mon Sep 17 00:00:00 2001 From: Jakob Date: Tue, 30 Mar 2021 05:17:15 +0200 Subject: [PATCH 32/32] [Java] add jackson annotations to setters (#9041) * [Java] add jackson annotations to setters Closes #6856 * [Java] fix conflictiong setter with JsonNullable --- .../Java/libraries/jersey2/pojo.mustache | 2 +- .../Java/libraries/native/pojo.mustache | 2 +- .../src/main/resources/Java/pojo.mustache | 2 +- .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 3 + .../model/AdditionalPropertiesArray.java | 3 + .../model/AdditionalPropertiesBoolean.java | 3 + .../model/AdditionalPropertiesClass.java | 25 ++++++ .../model/AdditionalPropertiesInteger.java | 3 + .../model/AdditionalPropertiesNumber.java | 3 + .../model/AdditionalPropertiesObject.java | 3 + .../model/AdditionalPropertiesString.java | 3 + .../org/openapitools/client/model/Animal.java | 6 ++ .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 3 + .../client/model/BigCatAllOf.java | 3 + .../client/model/Capitalization.java | 18 ++++ .../org/openapitools/client/model/Cat.java | 3 + .../openapitools/client/model/CatAllOf.java | 3 + .../openapitools/client/model/Category.java | 6 ++ .../openapitools/client/model/ClassModel.java | 3 + .../org/openapitools/client/model/Client.java | 3 + .../org/openapitools/client/model/Dog.java | 3 + .../openapitools/client/model/DogAllOf.java | 3 + .../openapitools/client/model/EnumArrays.java | 5 ++ .../openapitools/client/model/EnumTest.java | 15 ++++ .../client/model/FileSchemaTestClass.java | 5 ++ .../openapitools/client/model/FormatTest.java | 42 +++++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 8 ++ .../client/model/Model200Response.java | 6 ++ .../client/model/ModelApiResponse.java | 9 ++ .../client/model/ModelReturn.java | 3 + .../org/openapitools/client/model/Name.java | 6 ++ .../openapitools/client/model/NumberOnly.java | 3 + .../org/openapitools/client/model/Order.java | 18 ++++ .../client/model/OuterComposite.java | 9 ++ .../org/openapitools/client/model/Pet.java | 20 +++++ .../client/model/ReadOnlyFirst.java | 3 + .../client/model/SpecialModelName.java | 3 + .../org/openapitools/client/model/Tag.java | 6 ++ .../client/model/TypeHolderDefault.java | 14 +++ .../client/model/TypeHolderExample.java | 17 ++++ .../org/openapitools/client/model/User.java | 24 +++++ .../openapitools/client/model/XmlItem.java | 88 +++++++++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../model/AdditionalPropertiesAnyType.java | 2 + .../model/AdditionalPropertiesArray.java | 2 + .../model/AdditionalPropertiesBoolean.java | 2 + .../model/AdditionalPropertiesClass.java | 22 +++++ .../model/AdditionalPropertiesInteger.java | 2 + .../model/AdditionalPropertiesNumber.java | 2 + .../model/AdditionalPropertiesObject.java | 2 + .../model/AdditionalPropertiesString.java | 2 + .../org/openapitools/client/model/Animal.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/BigCat.java | 2 + .../client/model/BigCatAllOf.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 10 +++ .../client/model/FileSchemaTestClass.java | 4 + .../openapitools/client/model/FormatTest.java | 28 ++++++ .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/ReadOnlyFirst.java | 2 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TypeHolderDefault.java | 10 +++ .../client/model/TypeHolderExample.java | 12 +++ .../org/openapitools/client/model/User.java | 16 ++++ .../openapitools/client/model/XmlItem.java | 58 ++++++++++++ .../client/model/ChildSchema.java | 2 + .../client/model/ChildSchemaAllOf.java | 2 + .../client/model/MySchemaNameCharacters.java | 2 + .../model/MySchemaNameCharactersAllOf.java | 2 + .../org/openapitools/client/model/Parent.java | 2 + .../model/AdditionalPropertiesClass.java | 14 +++ .../org/openapitools/client/model/Animal.java | 4 + .../org/openapitools/client/model/Apple.java | 4 + .../openapitools/client/model/AppleReq.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/Banana.java | 2 + .../openapitools/client/model/BananaReq.java | 4 + .../openapitools/client/model/BasquePig.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ChildCat.java | 4 + .../client/model/ChildCatAllOf.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../client/model/ComplexQuadrilateral.java | 4 + .../openapitools/client/model/DanishPig.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/Drawing.java | 6 ++ .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 14 +++ .../client/model/EquilateralTriangle.java | 4 + .../client/model/FileSchemaTestClass.java | 4 + .../org/openapitools/client/model/Foo.java | 2 + .../openapitools/client/model/FormatTest.java | 32 +++++++ .../client/model/GrandparentAnimal.java | 2 + .../client/model/InlineResponseDefault.java | 2 + .../client/model/IsoscelesTriangle.java | 4 + .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../client/model/NullableClass.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/QuadrilateralInterface.java | 2 + .../client/model/ReadOnlyFirst.java | 2 + .../client/model/ScaleneTriangle.java | 4 + .../client/model/ShapeInterface.java | 2 + .../client/model/SimpleQuadrilateral.java | 4 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TriangleInterface.java | 2 + .../org/openapitools/client/model/User.java | 18 ++++ .../org/openapitools/client/model/Whale.java | 6 ++ .../org/openapitools/client/model/Zebra.java | 4 + .../model/AdditionalPropertiesClass.java | 14 +++ .../org/openapitools/client/model/Animal.java | 4 + .../org/openapitools/client/model/Apple.java | 4 + .../openapitools/client/model/AppleReq.java | 4 + .../model/ArrayOfArrayOfNumberOnly.java | 2 + .../client/model/ArrayOfNumberOnly.java | 2 + .../openapitools/client/model/ArrayTest.java | 6 ++ .../org/openapitools/client/model/Banana.java | 2 + .../openapitools/client/model/BananaReq.java | 4 + .../openapitools/client/model/BasquePig.java | 2 + .../client/model/Capitalization.java | 12 +++ .../org/openapitools/client/model/Cat.java | 2 + .../openapitools/client/model/CatAllOf.java | 2 + .../openapitools/client/model/Category.java | 4 + .../openapitools/client/model/ChildCat.java | 4 + .../client/model/ChildCatAllOf.java | 4 + .../openapitools/client/model/ClassModel.java | 2 + .../org/openapitools/client/model/Client.java | 2 + .../client/model/ComplexQuadrilateral.java | 4 + .../openapitools/client/model/DanishPig.java | 2 + .../org/openapitools/client/model/Dog.java | 2 + .../openapitools/client/model/DogAllOf.java | 2 + .../openapitools/client/model/Drawing.java | 6 ++ .../openapitools/client/model/EnumArrays.java | 4 + .../openapitools/client/model/EnumTest.java | 14 +++ .../client/model/EquilateralTriangle.java | 4 + .../client/model/FileSchemaTestClass.java | 4 + .../org/openapitools/client/model/Foo.java | 2 + .../openapitools/client/model/FormatTest.java | 32 +++++++ .../client/model/GrandparentAnimal.java | 2 + .../client/model/InlineResponseDefault.java | 2 + .../client/model/IsoscelesTriangle.java | 4 + .../openapitools/client/model/MapTest.java | 8 ++ ...ropertiesAndAdditionalPropertiesClass.java | 6 ++ .../client/model/Model200Response.java | 4 + .../client/model/ModelApiResponse.java | 6 ++ .../client/model/ModelReturn.java | 2 + .../org/openapitools/client/model/Name.java | 4 + .../client/model/NullableClass.java | 4 + .../openapitools/client/model/NumberOnly.java | 2 + .../org/openapitools/client/model/Order.java | 12 +++ .../client/model/OuterComposite.java | 6 ++ .../org/openapitools/client/model/Pet.java | 12 +++ .../client/model/QuadrilateralInterface.java | 2 + .../client/model/ReadOnlyFirst.java | 2 + .../client/model/ScaleneTriangle.java | 4 + .../client/model/ShapeInterface.java | 2 + .../client/model/SimpleQuadrilateral.java | 4 + .../client/model/SpecialModelName.java | 2 + .../org/openapitools/client/model/Tag.java | 4 + .../client/model/TriangleInterface.java | 2 + .../org/openapitools/client/model/User.java | 18 ++++ .../org/openapitools/client/model/Whale.java | 6 ++ .../org/openapitools/client/model/Zebra.java | 4 + 804 files changed, 5397 insertions(+), 3 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache index 70fadd299b..817dc71456 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/jersey2/pojo.mustache @@ -233,7 +233,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^isReadOnly}} - public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache index b2a919dea3..b82b780a57 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache @@ -236,7 +236,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^isReadOnly}} - public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-enum-as-string}} if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) { throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES)); diff --git a/modules/openapi-generator/src/main/resources/Java/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/pojo.mustache index 30454970ac..a58533de1f 100644 --- a/modules/openapi-generator/src/main/resources/Java/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/pojo.mustache @@ -219,7 +219,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorE {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^isReadOnly}} - public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{#jackson}}{{^vendorExtensions.x-is-jackson-optional-nullable}}{{> jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}); {{/vendorExtensions.x-is-jackson-optional-nullable}} diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index a8dd7c5854..1fb67eca91 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index f7fcf4a291..da439d326a 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -61,6 +61,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 99a88cd158..45d3872aae 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index e83db34966..ed7d71f094 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -110,6 +110,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -143,6 +145,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -176,6 +180,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -209,6 +215,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -242,6 +250,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -275,6 +285,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -308,6 +320,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -341,6 +355,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -366,6 +382,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -391,6 +409,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -416,6 +436,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index f1dd62e5c7..d75bb35249 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index aff8f78307..3771e6293c 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -61,6 +61,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 0c6a900ce2..77d0510bd7 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 6333987f28..1e84a60858 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java index 1bb1c9298a..db639d7cbd 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Animal.java @@ -73,6 +73,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -98,6 +100,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index a2ea07d623..952113e603 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -69,6 +69,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 5609a835fd..8362cd7b93 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -69,6 +69,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java index 5a9e42b6d9..20b0ca4e9e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -77,6 +77,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -110,6 +112,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -143,6 +147,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java index 03ff293e40..3d8c8d35a2 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java @@ -103,6 +103,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCatAllOf.java index 3cef5febef..2c6c96fd6b 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -97,6 +97,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java index ef186a2e97..3741d36263 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java @@ -78,6 +78,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -103,6 +105,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -128,6 +132,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -153,6 +159,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -178,6 +186,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -203,6 +213,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java index cca206467a..aa0ee76220 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Cat.java @@ -68,6 +68,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/CatAllOf.java index f0cdb0f615..a6a43592d7 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -58,6 +58,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java index 359a9f4a24..bfd3e15195 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Category.java @@ -62,6 +62,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java index 41569c56c9..0226adfa0a 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java @@ -59,6 +59,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java index 38c477e8c1..b47fbeed7f 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Client.java @@ -58,6 +58,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java index 43a9f58802..8482af9f8b 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Dog.java @@ -64,6 +64,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/DogAllOf.java index bbdcbc1aae..2e751ffc5d 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -58,6 +58,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java index e059f49ecf..2d64a10a29 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -134,6 +134,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -167,6 +169,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java index 3e36db5c09..c0fd5db653 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java @@ -219,6 +219,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -243,6 +245,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -268,6 +272,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -293,6 +299,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -318,6 +326,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 39b0609210..d844eaee22 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -64,6 +64,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -97,6 +99,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java index 10032cbed1..bc0dd2935b 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java @@ -117,6 +117,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -144,6 +146,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -169,6 +173,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -195,6 +201,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -222,6 +230,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -249,6 +259,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -274,6 +286,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -298,6 +312,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -323,6 +339,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -347,6 +365,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -372,6 +392,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -397,6 +419,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -421,6 +445,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -446,6 +472,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java index 46d5b28079..6d9ccaa922 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java @@ -116,6 +116,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -149,6 +151,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -182,6 +186,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -215,6 +221,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index fbbebaac92..9ab3593148 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -72,6 +72,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -97,6 +99,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -130,6 +134,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java index b870f8b54b..61afb2d6ae 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java @@ -63,6 +63,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -88,6 +90,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java index bbadab2fa5..b321397ace 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -66,6 +66,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -91,6 +93,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -116,6 +120,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java index 67594de5d3..f7111ad51c 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -59,6 +59,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java index cb3b9b79da..7b295dd557 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Name.java @@ -70,6 +70,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -111,6 +113,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java index 7b6c81ff91..f1f18b83d8 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -59,6 +59,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java index fbed4fcc01..a10023b465 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java @@ -116,6 +116,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -141,6 +143,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -166,6 +170,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -191,6 +197,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -216,6 +224,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -241,6 +251,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java index c530d9042e..2ff51847fa 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -67,6 +67,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -92,6 +94,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -117,6 +121,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java index 437e50270d..a05539f390 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java @@ -121,6 +121,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -146,6 +148,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -170,6 +174,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -199,6 +205,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -232,6 +240,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -257,6 +267,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 5a9f090b3d..fda42111f6 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -78,6 +78,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java index 40b1a7473c..865cb61d8f 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -58,6 +58,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java index 217878aaf6..0f8bd9bbc1 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Tag.java @@ -62,6 +62,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -87,6 +89,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 584ea0d2a8..cef1c000f7 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -76,6 +76,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -100,6 +102,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -124,6 +128,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -148,6 +154,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -177,6 +185,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java index bd3f9d0025..4b133e10ea 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -80,6 +80,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -104,6 +106,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -128,6 +132,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -152,6 +158,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -176,6 +184,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -205,6 +215,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java index 015e03770e..9a9fcc190a 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/User.java @@ -86,6 +86,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -111,6 +113,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -136,6 +140,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -161,6 +167,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -186,6 +194,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -211,6 +221,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -236,6 +248,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -261,6 +275,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java index 129b988ca2..02b73cdca9 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java @@ -173,6 +173,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -198,6 +200,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -223,6 +227,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -248,6 +254,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -281,6 +289,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -306,6 +316,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -331,6 +343,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -356,6 +370,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -381,6 +397,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -414,6 +432,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -447,6 +467,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -472,6 +494,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -497,6 +521,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -522,6 +548,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -547,6 +575,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -580,6 +610,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -613,6 +645,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -638,6 +672,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -663,6 +699,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -688,6 +726,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -713,6 +753,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -746,6 +788,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -779,6 +823,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -804,6 +850,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -829,6 +877,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -854,6 +904,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -879,6 +931,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -912,6 +966,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -945,6 +1001,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 366143d1fc..12d050d984 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 7a5e9587e6..e49704ab97 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8f017af350..68a308a96f 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index e442eea312..4e476cf79d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -109,6 +109,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -142,6 +144,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -175,6 +179,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -208,6 +214,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -241,6 +249,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -274,6 +284,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -307,6 +319,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -340,6 +354,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -365,6 +381,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -390,6 +408,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -415,6 +435,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 8e85dd20fe..e1ac251828 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 50db851ff0..a12b774105 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index b6fcfc25ba..8091ce0d51 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 20bbfd1117..0b6866c4fd 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java index c33e153c75..ad0c77f2e4 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Animal.java @@ -72,6 +72,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -97,6 +99,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 459f460296..e558e02ebe 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 8becb8dd2b..fd5f507f16 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java index 8747730a9d..281f50c3fb 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -76,6 +76,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -109,6 +111,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -142,6 +146,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/BigCat.java index ccfdc5a5ec..91ebb2a767 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/BigCat.java @@ -102,6 +102,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/BigCatAllOf.java index 481e22e0df..58588f53dc 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -96,6 +96,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java index 2065be194d..db68e64729 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Capitalization.java @@ -77,6 +77,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -102,6 +104,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -127,6 +131,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -152,6 +158,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -177,6 +185,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -202,6 +212,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java index 9c3291beec..468dae3810 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Cat.java @@ -67,6 +67,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/CatAllOf.java index 2199b085d7..997f76d215 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -57,6 +57,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java index 3737dbb3c3..32f72e70f3 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Category.java @@ -61,6 +61,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -85,6 +87,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java index 227bdaae55..1872b8ad88 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ClassModel.java @@ -58,6 +58,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java index 9fea895883..13c8982196 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Client.java @@ -57,6 +57,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java index d54ac1b7a2..5820cea9ab 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Dog.java @@ -63,6 +63,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DogAllOf.java index 449c4e6f05..26cd9000e3 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -57,6 +57,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java index 4944b28bdf..6f8c205631 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,6 +133,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -166,6 +168,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java index 7589d69aa6..38f47d5621 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java @@ -218,6 +218,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -242,6 +244,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -267,6 +271,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -292,6 +298,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -317,6 +325,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 074b99080e..fdc4c5a092 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -63,6 +63,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -96,6 +98,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java index 5f8a894641..edc70d7127 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java @@ -116,6 +116,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -143,6 +145,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -168,6 +172,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -194,6 +200,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -221,6 +229,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -248,6 +258,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -273,6 +285,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -297,6 +311,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -322,6 +338,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -346,6 +364,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -371,6 +391,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -396,6 +418,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -420,6 +444,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -445,6 +471,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java index b5921775cf..3561bb9ac0 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java @@ -115,6 +115,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -148,6 +150,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -181,6 +185,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -214,6 +220,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index dbb1682a91..f8973bf983 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -71,6 +71,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java index bc3bee0e09..21c275adfb 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Model200Response.java @@ -62,6 +62,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -87,6 +89,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 47f88db907..3800222224 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -65,6 +65,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -90,6 +92,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -115,6 +119,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java index 1b2a532f60..42f2d7dbdd 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -58,6 +58,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java index 1da9e1433c..9cbe59380f 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Name.java @@ -69,6 +69,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -110,6 +112,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java index d1f21fa594..872c450ee8 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -58,6 +58,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java index 8d73974990..8fdfff301c 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java @@ -115,6 +115,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -140,6 +142,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -165,6 +169,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -190,6 +196,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -215,6 +223,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -240,6 +250,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java index 7b28063ef1..a3990c26eb 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -66,6 +66,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -91,6 +93,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -116,6 +120,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java index fca1a5141d..3b5363bdd4 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java @@ -120,6 +120,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -145,6 +147,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -169,6 +173,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -198,6 +204,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -231,6 +239,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -256,6 +266,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f866409c5b..64586deb1b 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -77,6 +77,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java index 2a7c39ec8e..6116d1eed6 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -57,6 +57,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java index 9630d27224..33acaca34d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Tag.java @@ -61,6 +61,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 6f0a0c91e1..b40b6f0ecf 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -75,6 +75,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -99,6 +101,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -123,6 +127,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -147,6 +153,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -176,6 +184,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 1e3eb75f97..c7ccb2fc2d 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -79,6 +79,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -103,6 +105,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -127,6 +131,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -151,6 +157,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -175,6 +183,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -204,6 +214,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java index ba6825df44..337d199306 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/User.java @@ -85,6 +85,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -110,6 +112,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -135,6 +139,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -160,6 +166,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -185,6 +193,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -210,6 +220,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -235,6 +247,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -260,6 +274,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/XmlItem.java index 4fd920eb0f..3c3ba6befb 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/XmlItem.java @@ -172,6 +172,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -197,6 +199,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -222,6 +226,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -247,6 +253,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -280,6 +288,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -305,6 +315,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -330,6 +342,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -355,6 +369,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -380,6 +396,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -413,6 +431,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -446,6 +466,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -471,6 +493,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -496,6 +520,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -521,6 +547,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -546,6 +574,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -579,6 +609,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -612,6 +644,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -637,6 +671,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -662,6 +698,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -687,6 +725,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -712,6 +752,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -745,6 +787,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -778,6 +822,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -803,6 +849,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -828,6 +876,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -853,6 +903,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -878,6 +930,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -911,6 +965,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -944,6 +1000,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 366143d1fc..12d050d984 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 7a5e9587e6..e49704ab97 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8f017af350..68a308a96f 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index e442eea312..4e476cf79d 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -109,6 +109,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -142,6 +144,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -175,6 +179,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -208,6 +214,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -241,6 +249,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -274,6 +284,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -307,6 +319,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -340,6 +354,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -365,6 +381,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -390,6 +408,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -415,6 +435,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 8e85dd20fe..e1ac251828 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 50db851ff0..a12b774105 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index b6fcfc25ba..8091ce0d51 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 20bbfd1117..0b6866c4fd 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java index c33e153c75..ad0c77f2e4 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Animal.java @@ -72,6 +72,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -97,6 +99,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 459f460296..e558e02ebe 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 8becb8dd2b..fd5f507f16 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java index 8747730a9d..281f50c3fb 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -76,6 +76,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -109,6 +111,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -142,6 +146,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java index ccfdc5a5ec..91ebb2a767 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java @@ -102,6 +102,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCatAllOf.java index 481e22e0df..58588f53dc 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -96,6 +96,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java index 2065be194d..db68e64729 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Capitalization.java @@ -77,6 +77,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -102,6 +104,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -127,6 +131,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -152,6 +158,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -177,6 +185,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -202,6 +212,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java index 10d8036c41..6ce1dff382 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Cat.java @@ -67,6 +67,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/CatAllOf.java index 38910bf5c6..d8513f39fd 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -57,6 +57,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java index 3737dbb3c3..32f72e70f3 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Category.java @@ -61,6 +61,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -85,6 +87,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java index 227bdaae55..1872b8ad88 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ClassModel.java @@ -58,6 +58,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java index 9fea895883..13c8982196 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Client.java @@ -57,6 +57,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java index d54ac1b7a2..5820cea9ab 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Dog.java @@ -63,6 +63,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/DogAllOf.java index 449c4e6f05..26cd9000e3 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -57,6 +57,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java index 4944b28bdf..6f8c205631 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,6 +133,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -166,6 +168,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java index 7589d69aa6..38f47d5621 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java @@ -218,6 +218,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -242,6 +244,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -267,6 +271,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -292,6 +298,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -317,6 +325,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 074b99080e..fdc4c5a092 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -63,6 +63,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -96,6 +98,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java index 5f8a894641..edc70d7127 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java @@ -116,6 +116,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -143,6 +145,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -168,6 +172,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -194,6 +200,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -221,6 +229,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -248,6 +258,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -273,6 +285,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -297,6 +311,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -322,6 +338,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -346,6 +364,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -371,6 +391,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -396,6 +418,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -420,6 +444,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -445,6 +471,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java index b5921775cf..3561bb9ac0 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java @@ -115,6 +115,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -148,6 +150,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -181,6 +185,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -214,6 +220,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index dbb1682a91..f8973bf983 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -71,6 +71,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java index bc3bee0e09..21c275adfb 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Model200Response.java @@ -62,6 +62,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -87,6 +89,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 47f88db907..3800222224 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -65,6 +65,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -90,6 +92,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -115,6 +119,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java index 1b2a532f60..42f2d7dbdd 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -58,6 +58,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java index 1da9e1433c..9cbe59380f 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Name.java @@ -69,6 +69,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -110,6 +112,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java index d1f21fa594..872c450ee8 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -58,6 +58,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java index ef25685640..05f4e2d0c4 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java @@ -115,6 +115,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -140,6 +142,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -165,6 +169,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -190,6 +196,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -215,6 +223,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -240,6 +250,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java index 32db00927c..0e9854927f 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -66,6 +66,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -91,6 +93,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -116,6 +120,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java index fca1a5141d..3b5363bdd4 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java @@ -120,6 +120,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -145,6 +147,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -169,6 +173,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -198,6 +204,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -231,6 +239,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -256,6 +266,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f866409c5b..64586deb1b 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -77,6 +77,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java index 2a7c39ec8e..6116d1eed6 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -57,6 +57,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java index 9630d27224..33acaca34d 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Tag.java @@ -61,6 +61,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 5e13ac4ab7..a5086c7676 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -75,6 +75,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -99,6 +101,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -123,6 +127,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -147,6 +153,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -176,6 +184,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 7b89d392f5..a2767367b3 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -79,6 +79,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -103,6 +105,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -127,6 +131,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -151,6 +157,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -175,6 +183,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -204,6 +214,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java index ba6825df44..337d199306 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/User.java @@ -85,6 +85,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -110,6 +112,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -135,6 +139,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -160,6 +166,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -185,6 +193,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -210,6 +220,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -235,6 +247,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -260,6 +274,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java index 1a621d2e71..0d54cd8ba2 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/XmlItem.java @@ -172,6 +172,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -197,6 +199,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -222,6 +226,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -247,6 +253,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -280,6 +288,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -305,6 +315,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -330,6 +342,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -355,6 +369,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -380,6 +396,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -413,6 +431,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -446,6 +466,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -471,6 +493,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -496,6 +520,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -521,6 +547,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -546,6 +574,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -579,6 +609,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -612,6 +644,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -637,6 +671,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -662,6 +698,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -687,6 +725,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -712,6 +752,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -745,6 +787,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -778,6 +822,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -803,6 +849,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -828,6 +876,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -853,6 +903,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -878,6 +930,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -911,6 +965,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -944,6 +1000,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 366143d1fc..12d050d984 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 7a5e9587e6..e49704ab97 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8f017af350..68a308a96f 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index e442eea312..4e476cf79d 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -109,6 +109,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -142,6 +144,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -175,6 +179,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -208,6 +214,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -241,6 +249,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -274,6 +284,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -307,6 +319,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -340,6 +354,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -365,6 +381,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -390,6 +408,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -415,6 +435,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 8e85dd20fe..e1ac251828 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 50db851ff0..a12b774105 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index b6fcfc25ba..8091ce0d51 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 20bbfd1117..0b6866c4fd 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Animal.java index c33e153c75..ad0c77f2e4 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Animal.java @@ -72,6 +72,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -97,6 +99,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 459f460296..e558e02ebe 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 8becb8dd2b..fd5f507f16 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayTest.java index 8747730a9d..281f50c3fb 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -76,6 +76,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -109,6 +111,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -142,6 +146,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/BigCat.java index ccfdc5a5ec..91ebb2a767 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/BigCat.java @@ -102,6 +102,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/BigCatAllOf.java index 481e22e0df..58588f53dc 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -96,6 +96,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Capitalization.java index 2065be194d..db68e64729 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Capitalization.java @@ -77,6 +77,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -102,6 +104,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -127,6 +131,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -152,6 +158,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -177,6 +185,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -202,6 +212,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Cat.java index 10d8036c41..6ce1dff382 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Cat.java @@ -67,6 +67,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/CatAllOf.java index 38910bf5c6..d8513f39fd 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -57,6 +57,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Category.java index 3737dbb3c3..32f72e70f3 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Category.java @@ -61,6 +61,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -85,6 +87,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ClassModel.java index 227bdaae55..1872b8ad88 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ClassModel.java @@ -58,6 +58,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Client.java index 9fea895883..13c8982196 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Client.java @@ -57,6 +57,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Dog.java index d54ac1b7a2..5820cea9ab 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Dog.java @@ -63,6 +63,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/DogAllOf.java index 449c4e6f05..26cd9000e3 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -57,6 +57,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumArrays.java index 4944b28bdf..6f8c205631 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,6 +133,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -166,6 +168,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumTest.java index 7589d69aa6..38f47d5621 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/EnumTest.java @@ -218,6 +218,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -242,6 +244,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -267,6 +271,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -292,6 +298,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -317,6 +325,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 074b99080e..fdc4c5a092 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -63,6 +63,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -96,6 +98,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java index 5f8a894641..edc70d7127 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java @@ -116,6 +116,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -143,6 +145,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -168,6 +172,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -194,6 +200,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -221,6 +229,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -248,6 +258,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -273,6 +285,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -297,6 +311,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -322,6 +338,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -346,6 +364,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -371,6 +391,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -396,6 +418,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -420,6 +444,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -445,6 +471,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MapTest.java index b5921775cf..3561bb9ac0 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MapTest.java @@ -115,6 +115,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -148,6 +150,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -181,6 +185,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -214,6 +220,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index dbb1682a91..f8973bf983 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -71,6 +71,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Model200Response.java index bc3bee0e09..21c275adfb 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Model200Response.java @@ -62,6 +62,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -87,6 +89,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 47f88db907..3800222224 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -65,6 +65,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -90,6 +92,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -115,6 +119,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelReturn.java index 1b2a532f60..42f2d7dbdd 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -58,6 +58,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Name.java index 1da9e1433c..9cbe59380f 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Name.java @@ -69,6 +69,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -110,6 +112,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/NumberOnly.java index d1f21fa594..872c450ee8 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -58,6 +58,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Order.java index ef25685640..05f4e2d0c4 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Order.java @@ -115,6 +115,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -140,6 +142,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -165,6 +169,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -190,6 +196,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -215,6 +223,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -240,6 +250,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/OuterComposite.java index 32db00927c..0e9854927f 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -66,6 +66,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -91,6 +93,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -116,6 +120,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Pet.java index fca1a5141d..3b5363bdd4 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Pet.java @@ -120,6 +120,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -145,6 +147,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -169,6 +173,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -198,6 +204,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -231,6 +239,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -256,6 +266,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f866409c5b..64586deb1b 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -77,6 +77,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/SpecialModelName.java index 2a7c39ec8e..6116d1eed6 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -57,6 +57,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Tag.java index 9630d27224..33acaca34d 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/Tag.java @@ -61,6 +61,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 5e13ac4ab7..a5086c7676 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -75,6 +75,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -99,6 +101,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -123,6 +127,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -147,6 +153,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -176,6 +184,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 7b89d392f5..a2767367b3 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -79,6 +79,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -103,6 +105,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -127,6 +131,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -151,6 +157,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -175,6 +183,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -204,6 +214,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/User.java index ba6825df44..337d199306 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/User.java @@ -85,6 +85,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -110,6 +112,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -135,6 +139,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -160,6 +166,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -185,6 +193,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -210,6 +220,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -235,6 +247,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -260,6 +274,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/XmlItem.java index 1a621d2e71..0d54cd8ba2 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/XmlItem.java @@ -172,6 +172,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -197,6 +199,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -222,6 +226,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -247,6 +253,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -280,6 +288,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -305,6 +315,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -330,6 +342,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -355,6 +369,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -380,6 +396,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -413,6 +431,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -446,6 +466,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -471,6 +493,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -496,6 +520,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -521,6 +547,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -546,6 +574,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -579,6 +609,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -612,6 +644,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -637,6 +671,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -662,6 +698,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -687,6 +725,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -712,6 +752,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -745,6 +787,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -778,6 +822,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -803,6 +849,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -828,6 +876,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -853,6 +903,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -878,6 +930,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -911,6 +965,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -944,6 +1000,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 3a706ce98a..d970795e97 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -63,6 +63,8 @@ public class AdditionalPropertiesAnyType { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index f95cac6fed..4afc2085d6 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesArray { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 07fd09b9ba..8ff5a18d19 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -63,6 +63,8 @@ public class AdditionalPropertiesBoolean { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 7f70d66a22..b916a85488 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -111,6 +111,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -143,6 +145,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -175,6 +179,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -207,6 +213,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -239,6 +247,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -271,6 +281,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -303,6 +315,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -335,6 +349,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -359,6 +375,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -383,6 +401,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -407,6 +427,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index bb3cc4c137..8ade28299e 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -63,6 +63,8 @@ public class AdditionalPropertiesInteger { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 615fc44402..542c061cc4 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesNumber { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 3d831e6773..fa3c9b1cc8 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesObject { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 2d575cb6d7..449edb84e2 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -63,6 +63,8 @@ public class AdditionalPropertiesString { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java index c24cbfda1a..8e35f70143 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Animal.java @@ -74,6 +74,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -98,6 +100,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 9e5c4c6492..5d3b478c12 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -70,6 +70,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 45fd7829c9..b59275573c 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -70,6 +70,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java index db796d93d4..db2613ad80 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -78,6 +78,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -110,6 +112,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -142,6 +146,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java index ccccfb60e3..4044bc0ac7 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java @@ -104,6 +104,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCatAllOf.java index 015fe21904..7fc1d43685 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -98,6 +98,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java index e368f955e7..eea6cd4b4f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Capitalization.java @@ -79,6 +79,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -103,6 +105,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -127,6 +131,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -151,6 +157,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -175,6 +183,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -199,6 +209,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java index 46cf35becd..6870d8028a 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Cat.java @@ -69,6 +69,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/CatAllOf.java index 54e6b24cdb..298ba7d9b4 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -59,6 +59,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java index ea4ceb96ec..d2881dac7b 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Category.java @@ -63,6 +63,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java index 700ba2f17b..340fb74689 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ClassModel.java @@ -60,6 +60,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java index e7c0e00398..2535057113 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Client.java @@ -59,6 +59,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java index e7e9d204f8..741ba4cceb 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Dog.java @@ -65,6 +65,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/DogAllOf.java index 086058c0a7..06b4ea8575 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -59,6 +59,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java index 3ec9f89157..d381b594cb 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -135,6 +135,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -167,6 +169,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java index c58502ef21..51a612fedb 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java @@ -220,6 +220,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -243,6 +245,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -267,6 +271,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -291,6 +297,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -315,6 +323,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index c60d469c29..2673c8add9 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -65,6 +65,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -97,6 +99,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java index b7bf3c2079..1556196ce7 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/FormatTest.java @@ -118,6 +118,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -144,6 +146,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -168,6 +172,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -193,6 +199,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -219,6 +227,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -245,6 +255,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -269,6 +281,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -292,6 +306,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -316,6 +332,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -339,6 +357,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -363,6 +383,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(LocalDateTime dateTime) { this.dateTime = dateTime; } @@ -387,6 +409,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -410,6 +434,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -434,6 +460,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java index 82b4577794..37569ca750 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java @@ -117,6 +117,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -149,6 +151,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -181,6 +185,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -213,6 +219,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 798fafb4a1..bc6bf26391 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -73,6 +73,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -97,6 +99,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(LocalDateTime dateTime) { this.dateTime = dateTime; } @@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java index 6f8ab9af77..fc03371ca8 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Model200Response.java @@ -64,6 +64,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -88,6 +90,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 6fca2b9dcb..84a4c7c827 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -67,6 +67,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -91,6 +93,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -115,6 +119,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java index 00ca275480..6c3ed4c8a6 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -60,6 +60,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java index 40e242f6ab..ca44ae5d29 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Name.java @@ -71,6 +71,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -111,6 +113,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java index bfb345fc28..ed004b9d1f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -60,6 +60,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java index 61d05db121..37d3a13ed5 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java @@ -117,6 +117,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -141,6 +143,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -165,6 +169,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -189,6 +195,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(LocalDateTime shipDate) { this.shipDate = shipDate; } @@ -213,6 +221,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -237,6 +247,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java index f1425c4a84..1635472a57 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -68,6 +68,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -92,6 +94,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -116,6 +120,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java index 8d7d3414da..c5e087378f 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java @@ -122,6 +122,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -146,6 +148,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -169,6 +173,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -197,6 +203,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -229,6 +237,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -253,6 +263,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 22495675cc..dd49c31a87 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -79,6 +79,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java index c3ecc1b791..7e4d909b9e 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -59,6 +59,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java index 9080c1b7b2..d249df2c14 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Tag.java @@ -63,6 +63,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -87,6 +89,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 612dc13ba9..94a77e7535 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -77,6 +77,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -100,6 +102,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -123,6 +127,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -146,6 +152,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -174,6 +182,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java index a2e72e41cf..b109f3b7c2 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -81,6 +81,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -104,6 +106,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -127,6 +131,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -150,6 +156,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -173,6 +181,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -201,6 +211,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java index dfa70476af..c036a48e03 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/User.java @@ -87,6 +87,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -111,6 +113,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -135,6 +139,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -159,6 +165,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -183,6 +191,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -207,6 +217,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -231,6 +243,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -255,6 +269,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java index c5c0b27150..f27ad5b67b 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/XmlItem.java @@ -174,6 +174,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -198,6 +200,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -222,6 +226,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -246,6 +252,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -278,6 +286,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -302,6 +312,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -326,6 +338,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -350,6 +364,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -374,6 +390,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -406,6 +424,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -438,6 +458,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -462,6 +484,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -486,6 +510,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -510,6 +536,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -534,6 +562,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -566,6 +596,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -598,6 +630,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -622,6 +656,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -646,6 +682,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -670,6 +708,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -694,6 +734,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -726,6 +768,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -758,6 +802,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -782,6 +828,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -806,6 +854,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -830,6 +880,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -854,6 +906,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -886,6 +940,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -918,6 +974,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 3a706ce98a..d970795e97 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -63,6 +63,8 @@ public class AdditionalPropertiesAnyType { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index f95cac6fed..4afc2085d6 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesArray { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 07fd09b9ba..8ff5a18d19 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -63,6 +63,8 @@ public class AdditionalPropertiesBoolean { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 7f70d66a22..b916a85488 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -111,6 +111,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -143,6 +145,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -175,6 +179,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -207,6 +213,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -239,6 +247,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -271,6 +281,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -303,6 +315,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -335,6 +349,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -359,6 +375,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -383,6 +401,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -407,6 +427,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index bb3cc4c137..8ade28299e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -63,6 +63,8 @@ public class AdditionalPropertiesInteger { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 615fc44402..542c061cc4 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesNumber { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 3d831e6773..fa3c9b1cc8 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesObject { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 2d575cb6d7..449edb84e2 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -63,6 +63,8 @@ public class AdditionalPropertiesString { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java index c24cbfda1a..8e35f70143 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java @@ -74,6 +74,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -98,6 +100,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 9e5c4c6492..5d3b478c12 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -70,6 +70,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 45fd7829c9..b59275573c 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -70,6 +70,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java index db796d93d4..db2613ad80 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -78,6 +78,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -110,6 +112,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -142,6 +146,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java index ccccfb60e3..4044bc0ac7 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java @@ -104,6 +104,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCatAllOf.java index 015fe21904..7fc1d43685 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -98,6 +98,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java index e368f955e7..eea6cd4b4f 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java @@ -79,6 +79,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -103,6 +105,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -127,6 +131,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -151,6 +157,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -175,6 +183,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -199,6 +209,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java index 46cf35becd..6870d8028a 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java @@ -69,6 +69,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java index 54e6b24cdb..298ba7d9b4 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -59,6 +59,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java index ea4ceb96ec..d2881dac7b 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java @@ -63,6 +63,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java index 700ba2f17b..340fb74689 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java @@ -60,6 +60,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java index e7c0e00398..2535057113 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java @@ -59,6 +59,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java index e7e9d204f8..741ba4cceb 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java @@ -65,6 +65,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java index 086058c0a7..06b4ea8575 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -59,6 +59,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java index 3ec9f89157..d381b594cb 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -135,6 +135,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -167,6 +169,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java index c58502ef21..51a612fedb 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java @@ -220,6 +220,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -243,6 +245,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -267,6 +271,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -291,6 +297,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -315,6 +323,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index c60d469c29..2673c8add9 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -65,6 +65,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -97,6 +99,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java index acaafa9d53..fcf4021fde 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java @@ -118,6 +118,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -144,6 +146,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -168,6 +172,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -193,6 +199,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -219,6 +227,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -245,6 +255,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -269,6 +281,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -292,6 +306,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -316,6 +332,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -339,6 +357,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -363,6 +383,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -387,6 +409,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -410,6 +434,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -434,6 +460,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java index 82b4577794..37569ca750 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java @@ -117,6 +117,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -149,6 +151,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -181,6 +185,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -213,6 +219,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 1391207e42..4190273073 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -73,6 +73,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -97,6 +99,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java index 6f8ab9af77..fc03371ca8 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java @@ -64,6 +64,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -88,6 +90,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 6fca2b9dcb..84a4c7c827 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -67,6 +67,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -91,6 +93,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -115,6 +119,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java index 00ca275480..6c3ed4c8a6 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -60,6 +60,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java index 40e242f6ab..ca44ae5d29 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java @@ -71,6 +71,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -111,6 +113,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java index bfb345fc28..ed004b9d1f 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -60,6 +60,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java index 6db255687b..7e79daffed 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java @@ -117,6 +117,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -141,6 +143,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -165,6 +169,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -189,6 +195,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -213,6 +221,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -237,6 +247,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java index f1425c4a84..1635472a57 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -68,6 +68,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -92,6 +94,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -116,6 +120,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java index 8d7d3414da..c5e087378f 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java @@ -122,6 +122,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -146,6 +148,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -169,6 +173,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -197,6 +203,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -229,6 +237,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -253,6 +263,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 22495675cc..dd49c31a87 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -79,6 +79,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java index c3ecc1b791..7e4d909b9e 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -59,6 +59,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java index 9080c1b7b2..d249df2c14 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java @@ -63,6 +63,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -87,6 +89,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 612dc13ba9..94a77e7535 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -77,6 +77,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -100,6 +102,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -123,6 +127,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -146,6 +152,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -174,6 +182,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java index a2e72e41cf..b109f3b7c2 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -81,6 +81,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -104,6 +106,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -127,6 +131,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -150,6 +156,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -173,6 +181,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -201,6 +211,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java index dfa70476af..c036a48e03 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java @@ -87,6 +87,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -111,6 +113,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -135,6 +139,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -159,6 +165,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -183,6 +191,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -207,6 +217,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -231,6 +243,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -255,6 +269,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java index c5c0b27150..f27ad5b67b 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/XmlItem.java @@ -174,6 +174,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -198,6 +200,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -222,6 +226,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -246,6 +252,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -278,6 +286,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -302,6 +312,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -326,6 +338,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -350,6 +364,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -374,6 +390,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -406,6 +424,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -438,6 +458,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -462,6 +484,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -486,6 +510,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -510,6 +536,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -534,6 +562,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -566,6 +596,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -598,6 +630,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -622,6 +656,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -646,6 +682,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -670,6 +708,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -694,6 +734,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -726,6 +768,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -758,6 +802,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -782,6 +828,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -806,6 +854,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -830,6 +880,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -854,6 +906,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -886,6 +940,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -918,6 +974,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index f93b5e1746..9099a60fd4 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 6ffdff9c67..bb9d75b9c7 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -65,6 +65,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 16b8e13d9b..e214a2cffb 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index f691981dd5..a02ee11c04 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -110,6 +110,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -142,6 +144,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -174,6 +178,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -206,6 +212,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -238,6 +246,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -270,6 +280,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -302,6 +314,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -334,6 +348,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -358,6 +374,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -382,6 +400,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -406,6 +426,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 0faca7cd18..c37cb4cbee 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 5b9fa17e4e..d46e8293c8 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -65,6 +65,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 1fb740ef04..2633272232 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 666310557b..f79928430c 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java index f453c6a711..8dea8b95f5 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Animal.java @@ -74,6 +74,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -98,6 +100,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 860c18706c..6dad127d9e 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -69,6 +69,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 5dd051776b..5e59c851d5 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -69,6 +69,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java index b09abe37ab..a3aef6b1ba 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -77,6 +77,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -109,6 +111,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -141,6 +145,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BigCat.java index aa83b13e87..df288c1611 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BigCat.java @@ -104,6 +104,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BigCatAllOf.java index d030f98ea9..790e761e29 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -97,6 +97,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java index 4da743b78d..89294f5ef6 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Capitalization.java @@ -78,6 +78,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -102,6 +104,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -126,6 +130,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -150,6 +156,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -174,6 +182,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -198,6 +208,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java index 0a28a89875..85d0f01a6b 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Cat.java @@ -69,6 +69,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/CatAllOf.java index af37ad9146..39934c2a02 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -58,6 +58,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java index f1a4238c81..fe296c3978 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Category.java @@ -62,6 +62,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -85,6 +87,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java index ff5e51b537..df97250205 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ClassModel.java @@ -59,6 +59,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java index a40e13f114..c6bdbf4ba6 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Client.java @@ -58,6 +58,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java index 879ea4f06a..9baad459f3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Dog.java @@ -65,6 +65,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DogAllOf.java index 060cba32d7..d553743634 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -58,6 +58,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java index 2c4ce14fb6..cc9944eec5 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -134,6 +134,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -166,6 +168,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java index 78ad84ca76..0b4b2bdba0 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java @@ -219,6 +219,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -242,6 +244,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -266,6 +270,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -290,6 +296,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -314,6 +322,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index fa93bc70d1..74e4a914ed 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -64,6 +64,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -96,6 +98,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java index 7b52d56f48..2f72fdb240 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/FormatTest.java @@ -117,6 +117,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -143,6 +145,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -167,6 +171,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -192,6 +198,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -218,6 +226,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -244,6 +254,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -268,6 +280,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -291,6 +305,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -315,6 +331,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -338,6 +356,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -362,6 +382,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -386,6 +408,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -409,6 +433,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -433,6 +459,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java index 1ff1ae445c..10f46d27b3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java @@ -116,6 +116,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -148,6 +150,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -180,6 +184,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -212,6 +218,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index c91a532ffc..da802dcc32 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -72,6 +72,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -128,6 +132,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java index 8e1acacf84..95ce97e156 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Model200Response.java @@ -63,6 +63,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -87,6 +89,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java index a63ab625f4..5def3f4a8d 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -66,6 +66,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -90,6 +92,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -114,6 +118,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java index e21f0de493..9640108d1b 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -59,6 +59,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java index 593d51abdc..be9bc6b0f3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Name.java @@ -70,6 +70,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -110,6 +112,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java index 6f773769cd..296aeb125a 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -59,6 +59,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java index fc354dab84..a702e67995 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java @@ -116,6 +116,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -140,6 +142,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -164,6 +168,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -188,6 +194,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -212,6 +220,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -236,6 +246,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java index 55f9a849d0..2ff2cfeb31 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -67,6 +67,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -91,6 +93,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -115,6 +119,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java index 6e7beb66d6..4abded0549 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java @@ -121,6 +121,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -145,6 +147,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -168,6 +172,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -196,6 +202,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -228,6 +236,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -252,6 +262,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 2546ab88fe..f36aeefc3b 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -78,6 +78,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java index b8a654241f..8a3b935382 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -58,6 +58,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java index cc3be48e60..d376bd2485 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Tag.java @@ -62,6 +62,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index e81e0f84cc..9850fb9069 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -76,6 +76,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -99,6 +101,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -122,6 +126,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -145,6 +151,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -173,6 +181,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 3e2dbbcf06..fb38a5379c 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -80,6 +80,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -103,6 +105,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -126,6 +130,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -149,6 +155,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -172,6 +180,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -200,6 +210,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java index 7fe13f1c4f..4d4cf4b3c1 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/User.java @@ -86,6 +86,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -110,6 +112,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -134,6 +138,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -158,6 +164,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -182,6 +190,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -206,6 +216,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -230,6 +242,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -254,6 +268,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/XmlItem.java index bbd806858c..b72621b7cf 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/XmlItem.java @@ -173,6 +173,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -197,6 +199,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -221,6 +225,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -245,6 +251,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -277,6 +285,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -301,6 +311,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -325,6 +337,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -349,6 +363,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -373,6 +389,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -405,6 +423,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -437,6 +457,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -461,6 +483,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -485,6 +509,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -509,6 +535,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -533,6 +561,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -565,6 +595,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -597,6 +629,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -621,6 +655,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -645,6 +681,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -669,6 +707,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -693,6 +733,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -725,6 +767,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -757,6 +801,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -781,6 +827,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -805,6 +853,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -829,6 +879,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -853,6 +905,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -885,6 +939,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -917,6 +973,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index f93b5e1746..9099a60fd4 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 6ffdff9c67..bb9d75b9c7 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -65,6 +65,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 16b8e13d9b..e214a2cffb 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index f691981dd5..a02ee11c04 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -110,6 +110,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -142,6 +144,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -174,6 +178,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -206,6 +212,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -238,6 +246,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -270,6 +280,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -302,6 +314,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -334,6 +348,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -358,6 +374,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -382,6 +400,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -406,6 +426,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 0faca7cd18..c37cb4cbee 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 5b9fa17e4e..d46e8293c8 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -65,6 +65,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 1fb740ef04..2633272232 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 666310557b..f79928430c 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -64,6 +64,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java index f453c6a711..8dea8b95f5 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java @@ -74,6 +74,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -98,6 +100,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 860c18706c..6dad127d9e 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -69,6 +69,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 5dd051776b..5e59c851d5 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -69,6 +69,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java index b09abe37ab..a3aef6b1ba 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -77,6 +77,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -109,6 +111,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -141,6 +145,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BigCat.java index aa83b13e87..df288c1611 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BigCat.java @@ -104,6 +104,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BigCatAllOf.java index d030f98ea9..790e761e29 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -97,6 +97,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java index 4da743b78d..89294f5ef6 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java @@ -78,6 +78,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -102,6 +104,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -126,6 +130,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -150,6 +156,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -174,6 +182,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -198,6 +208,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java index 0a28a89875..85d0f01a6b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java @@ -69,6 +69,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java index af37ad9146..39934c2a02 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -58,6 +58,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java index f1a4238c81..fe296c3978 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java @@ -62,6 +62,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -85,6 +87,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java index ff5e51b537..df97250205 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java @@ -59,6 +59,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java index a40e13f114..c6bdbf4ba6 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java @@ -58,6 +58,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java index 879ea4f06a..9baad459f3 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java @@ -65,6 +65,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java index 060cba32d7..d553743634 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -58,6 +58,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java index 2c4ce14fb6..cc9944eec5 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -134,6 +134,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -166,6 +168,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java index 78ad84ca76..0b4b2bdba0 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java @@ -219,6 +219,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -242,6 +244,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -266,6 +270,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -290,6 +296,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -314,6 +322,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index fa93bc70d1..74e4a914ed 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -64,6 +64,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -96,6 +98,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java index 7b52d56f48..2f72fdb240 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java @@ -117,6 +117,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -143,6 +145,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -167,6 +171,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -192,6 +198,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -218,6 +226,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -244,6 +254,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -268,6 +280,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -291,6 +305,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -315,6 +331,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -338,6 +356,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -362,6 +382,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -386,6 +408,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -409,6 +433,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -433,6 +459,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java index 1ff1ae445c..10f46d27b3 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java @@ -116,6 +116,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -148,6 +150,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -180,6 +184,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -212,6 +218,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index c91a532ffc..da802dcc32 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -72,6 +72,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -128,6 +132,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java index 8e1acacf84..95ce97e156 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java @@ -63,6 +63,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -87,6 +89,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java index a63ab625f4..5def3f4a8d 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -66,6 +66,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -90,6 +92,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -114,6 +118,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java index e21f0de493..9640108d1b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -59,6 +59,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java index 593d51abdc..be9bc6b0f3 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java @@ -70,6 +70,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -110,6 +112,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java index 6f773769cd..296aeb125a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -59,6 +59,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java index fc354dab84..a702e67995 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java @@ -116,6 +116,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -140,6 +142,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -164,6 +168,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -188,6 +194,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -212,6 +220,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -236,6 +246,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java index 55f9a849d0..2ff2cfeb31 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -67,6 +67,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -91,6 +93,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -115,6 +119,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java index 6e7beb66d6..4abded0549 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java @@ -121,6 +121,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -145,6 +147,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -168,6 +172,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -196,6 +202,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -228,6 +236,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -252,6 +262,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 2546ab88fe..f36aeefc3b 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -78,6 +78,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java index b8a654241f..8a3b935382 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -58,6 +58,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java index cc3be48e60..d376bd2485 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java @@ -62,6 +62,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index e81e0f84cc..9850fb9069 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -76,6 +76,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -99,6 +101,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -122,6 +126,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -145,6 +151,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -173,6 +181,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 3e2dbbcf06..fb38a5379c 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -80,6 +80,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -103,6 +105,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -126,6 +130,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -149,6 +155,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -172,6 +180,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -200,6 +210,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java index 7fe13f1c4f..4d4cf4b3c1 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java @@ -86,6 +86,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -110,6 +112,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -134,6 +138,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -158,6 +164,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -182,6 +190,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -206,6 +216,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -230,6 +242,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -254,6 +268,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/XmlItem.java index bbd806858c..b72621b7cf 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/XmlItem.java @@ -173,6 +173,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -197,6 +199,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -221,6 +225,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -245,6 +251,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -277,6 +285,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -301,6 +311,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -325,6 +337,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -349,6 +363,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -373,6 +389,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -405,6 +423,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -437,6 +457,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -461,6 +483,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -485,6 +509,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -509,6 +535,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -533,6 +561,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -565,6 +595,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -597,6 +629,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -621,6 +655,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -645,6 +681,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -669,6 +707,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -693,6 +733,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -725,6 +767,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -757,6 +801,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -781,6 +827,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -805,6 +853,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -829,6 +879,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -853,6 +905,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -885,6 +939,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -917,6 +973,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index ac7f3646e1..05c3fcb858 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -62,6 +62,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 6eac5af20d..1379543be6 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -63,6 +63,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index dbde88f9b0..1e509bfbef 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -62,6 +62,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 48240c8234..649ccb77b2 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -112,6 +112,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -146,6 +148,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -179,6 +183,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -212,6 +218,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -246,6 +254,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -280,6 +290,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -314,6 +326,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -348,6 +362,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -373,6 +389,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -398,6 +416,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -423,6 +443,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 0d4f46ef5d..90fdb84b99 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -62,6 +62,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index a906a13982..91d969ef0d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -63,6 +63,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 5da7386c13..2e5ce57c53 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -62,6 +62,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index a66e3a25cc..5db6e6c7ab 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -62,6 +62,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java index 9ae43c3ff0..de4d5b03fc 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Animal.java @@ -76,6 +76,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -101,6 +103,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 9505daddb1..477669fdbf 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -72,6 +72,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 097fa5a586..df8fe59a3f 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -72,6 +72,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java index 4bc57f9b03..25693ddefb 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -79,6 +79,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -113,6 +115,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -147,6 +151,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java index 50a6dae7fa..244430075d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java @@ -105,6 +105,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCatAllOf.java index d01785b72c..fd07b1031d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -99,6 +99,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java index b74b370681..c836cd2844 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Capitalization.java @@ -80,6 +80,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -105,6 +107,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -130,6 +134,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -155,6 +161,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -180,6 +188,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -205,6 +215,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java index e2f3f992ab..5839708064 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Cat.java @@ -70,6 +70,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/CatAllOf.java index 818f20e03c..727d563dbe 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -60,6 +60,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java index 618c51c82d..5d3eeff6e8 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Category.java @@ -64,6 +64,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -89,6 +91,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java index cf105b8f04..7f53a73d54 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ClassModel.java @@ -61,6 +61,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java index cc732df66f..93b0a62e20 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Client.java @@ -60,6 +60,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java index 28086281fb..66bb15f509 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Dog.java @@ -66,6 +66,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/DogAllOf.java index 7a44a9eef3..fc5bbf0178 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -60,6 +60,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java index 0077afda65..1317b9fc70 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -136,6 +136,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -169,6 +171,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java index 6cfb06fdeb..1c80692221 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -221,6 +221,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -246,6 +248,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -271,6 +275,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -296,6 +302,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -322,6 +330,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 0774ba50dd..fe4e4a8680 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -67,6 +67,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -101,6 +103,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java index 27ee581d55..23918efb31 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -119,6 +119,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -146,6 +148,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -171,6 +175,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -199,6 +205,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -226,6 +234,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -253,6 +263,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -278,6 +290,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -303,6 +317,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -329,6 +345,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -355,6 +373,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -381,6 +401,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -407,6 +429,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -432,6 +456,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -458,6 +484,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java index 7132318d02..da5f67ace6 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java @@ -119,6 +119,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -152,6 +154,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -185,6 +189,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -218,6 +224,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index db774439c9..b93ae211bd 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -75,6 +75,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -101,6 +103,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -135,6 +139,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java index 0994dd28b4..2f94a2bec8 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Model200Response.java @@ -65,6 +65,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -90,6 +92,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 2c4f7ea6df..68a129460b 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -68,6 +68,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -93,6 +95,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -118,6 +122,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java index f285424acf..0e280f6f66 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -61,6 +61,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java index 45e058db3f..fd7d56353f 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Name.java @@ -73,6 +73,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -114,6 +116,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java index d55295ede7..4ee3d62e22 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -62,6 +62,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java index 1e001ee7ff..c9a429127c 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java @@ -118,6 +118,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -143,6 +145,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -168,6 +172,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -194,6 +200,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -219,6 +227,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -244,6 +254,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java index b10d7e2a6c..4b7fe42bdc 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -70,6 +70,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -95,6 +97,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -120,6 +124,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java index 9f968025ad..c0bf9cc5d5 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java @@ -123,6 +123,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -149,6 +151,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -174,6 +178,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -204,6 +210,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -238,6 +246,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -263,6 +273,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f4c3651fe1..6926a9e942 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -80,6 +80,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java index 2160dfb82d..8af6abdbdd 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -60,6 +60,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java index 34fda46f4b..231012f61f 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Tag.java @@ -64,6 +64,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -89,6 +91,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 40f4bb26f6..e0fa3218cf 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -79,6 +79,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -105,6 +107,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -130,6 +134,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -155,6 +161,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -185,6 +193,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java index cbe4b8f43f..1f9f05919c 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -83,6 +83,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -109,6 +111,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -134,6 +138,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -159,6 +165,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -184,6 +192,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -214,6 +224,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java index 04e90e0e9f..7894560f25 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/User.java @@ -88,6 +88,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -113,6 +115,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -138,6 +142,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -163,6 +169,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -188,6 +196,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -213,6 +223,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -238,6 +250,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -263,6 +277,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java index 01db682136..13df57909b 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/XmlItem.java @@ -175,6 +175,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -201,6 +203,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -226,6 +230,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -251,6 +257,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -284,6 +292,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -309,6 +319,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -335,6 +347,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -360,6 +374,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -385,6 +401,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -418,6 +436,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -451,6 +471,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -476,6 +498,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -502,6 +526,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -527,6 +553,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -552,6 +580,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -585,6 +615,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -618,6 +650,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -643,6 +677,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -669,6 +705,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -694,6 +732,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -719,6 +759,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -752,6 +794,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -785,6 +829,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -810,6 +856,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -836,6 +884,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -861,6 +911,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -886,6 +938,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -919,6 +973,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -952,6 +1008,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 366143d1fc..12d050d984 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 7a5e9587e6..e49704ab97 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8f017af350..68a308a96f 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index e442eea312..4e476cf79d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -109,6 +109,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -142,6 +144,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -175,6 +179,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -208,6 +214,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -241,6 +249,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -274,6 +284,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -307,6 +319,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -340,6 +354,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -365,6 +381,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -390,6 +408,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -415,6 +435,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 8e85dd20fe..e1ac251828 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 50db851ff0..a12b774105 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index b6fcfc25ba..8091ce0d51 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 20bbfd1117..0b6866c4fd 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java index c33e153c75..ad0c77f2e4 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Animal.java @@ -72,6 +72,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -97,6 +99,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 459f460296..e558e02ebe 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 8becb8dd2b..fd5f507f16 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java index 8747730a9d..281f50c3fb 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -76,6 +76,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -109,6 +111,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -142,6 +146,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/BigCat.java index ccfdc5a5ec..91ebb2a767 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/BigCat.java @@ -102,6 +102,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/BigCatAllOf.java index 481e22e0df..58588f53dc 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -96,6 +96,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java index 2065be194d..db68e64729 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Capitalization.java @@ -77,6 +77,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -102,6 +104,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -127,6 +131,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -152,6 +158,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -177,6 +185,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -202,6 +212,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java index 10d8036c41..6ce1dff382 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Cat.java @@ -67,6 +67,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/CatAllOf.java index 38910bf5c6..d8513f39fd 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -57,6 +57,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java index 3737dbb3c3..32f72e70f3 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Category.java @@ -61,6 +61,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -85,6 +87,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java index 227bdaae55..1872b8ad88 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ClassModel.java @@ -58,6 +58,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java index 9fea895883..13c8982196 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Client.java @@ -57,6 +57,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java index d54ac1b7a2..5820cea9ab 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Dog.java @@ -63,6 +63,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DogAllOf.java index 449c4e6f05..26cd9000e3 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -57,6 +57,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java index 4944b28bdf..6f8c205631 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,6 +133,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -166,6 +168,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java index 7589d69aa6..38f47d5621 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java @@ -218,6 +218,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -242,6 +244,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -267,6 +271,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -292,6 +298,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -317,6 +325,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 074b99080e..fdc4c5a092 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -63,6 +63,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -96,6 +98,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java index 5f8a894641..edc70d7127 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java @@ -116,6 +116,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -143,6 +145,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -168,6 +172,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -194,6 +200,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -221,6 +229,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -248,6 +258,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -273,6 +285,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -297,6 +311,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -322,6 +338,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -346,6 +364,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -371,6 +391,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -396,6 +418,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -420,6 +444,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -445,6 +471,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java index b5921775cf..3561bb9ac0 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java @@ -115,6 +115,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -148,6 +150,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -181,6 +185,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -214,6 +220,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index dbb1682a91..f8973bf983 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -71,6 +71,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java index bc3bee0e09..21c275adfb 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Model200Response.java @@ -62,6 +62,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -87,6 +89,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 47f88db907..3800222224 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -65,6 +65,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -90,6 +92,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -115,6 +119,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java index 1b2a532f60..42f2d7dbdd 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -58,6 +58,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java index 1da9e1433c..9cbe59380f 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Name.java @@ -69,6 +69,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -110,6 +112,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java index d1f21fa594..872c450ee8 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -58,6 +58,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java index ef25685640..05f4e2d0c4 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java @@ -115,6 +115,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -140,6 +142,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -165,6 +169,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -190,6 +196,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -215,6 +223,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -240,6 +250,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java index 32db00927c..0e9854927f 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -66,6 +66,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -91,6 +93,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -116,6 +120,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java index fca1a5141d..3b5363bdd4 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java @@ -120,6 +120,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -145,6 +147,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -169,6 +173,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -198,6 +204,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -231,6 +239,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -256,6 +266,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f866409c5b..64586deb1b 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -77,6 +77,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java index 2a7c39ec8e..6116d1eed6 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -57,6 +57,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java index 9630d27224..33acaca34d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Tag.java @@ -61,6 +61,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 5e13ac4ab7..a5086c7676 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -75,6 +75,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -99,6 +101,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -123,6 +127,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -147,6 +153,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -176,6 +184,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 7b89d392f5..a2767367b3 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -79,6 +79,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -103,6 +105,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -127,6 +131,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -151,6 +157,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -175,6 +183,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -204,6 +214,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java index ba6825df44..337d199306 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/User.java @@ -85,6 +85,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -110,6 +112,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -135,6 +139,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -160,6 +166,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -185,6 +193,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -210,6 +220,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -235,6 +247,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -260,6 +274,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/XmlItem.java index 1a621d2e71..0d54cd8ba2 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/XmlItem.java @@ -172,6 +172,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -197,6 +199,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -222,6 +226,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -247,6 +253,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -280,6 +288,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -305,6 +315,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -330,6 +342,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -355,6 +369,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -380,6 +396,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -413,6 +431,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -446,6 +466,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -471,6 +493,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -496,6 +520,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -521,6 +547,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -546,6 +574,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -579,6 +609,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -612,6 +644,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -637,6 +671,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -662,6 +698,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -687,6 +725,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -712,6 +752,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -745,6 +787,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -778,6 +822,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -803,6 +849,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -828,6 +876,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -853,6 +903,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -878,6 +930,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -911,6 +965,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -944,6 +1000,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 8387ffb9d7..71ff82e941 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -66,6 +66,9 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 9bfa9e1dd3..8618b299a3 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -67,6 +67,9 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8c4a52fb6d..33906c12ce 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -66,6 +66,9 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 96c4830090..3241b227af 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -149,6 +149,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -182,6 +184,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -215,6 +219,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -248,6 +254,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -281,6 +289,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -314,6 +324,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -347,6 +359,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -380,6 +394,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -406,6 +422,9 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "anytype_1") public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -432,6 +451,9 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "anytype_2") public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -458,6 +480,9 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "anytype_3") public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index bd5df4cfef..18458df1fb 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -66,6 +66,9 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 8282571e60..4d8324b148 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -67,6 +67,9 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index e8eba34a8e..4c3b871cb5 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -66,6 +66,9 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 0eb4bcabea..7d035921ef 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -66,6 +66,9 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java index 899db978f9..fb3df299bb 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Animal.java @@ -80,6 +80,9 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "className") public void setClassName(String className) { this.className = className; } @@ -106,6 +109,9 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "color") public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 563eefe73f..ebdfb21687 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -77,6 +77,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 7d541000c6..a3397d8b7d 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -77,6 +77,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java index f51ac1266f..77c267ec7a 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -93,6 +93,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -126,6 +128,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -159,6 +163,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/BigCat.java index c84990b838..579953364e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/BigCat.java @@ -115,6 +115,9 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "kind") public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/BigCatAllOf.java index b63924ebda..f6b445c9aa 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -109,6 +109,9 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "kind") public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java index aac1ec0e23..6aeaf686f7 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Capitalization.java @@ -89,6 +89,9 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "smallCamel") public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -115,6 +118,9 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "CapitalCamel") public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -141,6 +147,9 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "small_Snake") public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -167,6 +176,9 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "Capital_Snake") public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -193,6 +205,9 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "SCA_ETH_Flow_Points") public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -219,6 +234,9 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "ATT_NAME") public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java index ac98f4380f..22b40dcefa 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Cat.java @@ -74,6 +74,9 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "declawed") public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/CatAllOf.java index 7ff5f466e2..3c4b715269 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -64,6 +64,9 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "declawed") public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java index 384110e1f4..ab3c928e00 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Category.java @@ -69,6 +69,9 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "id") public void setId(Long id) { this.id = id; } @@ -94,6 +97,9 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "name") public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java index f538dedcfa..18d5248e4e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ClassModel.java @@ -65,6 +65,9 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "_class") public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java index 92f2df2741..616b642283 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Client.java @@ -64,6 +64,9 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "client") public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java index e64a250d55..7eb321f5d0 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Dog.java @@ -70,6 +70,9 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "breed") public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DogAllOf.java index 142036009f..829ad14a79 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -64,6 +64,9 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "breed") public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java index f911c8b032..559c290828 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -152,6 +152,9 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "just_symbol") public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -185,6 +188,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java index 73c2fad609..2e58ba9ed1 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java @@ -247,6 +247,9 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "enum_string") public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -272,6 +275,9 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "enum_string_required") public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -298,6 +304,9 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "enum_integer") public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -324,6 +333,9 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "enum_number") public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -350,6 +362,9 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "outerEnum") public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 85810f4a82..74f81697b2 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -74,6 +74,9 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "file") public void setFile(java.io.File file) { this.file = file; } @@ -107,6 +110,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java index a13aaeac24..5f5950f087 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java @@ -136,6 +136,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "integer") public void setInteger(Integer integer) { this.integer = integer; } @@ -164,6 +167,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "int32") public void setInt32(Integer int32) { this.int32 = int32; } @@ -190,6 +196,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "int64") public void setInt64(Long int64) { this.int64 = int64; } @@ -217,6 +226,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "number") public void setNumber(BigDecimal number) { this.number = number; } @@ -245,6 +257,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "float") public void setFloat(Float _float) { this._float = _float; } @@ -273,6 +288,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "double") public void setDouble(Double _double) { this._double = _double; } @@ -299,6 +317,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "string") public void setString(String string) { this.string = string; } @@ -324,6 +345,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "byte") public void setByte(byte[] _byte) { this._byte = _byte; } @@ -350,6 +374,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "binary") public void setBinary(File binary) { this.binary = binary; } @@ -375,6 +402,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "date") public void setDate(LocalDate date) { this.date = date; } @@ -401,6 +431,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "dateTime") public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -427,6 +460,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "uuid") public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -452,6 +488,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "password") public void setPassword(String password) { this.password = password; } @@ -478,6 +517,9 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "BigDecimal") public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java index 94fc6dc140..a81207bb1e 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java @@ -140,6 +140,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -173,6 +175,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -206,6 +210,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -239,6 +245,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 21ccdd991c..84caf5c918 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -83,6 +83,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "uuid") public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -109,6 +112,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "dateTime") public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -142,6 +148,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java index 94a6e89ab8..c5df690de8 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Model200Response.java @@ -70,6 +70,9 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") public void setName(Integer name) { this.name = name; } @@ -96,6 +99,9 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "class") public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f9b2752ca3..81fb0f3125 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -74,6 +74,9 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "code") public void setCode(Integer code) { this.code = code; } @@ -100,6 +103,9 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "type") public void setType(String type) { this.type = type; } @@ -126,6 +132,9 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "message") public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java index 4c6988e964..87d3a20895 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -65,6 +65,9 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "return") public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java index 327dedcaf2..02635e83bd 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Name.java @@ -79,6 +79,9 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "name") public void setName(Integer name) { this.name = name; } @@ -122,6 +125,9 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "property") public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java index e80fbe7f6a..79c8a867f5 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -65,6 +65,9 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "JustNumber") public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java index be9a12595a..aa1d002923 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java @@ -132,6 +132,9 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "id") public void setId(Long id) { this.id = id; } @@ -158,6 +161,9 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "petId") public void setPetId(Long petId) { this.petId = petId; } @@ -184,6 +190,9 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "quantity") public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -210,6 +219,9 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "shipDate") public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -236,6 +248,9 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "status") public void setStatus(StatusEnum status) { this.status = status; } @@ -262,6 +277,9 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "complete") public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java index ceb89c57e6..9b71b1782a 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -75,6 +75,9 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "my_number") public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -101,6 +104,9 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "my_string") public void setMyString(String myString) { this.myString = myString; } @@ -127,6 +133,9 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "my_boolean") public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java index 89efbf82c3..13319cfe25 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java @@ -145,6 +145,9 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "id") public void setId(Long id) { this.id = id; } @@ -171,6 +174,9 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "category") public void setCategory(Category category) { this.category = category; } @@ -196,6 +202,9 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "name") public void setName(String name) { this.name = name; } @@ -227,6 +236,10 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, localName = "photoUrls") public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -262,6 +275,10 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, localName = "tags") public void setTags(List tags) { this.tags = tags; } @@ -288,6 +305,9 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "status") public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 4b104de8eb..c9abbbe2a4 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -86,6 +86,9 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "baz") public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java index 00ace36bcf..4382d19395 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -64,6 +64,9 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "$special[property.name]") public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java index c978964642..111dd8b504 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Tag.java @@ -69,6 +69,9 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "id") public void setId(Long id) { this.id = id; } @@ -95,6 +98,9 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "name") public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 0ef707b674..d9b1f55602 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -89,6 +89,9 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "string_item") public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -114,6 +117,9 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "number_item") public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -139,6 +145,9 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "integer_item") public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -164,6 +173,9 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "bool_item") public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -193,6 +205,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 80fb12122b..0ea1f0d748 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -94,6 +94,9 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "string_item") public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -119,6 +122,9 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "number_item") public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -144,6 +150,9 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "float_item") public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -169,6 +178,9 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "integer_item") public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -194,6 +206,9 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JacksonXmlProperty(localName = "bool_item") public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -223,6 +238,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java index d69d4cdcc2..9d5ff4191b 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/User.java @@ -99,6 +99,9 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "id") public void setId(Long id) { this.id = id; } @@ -125,6 +128,9 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "username") public void setUsername(String username) { this.username = username; } @@ -151,6 +157,9 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "firstName") public void setFirstName(String firstName) { this.firstName = firstName; } @@ -177,6 +186,9 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "lastName") public void setLastName(String lastName) { this.lastName = lastName; } @@ -203,6 +215,9 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "email") public void setEmail(String email) { this.email = email; } @@ -229,6 +244,9 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "password") public void setPassword(String password) { this.password = password; } @@ -255,6 +273,9 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "phone") public void setPhone(String phone) { this.phone = phone; } @@ -281,6 +302,9 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "userStatus") public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/XmlItem.java index 684ded6d3b..e82fc82662 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/XmlItem.java @@ -239,6 +239,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(isAttribute = true, localName = "attribute_string") public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -265,6 +268,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(isAttribute = true, localName = "attribute_number") public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -291,6 +297,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(isAttribute = true, localName = "attribute_integer") public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -317,6 +326,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(isAttribute = true, localName = "attribute_boolean") public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -352,6 +364,10 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, localName = "wrappedArray") public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -378,6 +394,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "xml_name_string") public void setNameString(String nameString) { this.nameString = nameString; } @@ -404,6 +423,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "xml_name_number") public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -430,6 +452,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "xml_name_integer") public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -456,6 +481,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "xml_name_boolean") public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -489,6 +517,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -524,6 +554,10 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName=xml_name_wrapped_array_item + @JacksonXmlElementWrapper(useWrapping = true, localName = "xml_name_wrapped_array_item") public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -550,6 +584,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "prefix_string") public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -576,6 +613,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "prefix_number") public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -602,6 +642,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "prefix_integer") public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -628,6 +671,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(localName = "prefix_boolean") public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -661,6 +707,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -696,6 +744,10 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, localName = "prefixWrappedArray") public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -722,6 +774,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://a.com/schema", localName = "namespace_string") public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -748,6 +803,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://b.com/schema", localName = "namespace_number") public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -774,6 +832,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://c.com/schema", localName = "namespace_integer") public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -800,6 +861,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://d.com/schema", localName = "namespace_boolean") public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -833,6 +897,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -868,6 +934,10 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "namespaceWrappedArray") public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -894,6 +964,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://a.com/schema", localName = "prefix_ns_string") public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -920,6 +993,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://b.com/schema", localName = "prefix_ns_number") public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -946,6 +1022,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://c.com/schema", localName = "prefix_ns_integer") public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -972,6 +1051,9 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JacksonXmlProperty(namespace="http://d.com/schema", localName = "prefix_ns_boolean") public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -1005,6 +1087,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -1040,6 +1124,10 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + // items.xmlName= + @JacksonXmlElementWrapper(useWrapping = true, namespace="http://f.com/schema", localName = "prefixNsWrappedArray") public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 366143d1fc..12d050d984 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 7a5e9587e6..e49704ab97 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8f017af350..68a308a96f 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index e442eea312..4e476cf79d 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -109,6 +109,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -142,6 +144,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -175,6 +179,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -208,6 +214,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -241,6 +249,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -274,6 +284,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -307,6 +319,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -340,6 +354,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -365,6 +381,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -390,6 +408,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -415,6 +435,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 8e85dd20fe..e1ac251828 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 50db851ff0..a12b774105 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index b6fcfc25ba..8091ce0d51 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 20bbfd1117..0b6866c4fd 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java index c33e153c75..ad0c77f2e4 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Animal.java @@ -72,6 +72,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -97,6 +99,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 459f460296..e558e02ebe 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 8becb8dd2b..fd5f507f16 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java index 8747730a9d..281f50c3fb 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -76,6 +76,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -109,6 +111,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -142,6 +146,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/BigCat.java index ccfdc5a5ec..91ebb2a767 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/BigCat.java @@ -102,6 +102,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/BigCatAllOf.java index 481e22e0df..58588f53dc 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -96,6 +96,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java index 2065be194d..db68e64729 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Capitalization.java @@ -77,6 +77,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -102,6 +104,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -127,6 +131,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -152,6 +158,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -177,6 +185,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -202,6 +212,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java index 10d8036c41..6ce1dff382 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Cat.java @@ -67,6 +67,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/CatAllOf.java index 38910bf5c6..d8513f39fd 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -57,6 +57,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java index 3737dbb3c3..32f72e70f3 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Category.java @@ -61,6 +61,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -85,6 +87,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java index 227bdaae55..1872b8ad88 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ClassModel.java @@ -58,6 +58,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java index 9fea895883..13c8982196 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Client.java @@ -57,6 +57,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java index d54ac1b7a2..5820cea9ab 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Dog.java @@ -63,6 +63,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DogAllOf.java index 449c4e6f05..26cd9000e3 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -57,6 +57,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java index 4944b28bdf..6f8c205631 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,6 +133,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -166,6 +168,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java index 7589d69aa6..38f47d5621 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java @@ -218,6 +218,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -242,6 +244,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -267,6 +271,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -292,6 +298,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -317,6 +325,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 074b99080e..fdc4c5a092 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -63,6 +63,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -96,6 +98,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java index 5f8a894641..edc70d7127 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java @@ -116,6 +116,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -143,6 +145,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -168,6 +172,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -194,6 +200,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -221,6 +229,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -248,6 +258,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -273,6 +285,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -297,6 +311,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -322,6 +338,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -346,6 +364,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -371,6 +391,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -396,6 +418,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -420,6 +444,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -445,6 +471,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java index b5921775cf..3561bb9ac0 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java @@ -115,6 +115,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -148,6 +150,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -181,6 +185,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -214,6 +220,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index dbb1682a91..f8973bf983 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -71,6 +71,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java index bc3bee0e09..21c275adfb 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Model200Response.java @@ -62,6 +62,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -87,6 +89,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 47f88db907..3800222224 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -65,6 +65,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -90,6 +92,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -115,6 +119,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java index 1b2a532f60..42f2d7dbdd 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -58,6 +58,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java index 1da9e1433c..9cbe59380f 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Name.java @@ -69,6 +69,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -110,6 +112,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java index d1f21fa594..872c450ee8 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -58,6 +58,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java index ef25685640..05f4e2d0c4 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java @@ -115,6 +115,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -140,6 +142,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -165,6 +169,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -190,6 +196,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -215,6 +223,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -240,6 +250,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java index 32db00927c..0e9854927f 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -66,6 +66,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -91,6 +93,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -116,6 +120,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java index fca1a5141d..3b5363bdd4 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java @@ -120,6 +120,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -145,6 +147,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -169,6 +173,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -198,6 +204,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -231,6 +239,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -256,6 +266,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f866409c5b..64586deb1b 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -77,6 +77,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java index 2a7c39ec8e..6116d1eed6 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -57,6 +57,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java index 9630d27224..33acaca34d 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Tag.java @@ -61,6 +61,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 5e13ac4ab7..a5086c7676 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -75,6 +75,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -99,6 +101,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -123,6 +127,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -147,6 +153,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -176,6 +184,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 7b89d392f5..a2767367b3 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -79,6 +79,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -103,6 +105,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -127,6 +131,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -151,6 +157,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -175,6 +183,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -204,6 +214,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java index ba6825df44..337d199306 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/User.java @@ -85,6 +85,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -110,6 +112,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -135,6 +139,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -160,6 +166,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -185,6 +193,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -210,6 +220,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -235,6 +247,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -260,6 +274,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/XmlItem.java index 1a621d2e71..0d54cd8ba2 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/XmlItem.java @@ -172,6 +172,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -197,6 +199,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -222,6 +226,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -247,6 +253,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -280,6 +288,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -305,6 +315,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -330,6 +342,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -355,6 +369,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -380,6 +396,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -413,6 +431,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -446,6 +466,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -471,6 +493,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -496,6 +520,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -521,6 +547,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -546,6 +574,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -579,6 +609,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -612,6 +644,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -637,6 +671,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -662,6 +698,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -687,6 +725,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -712,6 +752,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -745,6 +787,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -778,6 +822,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -803,6 +849,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -828,6 +876,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -853,6 +903,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -878,6 +930,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -911,6 +965,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -944,6 +1000,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 108c544173..08a594e8b7 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -61,6 +61,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index afd118c160..00b33e56f7 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -62,6 +62,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index c029a33139..f16149233f 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -61,6 +61,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 016851e60d..3364006115 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -111,6 +111,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -145,6 +147,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -178,6 +182,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -211,6 +217,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -245,6 +253,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -279,6 +289,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -313,6 +325,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -347,6 +361,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -372,6 +388,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -397,6 +415,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -422,6 +442,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 1749bdbab0..5487044390 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -61,6 +61,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 9641760739..d9654430b0 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -62,6 +62,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index 0919d9853c..ecd584bbbc 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -61,6 +61,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 4a37d8fd1c..bde9d0e322 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -61,6 +61,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java index 1843bdc801..f7ec58c2a9 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Animal.java @@ -75,6 +75,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -100,6 +102,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index a198249bc5..239aef2d46 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -71,6 +71,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index b9985f1bb8..80cc3e6a0d 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -71,6 +71,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java index 40ec5a9f1c..1852f67c61 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -78,6 +78,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -112,6 +114,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -146,6 +150,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java index f06ac3b65c..df20fd7133 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java @@ -104,6 +104,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCatAllOf.java index a048db4855..0691e940f1 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -98,6 +98,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java index b37ca9a306..058ff135f0 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Capitalization.java @@ -79,6 +79,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -104,6 +106,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -129,6 +133,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -154,6 +160,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -179,6 +187,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -204,6 +214,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java index daad65c924..1521a8a407 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Cat.java @@ -69,6 +69,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/CatAllOf.java index c4bb17072e..7d2d495e9a 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -59,6 +59,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java index 9cec2c4afc..2756ccae48 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Category.java @@ -63,6 +63,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -88,6 +90,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java index cca89d753f..49467dfa9c 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ClassModel.java @@ -60,6 +60,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java index ebeb9efdae..0dad5802d6 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Client.java @@ -59,6 +59,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java index e0b5ddf0b5..e24b6f0190 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Dog.java @@ -65,6 +65,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/DogAllOf.java index 76a440b0b7..d7a1d47c7e 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -59,6 +59,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java index e50eb2f3f1..52cf16722e 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -135,6 +135,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -168,6 +170,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java index ede00732dc..0074a59e8c 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java @@ -220,6 +220,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -245,6 +247,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -270,6 +274,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -295,6 +301,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -321,6 +329,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 18e35f8d43..8ef12b6dff 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -66,6 +66,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -100,6 +102,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java index 22b9369956..49adbc5c71 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java @@ -118,6 +118,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -145,6 +147,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -170,6 +174,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -198,6 +204,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -225,6 +233,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -252,6 +262,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -277,6 +289,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -302,6 +316,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -328,6 +344,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -354,6 +372,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -380,6 +400,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -406,6 +428,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -431,6 +455,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -457,6 +483,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java index 561ac6a6e4..5e4620e322 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java @@ -118,6 +118,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -151,6 +153,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -184,6 +188,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -217,6 +223,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 62a690889d..8cf0b3a111 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -74,6 +74,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -100,6 +102,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -134,6 +138,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java index 31c0cf95c4..a755b09e16 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Model200Response.java @@ -64,6 +64,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -89,6 +91,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java index dfbe3b0d9f..2d1136ae37 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -67,6 +67,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -92,6 +94,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -117,6 +121,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java index 3156ea2513..de329bf550 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -60,6 +60,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java index 8021955637..8558d8146a 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Name.java @@ -72,6 +72,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -113,6 +115,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java index 2fa9c4ee33..09ec0b08b0 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -61,6 +61,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java index a406d64c07..f4e5c1b983 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java @@ -117,6 +117,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -142,6 +144,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -167,6 +171,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -193,6 +199,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -218,6 +226,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -243,6 +253,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java index 66abc21150..2d90dad97b 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -69,6 +69,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -94,6 +96,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -119,6 +123,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java index a10d99865d..61bfc53150 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java @@ -122,6 +122,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -148,6 +150,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -173,6 +177,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -203,6 +209,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -237,6 +245,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -262,6 +272,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 6c711fd90d..f2562150a6 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -79,6 +79,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java index 2a39bcd5a7..e32d7813de 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -59,6 +59,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java index f7844afbd2..03d9a750d2 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Tag.java @@ -63,6 +63,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -88,6 +90,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 3138e14f0c..fe77cabdbf 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -78,6 +78,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -104,6 +106,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -129,6 +133,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -154,6 +160,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -184,6 +192,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 639a8335be..83ce39cd4a 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -82,6 +82,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -108,6 +110,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -133,6 +137,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -158,6 +164,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -183,6 +191,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -213,6 +223,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java index 75dbe101bd..c3f07d6054 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/User.java @@ -87,6 +87,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -112,6 +114,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -137,6 +141,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -162,6 +168,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -187,6 +195,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -212,6 +222,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -237,6 +249,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -262,6 +276,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java index e8c3b0997c..307893a3be 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/XmlItem.java @@ -174,6 +174,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -200,6 +202,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -225,6 +229,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -250,6 +256,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -283,6 +291,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -308,6 +318,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -334,6 +346,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -359,6 +373,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -384,6 +400,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -417,6 +435,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -450,6 +470,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -475,6 +497,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -501,6 +525,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -526,6 +552,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -551,6 +579,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -584,6 +614,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -617,6 +649,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -642,6 +676,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -668,6 +704,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -693,6 +731,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -718,6 +758,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -751,6 +793,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -784,6 +828,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -809,6 +855,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -835,6 +883,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -860,6 +910,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -885,6 +937,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -918,6 +972,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -951,6 +1007,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 366143d1fc..12d050d984 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 7a5e9587e6..e49704ab97 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8f017af350..68a308a96f 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 94d3394a38..450b245ab2 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -109,6 +109,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -142,6 +144,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -175,6 +179,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -208,6 +214,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -241,6 +249,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -274,6 +284,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -307,6 +319,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -340,6 +354,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -365,6 +381,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -390,6 +408,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -415,6 +435,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 8e85dd20fe..e1ac251828 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 50db851ff0..a12b774105 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index b6fcfc25ba..8091ce0d51 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 20bbfd1117..0b6866c4fd 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java index c33e153c75..ad0c77f2e4 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Animal.java @@ -72,6 +72,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -97,6 +99,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 6f7b19e3be..50ec3008bd 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 18c4a58ef9..e4bd350496 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java index 41d2808a06..e2faf5ed42 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -76,6 +76,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -109,6 +111,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -142,6 +146,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java index ccfdc5a5ec..91ebb2a767 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java @@ -102,6 +102,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCatAllOf.java index 481e22e0df..58588f53dc 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -96,6 +96,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java index 2065be194d..db68e64729 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Capitalization.java @@ -77,6 +77,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -102,6 +104,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -127,6 +131,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -152,6 +158,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -177,6 +185,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -202,6 +212,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java index 10d8036c41..6ce1dff382 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Cat.java @@ -67,6 +67,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/CatAllOf.java index 38910bf5c6..d8513f39fd 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -57,6 +57,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java index 3737dbb3c3..32f72e70f3 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Category.java @@ -61,6 +61,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -85,6 +87,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java index 227bdaae55..1872b8ad88 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ClassModel.java @@ -58,6 +58,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java index 9fea895883..13c8982196 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Client.java @@ -57,6 +57,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java index d54ac1b7a2..5820cea9ab 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Dog.java @@ -63,6 +63,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/DogAllOf.java index 449c4e6f05..26cd9000e3 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -57,6 +57,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java index 3836607265..7cdb315894 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,6 +133,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -166,6 +168,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java index 7589d69aa6..38f47d5621 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java @@ -218,6 +218,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -242,6 +244,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -267,6 +271,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -292,6 +298,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -317,6 +325,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 67596f2c9b..69eeeaea73 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -63,6 +63,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -96,6 +98,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java index a5de78e55d..106ecd7af3 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/FormatTest.java @@ -116,6 +116,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -143,6 +145,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -168,6 +172,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -194,6 +200,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -221,6 +229,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -248,6 +258,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -273,6 +285,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -297,6 +311,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -322,6 +338,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(AsyncFile binary) { this.binary = binary; } @@ -346,6 +364,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -371,6 +391,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -396,6 +418,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -420,6 +444,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -445,6 +471,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java index dc0f170c75..e795f5b836 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java @@ -115,6 +115,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -148,6 +150,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -181,6 +185,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -214,6 +220,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index ec21983721..b61d991921 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -71,6 +71,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java index bc3bee0e09..21c275adfb 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Model200Response.java @@ -62,6 +62,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -87,6 +89,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 47f88db907..3800222224 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -65,6 +65,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -90,6 +92,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -115,6 +119,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java index 1b2a532f60..42f2d7dbdd 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -58,6 +58,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java index 1da9e1433c..9cbe59380f 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Name.java @@ -69,6 +69,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -110,6 +112,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java index d1f21fa594..872c450ee8 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -58,6 +58,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java index ef25685640..05f4e2d0c4 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java @@ -115,6 +115,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -140,6 +142,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -165,6 +169,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -190,6 +196,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -215,6 +223,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -240,6 +250,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java index 32db00927c..0e9854927f 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -66,6 +66,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -91,6 +93,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -116,6 +120,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java index 457cab4ac4..8dba5c5588 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java @@ -120,6 +120,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -145,6 +147,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -169,6 +173,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -198,6 +204,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -231,6 +239,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -256,6 +266,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f866409c5b..64586deb1b 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -77,6 +77,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java index 2a7c39ec8e..6116d1eed6 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -57,6 +57,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java index 9630d27224..33acaca34d 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Tag.java @@ -61,6 +61,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 5232c14dbc..e918613f55 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -75,6 +75,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -99,6 +101,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -123,6 +127,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -147,6 +153,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -176,6 +184,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 58d82e2d6f..d718b40473 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -79,6 +79,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -103,6 +105,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -127,6 +131,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -151,6 +157,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -175,6 +183,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -204,6 +214,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java index ba6825df44..337d199306 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/User.java @@ -85,6 +85,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -110,6 +112,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -135,6 +139,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -160,6 +166,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -185,6 +193,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -210,6 +220,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -235,6 +247,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -260,6 +274,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java index a68ed7a61d..1090a5110a 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/XmlItem.java @@ -172,6 +172,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -197,6 +199,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -222,6 +226,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -247,6 +253,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -280,6 +288,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -305,6 +315,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -330,6 +342,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -355,6 +369,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -380,6 +396,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -413,6 +431,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -446,6 +466,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -471,6 +493,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -496,6 +520,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -521,6 +547,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -546,6 +574,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -579,6 +609,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -612,6 +644,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -637,6 +671,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -662,6 +698,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -687,6 +725,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -712,6 +752,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -745,6 +787,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -778,6 +822,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -803,6 +849,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -828,6 +876,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -853,6 +903,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -878,6 +930,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -911,6 +965,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -944,6 +1000,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 366143d1fc..12d050d984 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 7a5e9587e6..e49704ab97 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8f017af350..68a308a96f 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 94d3394a38..450b245ab2 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -109,6 +109,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -142,6 +144,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -175,6 +179,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -208,6 +214,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -241,6 +249,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -274,6 +284,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -307,6 +319,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -340,6 +354,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -365,6 +381,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -390,6 +408,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -415,6 +435,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 8e85dd20fe..e1ac251828 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 50db851ff0..a12b774105 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index b6fcfc25ba..8091ce0d51 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 20bbfd1117..0b6866c4fd 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java index c33e153c75..ad0c77f2e4 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Animal.java @@ -72,6 +72,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -97,6 +99,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 6f7b19e3be..50ec3008bd 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 18c4a58ef9..e4bd350496 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java index 41d2808a06..e2faf5ed42 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -76,6 +76,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -109,6 +111,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -142,6 +146,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/BigCat.java index ccfdc5a5ec..91ebb2a767 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/BigCat.java @@ -102,6 +102,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/BigCatAllOf.java index 481e22e0df..58588f53dc 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -96,6 +96,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java index 2065be194d..db68e64729 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Capitalization.java @@ -77,6 +77,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -102,6 +104,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -127,6 +131,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -152,6 +158,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -177,6 +185,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -202,6 +212,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java index 10d8036c41..6ce1dff382 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Cat.java @@ -67,6 +67,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/CatAllOf.java index 38910bf5c6..d8513f39fd 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -57,6 +57,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java index 3737dbb3c3..32f72e70f3 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Category.java @@ -61,6 +61,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -85,6 +87,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java index 227bdaae55..1872b8ad88 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ClassModel.java @@ -58,6 +58,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java index 9fea895883..13c8982196 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Client.java @@ -57,6 +57,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java index d54ac1b7a2..5820cea9ab 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Dog.java @@ -63,6 +63,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DogAllOf.java index 449c4e6f05..26cd9000e3 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -57,6 +57,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java index 3836607265..7cdb315894 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,6 +133,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -166,6 +168,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java index 7589d69aa6..38f47d5621 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java @@ -218,6 +218,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -242,6 +244,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -267,6 +271,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -292,6 +298,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -317,6 +325,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 67596f2c9b..69eeeaea73 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -63,6 +63,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -96,6 +98,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java index ef57b215bd..dd040052ec 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java @@ -116,6 +116,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -143,6 +145,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -168,6 +172,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -194,6 +200,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -221,6 +229,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -248,6 +258,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -273,6 +285,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -297,6 +311,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -322,6 +338,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(AsyncFile binary) { this.binary = binary; } @@ -346,6 +364,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -371,6 +391,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -396,6 +418,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -420,6 +444,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -445,6 +471,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java index dc0f170c75..e795f5b836 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java @@ -115,6 +115,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -148,6 +150,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -181,6 +185,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -214,6 +220,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index c674dc908b..acc0117165 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -71,6 +71,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java index bc3bee0e09..21c275adfb 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Model200Response.java @@ -62,6 +62,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -87,6 +89,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 47f88db907..3800222224 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -65,6 +65,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -90,6 +92,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -115,6 +119,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java index 1b2a532f60..42f2d7dbdd 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -58,6 +58,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java index 1da9e1433c..9cbe59380f 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Name.java @@ -69,6 +69,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -110,6 +112,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java index d1f21fa594..872c450ee8 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -58,6 +58,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java index 20ad6ca5d3..a4a01dcec7 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java @@ -115,6 +115,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -140,6 +142,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -165,6 +169,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -190,6 +196,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -215,6 +223,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -240,6 +250,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java index 32db00927c..0e9854927f 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -66,6 +66,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -91,6 +93,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -116,6 +120,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java index 457cab4ac4..8dba5c5588 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java @@ -120,6 +120,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -145,6 +147,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -169,6 +173,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -198,6 +204,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -231,6 +239,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -256,6 +266,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f866409c5b..64586deb1b 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -77,6 +77,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java index 2a7c39ec8e..6116d1eed6 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -57,6 +57,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java index 9630d27224..33acaca34d 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Tag.java @@ -61,6 +61,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 5232c14dbc..e918613f55 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -75,6 +75,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -99,6 +101,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -123,6 +127,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -147,6 +153,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -176,6 +184,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 58d82e2d6f..d718b40473 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -79,6 +79,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -103,6 +105,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -127,6 +131,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -151,6 +157,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -175,6 +183,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -204,6 +214,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java index ba6825df44..337d199306 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/User.java @@ -85,6 +85,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -110,6 +112,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -135,6 +139,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -160,6 +166,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -185,6 +193,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -210,6 +220,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -235,6 +247,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -260,6 +274,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/XmlItem.java index a68ed7a61d..1090a5110a 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/XmlItem.java @@ -172,6 +172,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -197,6 +199,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -222,6 +226,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -247,6 +253,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -280,6 +288,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -305,6 +315,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -330,6 +342,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -355,6 +369,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -380,6 +396,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -413,6 +431,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -446,6 +466,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -471,6 +493,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -496,6 +520,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -521,6 +547,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -546,6 +574,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -579,6 +609,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -612,6 +644,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -637,6 +671,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -662,6 +698,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -687,6 +725,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -712,6 +752,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -745,6 +787,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -778,6 +822,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -803,6 +849,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -828,6 +876,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -853,6 +903,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -878,6 +930,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -911,6 +965,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -944,6 +1000,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java index 366143d1fc..12d050d984 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesAnyType extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java index 7a5e9587e6..e49704ab97 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesArray extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java index 8f017af350..68a308a96f 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesBoolean extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index 94d3394a38..450b245ab2 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -109,6 +109,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapString(Map mapString) { this.mapString = mapString; } @@ -142,6 +144,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapNumber(Map mapNumber) { this.mapNumber = mapNumber; } @@ -175,6 +179,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapInteger(Map mapInteger) { this.mapInteger = mapInteger; } @@ -208,6 +214,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapBoolean(Map mapBoolean) { this.mapBoolean = mapBoolean; } @@ -241,6 +249,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayInteger(Map> mapArrayInteger) { this.mapArrayInteger = mapArrayInteger; } @@ -274,6 +284,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapArrayAnytype(Map> mapArrayAnytype) { this.mapArrayAnytype = mapArrayAnytype; } @@ -307,6 +319,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapString(Map> mapMapString) { this.mapMapString = mapMapString; } @@ -340,6 +354,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapAnytype(Map> mapMapAnytype) { this.mapMapAnytype = mapMapAnytype; } @@ -365,6 +381,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype1(Object anytype1) { this.anytype1 = anytype1; } @@ -390,6 +408,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype2(Object anytype2) { this.anytype2 = anytype2; } @@ -415,6 +435,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_ANYTYPE3) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAnytype3(Object anytype3) { this.anytype3 = anytype3; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java index 8e85dd20fe..e1ac251828 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesInteger extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java index 50db851ff0..a12b774105 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java @@ -60,6 +60,8 @@ public class AdditionalPropertiesNumber extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java index b6fcfc25ba..8091ce0d51 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesObject extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java index 20bbfd1117..0b6866c4fd 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java @@ -59,6 +59,8 @@ public class AdditionalPropertiesString extends HashMap { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java index c33e153c75..ad0c77f2e4 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Animal.java @@ -72,6 +72,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -97,6 +99,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 6f7b19e3be..50ec3008bd 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 18c4a58ef9..e4bd350496 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -68,6 +68,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java index 41d2808a06..e2faf5ed42 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -76,6 +76,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -109,6 +111,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -142,6 +146,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/BigCat.java index ccfdc5a5ec..91ebb2a767 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/BigCat.java @@ -102,6 +102,8 @@ public class BigCat extends Cat { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/BigCatAllOf.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/BigCatAllOf.java index 481e22e0df..58588f53dc 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/BigCatAllOf.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/BigCatAllOf.java @@ -96,6 +96,8 @@ public class BigCatAllOf { } + @JsonProperty(JSON_PROPERTY_KIND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setKind(KindEnum kind) { this.kind = kind; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java index 2065be194d..db68e64729 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Capitalization.java @@ -77,6 +77,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -102,6 +104,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -127,6 +131,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -152,6 +158,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -177,6 +185,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -202,6 +212,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java index 10d8036c41..6ce1dff382 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Cat.java @@ -67,6 +67,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/CatAllOf.java index 38910bf5c6..d8513f39fd 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -57,6 +57,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java index 3737dbb3c3..32f72e70f3 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Category.java @@ -61,6 +61,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -85,6 +87,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java index 227bdaae55..1872b8ad88 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ClassModel.java @@ -58,6 +58,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java index 9fea895883..13c8982196 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Client.java @@ -57,6 +57,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java index d54ac1b7a2..5820cea9ab 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Dog.java @@ -63,6 +63,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DogAllOf.java index 449c4e6f05..26cd9000e3 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -57,6 +57,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java index 3836607265..7cdb315894 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -133,6 +133,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -166,6 +168,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java index 7589d69aa6..38f47d5621 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -218,6 +218,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -242,6 +244,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -267,6 +271,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -292,6 +298,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -317,6 +325,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnum(OuterEnum outerEnum) { this.outerEnum = outerEnum; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index 67596f2c9b..69eeeaea73 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -63,6 +63,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -96,6 +98,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java index fe1790374b..ce48bf8a71 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java @@ -116,6 +116,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -143,6 +145,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -168,6 +172,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -194,6 +200,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -221,6 +229,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -248,6 +258,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -273,6 +285,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -297,6 +311,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -322,6 +338,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -346,6 +364,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -371,6 +391,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -396,6 +418,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -420,6 +444,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -445,6 +471,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BIG_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBigDecimal(BigDecimal bigDecimal) { this.bigDecimal = bigDecimal; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java index dc0f170c75..e795f5b836 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -115,6 +115,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -148,6 +150,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -181,6 +185,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -214,6 +220,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index c674dc908b..acc0117165 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -71,6 +71,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java index bc3bee0e09..21c275adfb 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Model200Response.java @@ -62,6 +62,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -87,6 +89,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 47f88db907..3800222224 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -65,6 +65,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -90,6 +92,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -115,6 +119,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java index 1b2a532f60..42f2d7dbdd 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -58,6 +58,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java index 1da9e1433c..9cbe59380f 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Name.java @@ -69,6 +69,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -110,6 +112,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java index d1f21fa594..872c450ee8 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -58,6 +58,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java index 20ad6ca5d3..a4a01dcec7 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java @@ -115,6 +115,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -140,6 +142,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -165,6 +169,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -190,6 +196,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -215,6 +223,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -240,6 +250,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java index 32db00927c..0e9854927f 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -66,6 +66,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -91,6 +93,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -116,6 +120,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java index 457cab4ac4..8dba5c5588 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java @@ -120,6 +120,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -145,6 +147,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -169,6 +173,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -198,6 +204,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; } @@ -231,6 +239,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -256,6 +266,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index f866409c5b..64586deb1b 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -77,6 +77,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java index 2a7c39ec8e..6116d1eed6 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -57,6 +57,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java index 9630d27224..33acaca34d 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Tag.java @@ -61,6 +61,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderDefault.java index 5232c14dbc..e918613f55 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderDefault.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderDefault.java @@ -75,6 +75,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -99,6 +101,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -123,6 +127,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -147,6 +153,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -176,6 +184,8 @@ public class TypeHolderDefault { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderExample.java index 58d82e2d6f..d718b40473 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderExample.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderExample.java @@ -79,6 +79,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_STRING_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -103,6 +105,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_NUMBER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -127,6 +131,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_FLOAT_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -151,6 +157,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_INTEGER_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -175,6 +183,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_BOOL_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -204,6 +214,8 @@ public class TypeHolderExample { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java index ba6825df44..337d199306 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/User.java @@ -85,6 +85,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -110,6 +112,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -135,6 +139,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -160,6 +166,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -185,6 +193,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -210,6 +220,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -235,6 +247,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -260,6 +274,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/XmlItem.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/XmlItem.java index a68ed7a61d..1090a5110a 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/XmlItem.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/XmlItem.java @@ -172,6 +172,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeString(String attributeString) { this.attributeString = attributeString; } @@ -197,6 +199,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeNumber(BigDecimal attributeNumber) { this.attributeNumber = attributeNumber; } @@ -222,6 +226,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeInteger(Integer attributeInteger) { this.attributeInteger = attributeInteger; } @@ -247,6 +253,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setAttributeBoolean(Boolean attributeBoolean) { this.attributeBoolean = attributeBoolean; } @@ -280,6 +288,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setWrappedArray(List wrappedArray) { this.wrappedArray = wrappedArray; } @@ -305,6 +315,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameString(String nameString) { this.nameString = nameString; } @@ -330,6 +342,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameNumber(BigDecimal nameNumber) { this.nameNumber = nameNumber; } @@ -355,6 +369,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameInteger(Integer nameInteger) { this.nameInteger = nameInteger; } @@ -380,6 +396,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameBoolean(Boolean nameBoolean) { this.nameBoolean = nameBoolean; } @@ -413,6 +431,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameArray(List nameArray) { this.nameArray = nameArray; } @@ -446,6 +466,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNameWrappedArray(List nameWrappedArray) { this.nameWrappedArray = nameWrappedArray; } @@ -471,6 +493,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixString(String prefixString) { this.prefixString = prefixString; } @@ -496,6 +520,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNumber(BigDecimal prefixNumber) { this.prefixNumber = prefixNumber; } @@ -521,6 +547,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixInteger(Integer prefixInteger) { this.prefixInteger = prefixInteger; } @@ -546,6 +574,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixBoolean(Boolean prefixBoolean) { this.prefixBoolean = prefixBoolean; } @@ -579,6 +609,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixArray(List prefixArray) { this.prefixArray = prefixArray; } @@ -612,6 +644,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixWrappedArray(List prefixWrappedArray) { this.prefixWrappedArray = prefixWrappedArray; } @@ -637,6 +671,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceString(String namespaceString) { this.namespaceString = namespaceString; } @@ -662,6 +698,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceNumber(BigDecimal namespaceNumber) { this.namespaceNumber = namespaceNumber; } @@ -687,6 +725,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceInteger(Integer namespaceInteger) { this.namespaceInteger = namespaceInteger; } @@ -712,6 +752,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceBoolean(Boolean namespaceBoolean) { this.namespaceBoolean = namespaceBoolean; } @@ -745,6 +787,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceArray(List namespaceArray) { this.namespaceArray = namespaceArray; } @@ -778,6 +822,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNamespaceWrappedArray(List namespaceWrappedArray) { this.namespaceWrappedArray = namespaceWrappedArray; } @@ -803,6 +849,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsString(String prefixNsString) { this.prefixNsString = prefixNsString; } @@ -828,6 +876,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsNumber(BigDecimal prefixNsNumber) { this.prefixNsNumber = prefixNsNumber; } @@ -853,6 +903,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsInteger(Integer prefixNsInteger) { this.prefixNsInteger = prefixNsInteger; } @@ -878,6 +930,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsBoolean(Boolean prefixNsBoolean) { this.prefixNsBoolean = prefixNsBoolean; } @@ -911,6 +965,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsArray(List prefixNsArray) { this.prefixNsArray = prefixNsArray; } @@ -944,6 +1000,8 @@ public class XmlItem { } + @JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPrefixNsWrappedArray(List prefixNsWrappedArray) { this.prefixNsWrappedArray = prefixNsWrappedArray; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java index 8649a7b93c..ca164bce11 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchema.java @@ -70,6 +70,8 @@ public class ChildSchema extends Parent { } + @JsonProperty(JSON_PROPERTY_PROP1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProp1(String prop1) { this.prop1 = prop1; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchemaAllOf.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchemaAllOf.java index a0db494b2a..bbe43353af 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchemaAllOf.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/ChildSchemaAllOf.java @@ -59,6 +59,8 @@ public class ChildSchemaAllOf { } + @JsonProperty(JSON_PROPERTY_PROP1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProp1(String prop1) { this.prop1 = prop1; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java index 247c156a38..18cb4e2b77 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharacters.java @@ -71,6 +71,8 @@ public class MySchemaNameCharacters extends Parent { } + @JsonProperty(JSON_PROPERTY_PROP2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProp2(String prop2) { this.prop2 = prop2; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharactersAllOf.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharactersAllOf.java index 6cefaff7a8..3e78f03ba5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharactersAllOf.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/MySchemaNameCharactersAllOf.java @@ -59,6 +59,8 @@ public class MySchemaNameCharactersAllOf { } + @JsonProperty(JSON_PROPERTY_PROP2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProp2(String prop2) { this.prop2 = prop2; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java index 2a382d5f2a..008063a380 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-special-characters/src/main/java/org/openapitools/client/model/Parent.java @@ -69,6 +69,8 @@ public class Parent { } + @JsonProperty(JSON_PROPERTY_OBJECT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setObjectType(String objectType) { this.objectType = objectType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index f7c18aae8b..5742109fbf 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -101,6 +101,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(Map mapProperty) { this.mapProperty = mapProperty; } @@ -133,6 +135,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } @@ -191,6 +195,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; } @@ -215,6 +221,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; } @@ -247,6 +255,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; } @@ -271,6 +281,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmptyMap(Object emptyMap) { this.emptyMap = emptyMap; } @@ -303,6 +315,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java index f15b1a4c09..ead45b4951 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Animal.java @@ -72,6 +72,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -96,6 +98,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java index 118f51be93..1cfd08ffe5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Apple.java @@ -63,6 +63,8 @@ public class Apple { } + @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCultivar(String cultivar) { this.cultivar = cultivar; } @@ -87,6 +89,8 @@ public class Apple { } + @JsonProperty(JSON_PROPERTY_ORIGIN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrigin(String origin) { this.origin = origin; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java index 3e3ccfe74a..8c5aa5beae 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/AppleReq.java @@ -62,6 +62,8 @@ public class AppleReq { } + @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCultivar(String cultivar) { this.cultivar = cultivar; } @@ -86,6 +88,8 @@ public class AppleReq { } + @JsonProperty(JSON_PROPERTY_MEALY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMealy(Boolean mealy) { this.mealy = mealy; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 9e5c4c6492..5d3b478c12 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -70,6 +70,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 45fd7829c9..b59275573c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -70,6 +70,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java index db796d93d4..db2613ad80 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -78,6 +78,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -110,6 +112,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -142,6 +146,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java index 41b4adf25c..371ea4b7ab 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Banana.java @@ -60,6 +60,8 @@ public class Banana { } + @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLengthCm(BigDecimal lengthCm) { this.lengthCm = lengthCm; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java index a25e9a0708..b696b954ff 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BananaReq.java @@ -63,6 +63,8 @@ public class BananaReq { } + @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setLengthCm(BigDecimal lengthCm) { this.lengthCm = lengthCm; } @@ -87,6 +89,8 @@ public class BananaReq { } + @JsonProperty(JSON_PROPERTY_SWEET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSweet(Boolean sweet) { this.sweet = sweet; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java index 96aff9e86b..735761a713 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BasquePig.java @@ -58,6 +58,8 @@ public class BasquePig { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java index e368f955e7..eea6cd4b4f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Capitalization.java @@ -79,6 +79,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -103,6 +105,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -127,6 +131,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -151,6 +157,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -175,6 +183,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -199,6 +209,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java index 387d3e0895..a7d98f00fc 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Cat.java @@ -69,6 +69,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java index 54e6b24cdb..298ba7d9b4 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -59,6 +59,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java index ea4ceb96ec..d2881dac7b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Category.java @@ -63,6 +63,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java index ad00f5688d..4fa8971f68 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCat.java @@ -75,6 +75,8 @@ public class ChildCat extends ParentPet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } @@ -106,6 +108,8 @@ public class ChildCat extends ParentPet { } + @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPetType(String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCatAllOf.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCatAllOf.java index 1f574138ba..e3c02bced7 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCatAllOf.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ChildCatAllOf.java @@ -65,6 +65,8 @@ public class ChildCatAllOf { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } @@ -97,6 +99,8 @@ public class ChildCatAllOf { } + @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetType(String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java index 700ba2f17b..340fb74689 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ClassModel.java @@ -60,6 +60,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java index e7c0e00398..2535057113 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Client.java @@ -59,6 +59,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index 347f19a0db..20ec570e92 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -68,6 +68,8 @@ public class ComplexQuadrilateral { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } @@ -91,6 +93,8 @@ public class ComplexQuadrilateral { } + @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java index dae0379e10..fe4bfcddc6 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DanishPig.java @@ -58,6 +58,8 @@ public class DanishPig { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java index 91826dae78..da3756797a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Dog.java @@ -69,6 +69,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java index 086058c0a7..06b4ea8575 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -59,6 +59,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java index b985283f69..d0f7d455d5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Drawing.java @@ -84,6 +84,8 @@ public class Drawing { } + @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMainShape(Shape mainShape) { this.mainShape = mainShape; } @@ -108,6 +110,8 @@ public class Drawing { } + @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShapeOrNull(ShapeOrNull shapeOrNull) { this.shapeOrNull = shapeOrNull; } @@ -174,6 +178,8 @@ public class Drawing { } + @JsonProperty(JSON_PROPERTY_SHAPES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShapes(List shapes) { this.shapes = shapes; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java index 3ec9f89157..d381b594cb 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -135,6 +135,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -167,6 +169,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java index fa8a505785..34a92c6d98 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java @@ -238,6 +238,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -261,6 +263,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -285,6 +289,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -309,6 +315,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -367,6 +375,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } @@ -391,6 +401,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } @@ -415,6 +427,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index e5132c8288..fa40ab3625 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -68,6 +68,8 @@ public class EquilateralTriangle { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } @@ -91,6 +93,8 @@ public class EquilateralTriangle { } + @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index c60d469c29..2673c8add9 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -65,6 +65,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -97,6 +99,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java index 9977684225..682c4206b1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Foo.java @@ -59,6 +59,8 @@ public class Foo { } + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(String bar) { this.bar = bar; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java index 5b6e671268..9d60965ce1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java @@ -126,6 +126,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -152,6 +154,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -176,6 +180,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -201,6 +207,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -227,6 +235,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -253,6 +263,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -277,6 +289,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(BigDecimal decimal) { this.decimal = decimal; } @@ -301,6 +315,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -324,6 +340,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -348,6 +366,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -371,6 +391,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -395,6 +417,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -419,6 +443,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -442,6 +468,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -466,6 +494,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(String patternWithDigits) { this.patternWithDigits = patternWithDigits; } @@ -490,6 +520,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index 0dbfc1f372..6e75fb4994 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -68,6 +68,8 @@ public class GrandparentAnimal { } + @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPetType(String petType) { this.petType = petType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/InlineResponseDefault.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/InlineResponseDefault.java index 0295c474b2..6fdfc79b24 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/InlineResponseDefault.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/InlineResponseDefault.java @@ -60,6 +60,8 @@ public class InlineResponseDefault { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(Foo string) { this.string = string; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index de8014802d..2a7d7601b7 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -64,6 +64,8 @@ public class IsoscelesTriangle { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } @@ -87,6 +89,8 @@ public class IsoscelesTriangle { } + @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java index 82b4577794..37569ca750 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java @@ -117,6 +117,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -149,6 +151,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -181,6 +185,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -213,6 +219,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 1391207e42..4190273073 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -73,6 +73,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -97,6 +99,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -129,6 +133,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java index 6f8ab9af77..fc03371ca8 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Model200Response.java @@ -64,6 +64,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -88,6 +90,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java index 6fca2b9dcb..84a4c7c827 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -67,6 +67,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -91,6 +93,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -115,6 +119,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java index 00ca275480..6c3ed4c8a6 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -60,6 +60,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java index 40e242f6ab..ca44ae5d29 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Name.java @@ -71,6 +71,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -111,6 +113,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java index 6590e16717..2ee8e3a995 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableClass.java @@ -421,6 +421,8 @@ public class NullableClass { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } @@ -545,6 +547,8 @@ public class NullableClass { } + @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java index bfb345fc28..ed004b9d1f 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -60,6 +60,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java index 712287864f..303b679084 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java @@ -117,6 +117,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -141,6 +143,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -165,6 +169,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -189,6 +195,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -213,6 +221,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -237,6 +247,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java index f1425c4a84..1635472a57 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -68,6 +68,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -92,6 +94,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -116,6 +120,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java index e9f52ee0bb..497d26e926 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java @@ -120,6 +120,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -144,6 +146,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -167,6 +171,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -195,6 +201,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } @@ -227,6 +235,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -251,6 +261,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 159eb44225..0b5449840b 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -58,6 +58,8 @@ public class QuadrilateralInterface { } + @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 22495675cc..dd49c31a87 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -79,6 +79,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index 6508911dad..3cafdccd4a 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -68,6 +68,8 @@ public class ScaleneTriangle { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } @@ -91,6 +93,8 @@ public class ScaleneTriangle { } + @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java index e44301b8d3..a028ac1cf8 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -58,6 +58,8 @@ public class ShapeInterface { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index a665d55be0..b8330e16c5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -68,6 +68,8 @@ public class SimpleQuadrilateral { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } @@ -91,6 +93,8 @@ public class SimpleQuadrilateral { } + @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java index 3adc9c06ff..e2a554aed5 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -63,6 +63,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java index 9080c1b7b2..d249df2c14 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Tag.java @@ -63,6 +63,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -87,6 +89,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java index aee2904c27..bdbf09b82e 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -58,6 +58,8 @@ public class TriangleInterface { } + @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java index 3425d0068b..0c27f6fba9 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/User.java @@ -106,6 +106,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -130,6 +132,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -154,6 +158,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -178,6 +184,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -202,6 +210,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -226,6 +236,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -250,6 +262,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -274,6 +288,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } @@ -298,6 +314,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setObjectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java index ad576f5040..b0aae482e1 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Whale.java @@ -67,6 +67,8 @@ public class Whale { } + @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasBaleen(Boolean hasBaleen) { this.hasBaleen = hasBaleen; } @@ -91,6 +93,8 @@ public class Whale { } + @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasTeeth(Boolean hasTeeth) { this.hasTeeth = hasTeeth; } @@ -114,6 +118,8 @@ public class Whale { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java index 302896e9d9..9d68fc3c08 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java @@ -104,6 +104,8 @@ public class Zebra { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(TypeEnum type) { this.type = type; } @@ -127,6 +129,8 @@ public class Zebra { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index b1835800fe..d171e2cb56 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -100,6 +100,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapProperty(Map mapProperty) { this.mapProperty = mapProperty; } @@ -132,6 +134,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfMapProperty(Map> mapOfMapProperty) { this.mapOfMapProperty = mapOfMapProperty; } @@ -190,6 +194,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE1) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype1(Object mapWithUndeclaredPropertiesAnytype1) { this.mapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1; } @@ -214,6 +220,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE2) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype2(Object mapWithUndeclaredPropertiesAnytype2) { this.mapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2; } @@ -246,6 +254,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_ANYTYPE3) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesAnytype3(Map mapWithUndeclaredPropertiesAnytype3) { this.mapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3; } @@ -270,6 +280,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_EMPTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmptyMap(Object emptyMap) { this.emptyMap = emptyMap; } @@ -302,6 +314,8 @@ public class AdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP_WITH_UNDECLARED_PROPERTIES_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapWithUndeclaredPropertiesString(Map mapWithUndeclaredPropertiesString) { this.mapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java index da55b93aa9..80071f7afc 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Animal.java @@ -72,6 +72,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } @@ -96,6 +98,8 @@ public class Animal { } + @JsonProperty(JSON_PROPERTY_COLOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setColor(String color) { this.color = color; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java index 6c1478e43d..d9b3a291f4 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Apple.java @@ -62,6 +62,8 @@ public class Apple { } + @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCultivar(String cultivar) { this.cultivar = cultivar; } @@ -86,6 +88,8 @@ public class Apple { } + @JsonProperty(JSON_PROPERTY_ORIGIN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOrigin(String origin) { this.origin = origin; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java index 3465237290..e29d322a2f 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/AppleReq.java @@ -61,6 +61,8 @@ public class AppleReq { } + @JsonProperty(JSON_PROPERTY_CULTIVAR) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setCultivar(String cultivar) { this.cultivar = cultivar; } @@ -85,6 +87,8 @@ public class AppleReq { } + @JsonProperty(JSON_PROPERTY_MEALY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMealy(Boolean mealy) { this.mealy = mealy; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 860c18706c..6dad127d9e 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -69,6 +69,8 @@ public class ArrayOfArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayNumber(List> arrayArrayNumber) { this.arrayArrayNumber = arrayArrayNumber; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 5dd051776b..5e59c851d5 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -69,6 +69,8 @@ public class ArrayOfNumberOnly { } + @JsonProperty(JSON_PROPERTY_ARRAY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayNumber(List arrayNumber) { this.arrayNumber = arrayNumber; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java index b09abe37ab..a3aef6b1ba 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -77,6 +77,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayOfString(List arrayOfString) { this.arrayOfString = arrayOfString; } @@ -109,6 +111,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfInteger(List> arrayArrayOfInteger) { this.arrayArrayOfInteger = arrayArrayOfInteger; } @@ -141,6 +145,8 @@ public class ArrayTest { } + @JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayArrayOfModel(List> arrayArrayOfModel) { this.arrayArrayOfModel = arrayArrayOfModel; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java index 35b85be309..73dae081b0 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Banana.java @@ -59,6 +59,8 @@ public class Banana { } + @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLengthCm(BigDecimal lengthCm) { this.lengthCm = lengthCm; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java index 4120e70396..b28694354f 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/BananaReq.java @@ -62,6 +62,8 @@ public class BananaReq { } + @JsonProperty(JSON_PROPERTY_LENGTH_CM) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setLengthCm(BigDecimal lengthCm) { this.lengthCm = lengthCm; } @@ -86,6 +88,8 @@ public class BananaReq { } + @JsonProperty(JSON_PROPERTY_SWEET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSweet(Boolean sweet) { this.sweet = sweet; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java index 10493a5bd7..f16dc5276f 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/BasquePig.java @@ -57,6 +57,8 @@ public class BasquePig { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java index 4da743b78d..89294f5ef6 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Capitalization.java @@ -78,6 +78,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallCamel(String smallCamel) { this.smallCamel = smallCamel; } @@ -102,6 +104,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalCamel(String capitalCamel) { this.capitalCamel = capitalCamel; } @@ -126,6 +130,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SMALL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setSmallSnake(String smallSnake) { this.smallSnake = smallSnake; } @@ -150,6 +156,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCapitalSnake(String capitalSnake) { this.capitalSnake = capitalSnake; } @@ -174,6 +182,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setScAETHFlowPoints(String scAETHFlowPoints) { this.scAETHFlowPoints = scAETHFlowPoints; } @@ -198,6 +208,8 @@ public class Capitalization { } + @JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setATTNAME(String ATT_NAME) { this.ATT_NAME = ATT_NAME; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java index 2c083528d4..ddecc54736 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Cat.java @@ -65,6 +65,8 @@ public class Cat extends Animal { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java index af37ad9146..39934c2a02 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/CatAllOf.java @@ -58,6 +58,8 @@ public class CatAllOf { } + @JsonProperty(JSON_PROPERTY_DECLAWED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDeclawed(Boolean declawed) { this.declawed = declawed; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java index f1a4238c81..fe296c3978 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Category.java @@ -62,6 +62,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -85,6 +87,8 @@ public class Category { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java index ff7a2fb93c..5e00106b04 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCat.java @@ -71,6 +71,8 @@ public class ChildCat extends ParentPet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } @@ -102,6 +104,8 @@ public class ChildCat extends ParentPet { } + @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPetType(String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCatAllOf.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCatAllOf.java index 137c993c14..7168d83071 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCatAllOf.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ChildCatAllOf.java @@ -64,6 +64,8 @@ public class ChildCatAllOf { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } @@ -96,6 +98,8 @@ public class ChildCatAllOf { } + @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetType(String petType) { if (!PET_TYPE_VALUES.contains(petType)) { throw new IllegalArgumentException(petType + " is invalid. Possible values for petType: " + String.join(", ", PET_TYPE_VALUES)); diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java index ff5e51b537..df97250205 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ClassModel.java @@ -59,6 +59,8 @@ public class ClassModel { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java index a40e13f114..c6bdbf4ba6 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Client.java @@ -58,6 +58,8 @@ public class Client { } + @JsonProperty(JSON_PROPERTY_CLIENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setClient(String client) { this.client = client; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java index 6d06b89687..677f95d92a 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ComplexQuadrilateral.java @@ -63,6 +63,8 @@ public class ComplexQuadrilateral { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } @@ -86,6 +88,8 @@ public class ComplexQuadrilateral { } + @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java index 65048aebf2..dd8638e933 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/DanishPig.java @@ -57,6 +57,8 @@ public class DanishPig { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java index 879ea4f06a..9baad459f3 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Dog.java @@ -65,6 +65,8 @@ public class Dog extends Animal { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java index 060cba32d7..d553743634 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/DogAllOf.java @@ -58,6 +58,8 @@ public class DogAllOf { } + @JsonProperty(JSON_PROPERTY_BREED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBreed(String breed) { this.breed = breed; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java index 7700a65f0a..213c4d548c 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Drawing.java @@ -85,6 +85,8 @@ public class Drawing extends HashMap { } + @JsonProperty(JSON_PROPERTY_MAIN_SHAPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMainShape(Shape mainShape) { this.mainShape = mainShape; } @@ -109,6 +111,8 @@ public class Drawing extends HashMap { } + @JsonProperty(JSON_PROPERTY_SHAPE_OR_NULL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShapeOrNull(ShapeOrNull shapeOrNull) { this.shapeOrNull = shapeOrNull; } @@ -175,6 +179,8 @@ public class Drawing extends HashMap { } + @JsonProperty(JSON_PROPERTY_SHAPES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShapes(List shapes) { this.shapes = shapes; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java index 2c4ce14fb6..cc9944eec5 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -134,6 +134,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_JUST_SYMBOL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustSymbol(JustSymbolEnum justSymbol) { this.justSymbol = justSymbol; } @@ -166,6 +168,8 @@ public class EnumArrays { } + @JsonProperty(JSON_PROPERTY_ARRAY_ENUM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayEnum(List arrayEnum) { this.arrayEnum = arrayEnum; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java index c9044c108e..acb175acad 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java @@ -237,6 +237,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumString(EnumStringEnum enumString) { this.enumString = enumString; } @@ -260,6 +262,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } @@ -284,6 +288,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumInteger(EnumIntegerEnum enumInteger) { this.enumInteger = enumInteger; } @@ -308,6 +314,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_ENUM_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEnumNumber(EnumNumberEnum enumNumber) { this.enumNumber = enumNumber; } @@ -366,6 +374,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) { this.outerEnumInteger = outerEnumInteger; } @@ -390,6 +400,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) { this.outerEnumDefaultValue = outerEnumDefaultValue; } @@ -414,6 +426,8 @@ public class EnumTest { } + @JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) { this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java index c511d7fc5b..305080c8f4 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/EquilateralTriangle.java @@ -63,6 +63,8 @@ public class EquilateralTriangle { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } @@ -86,6 +88,8 @@ public class EquilateralTriangle { } + @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java index fa93bc70d1..74e4a914ed 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/FileSchemaTestClass.java @@ -64,6 +64,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFile(java.io.File file) { this.file = file; } @@ -96,6 +98,8 @@ public class FileSchemaTestClass { } + @JsonProperty(JSON_PROPERTY_FILES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFiles(List files) { this.files = files; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java index 3e6bc4b811..f5e65c3424 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Foo.java @@ -58,6 +58,8 @@ public class Foo { } + @JsonProperty(JSON_PROPERTY_BAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBar(String bar) { this.bar = bar; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java index 9db0e43e53..aaac8077f8 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/FormatTest.java @@ -125,6 +125,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INTEGER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInteger(Integer integer) { this.integer = integer; } @@ -151,6 +153,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT32) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt32(Integer int32) { this.int32 = int32; } @@ -175,6 +179,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_INT64) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setInt64(Long int64) { this.int64 = int64; } @@ -200,6 +206,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setNumber(BigDecimal number) { this.number = number; } @@ -226,6 +234,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_FLOAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFloat(Float _float) { this._float = _float; } @@ -252,6 +262,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DOUBLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDouble(Double _double) { this._double = _double; } @@ -276,6 +288,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DECIMAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDecimal(BigDecimal decimal) { this.decimal = decimal; } @@ -300,6 +314,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(String string) { this.string = string; } @@ -323,6 +339,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BYTE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setByte(byte[] _byte) { this._byte = _byte; } @@ -347,6 +365,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_BINARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBinary(File binary) { this.binary = binary; } @@ -370,6 +390,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setDate(LocalDate date) { this.date = date; } @@ -394,6 +416,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -418,6 +442,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -441,6 +467,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPassword(String password) { this.password = password; } @@ -465,6 +493,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigits(String patternWithDigits) { this.patternWithDigits = patternWithDigits; } @@ -489,6 +519,8 @@ public class FormatTest { } + @JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) { this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java index a3c1c044c1..7903b39c21 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/GrandparentAnimal.java @@ -68,6 +68,8 @@ public class GrandparentAnimal { } + @JsonProperty(JSON_PROPERTY_PET_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPetType(String petType) { this.petType = petType; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/InlineResponseDefault.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/InlineResponseDefault.java index 4c22bc1d0f..b8bdb14abc 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/InlineResponseDefault.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/InlineResponseDefault.java @@ -59,6 +59,8 @@ public class InlineResponseDefault { } + @JsonProperty(JSON_PROPERTY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setString(Foo string) { this.string = string; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java index 7809e07e76..8c486642cd 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/IsoscelesTriangle.java @@ -63,6 +63,8 @@ public class IsoscelesTriangle { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } @@ -86,6 +88,8 @@ public class IsoscelesTriangle { } + @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java index 1ff1ae445c..10f46d27b3 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java @@ -116,6 +116,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapMapOfString(Map> mapMapOfString) { this.mapMapOfString = mapMapOfString; } @@ -148,6 +150,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMapOfEnumString(Map mapOfEnumString) { this.mapOfEnumString = mapOfEnumString; } @@ -180,6 +184,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_DIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDirectMap(Map directMap) { this.directMap = directMap; } @@ -212,6 +218,8 @@ public class MapTest { } + @JsonProperty(JSON_PROPERTY_INDIRECT_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setIndirectMap(Map indirectMap) { this.indirectMap = indirectMap; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index c91a532ffc..da802dcc32 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -72,6 +72,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_UUID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUuid(UUID uuid) { this.uuid = uuid; } @@ -96,6 +98,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setDateTime(OffsetDateTime dateTime) { this.dateTime = dateTime; } @@ -128,6 +132,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass { } + @JsonProperty(JSON_PROPERTY_MAP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMap(Map map) { this.map = map; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java index 8e1acacf84..95ce97e156 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Model200Response.java @@ -63,6 +63,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(Integer name) { this.name = name; } @@ -87,6 +89,8 @@ public class Model200Response { } + @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPropertyClass(String propertyClass) { this.propertyClass = propertyClass; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java index a63ab625f4..5def3f4a8d 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -66,6 +66,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCode(Integer code) { this.code = code; } @@ -90,6 +92,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(String type) { this.type = type; } @@ -114,6 +118,8 @@ public class ModelApiResponse { } + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMessage(String message) { this.message = message; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java index e21f0de493..9640108d1b 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -59,6 +59,8 @@ public class ModelReturn { } + @JsonProperty(JSON_PROPERTY_RETURN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setReturn(Integer _return) { this._return = _return; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java index 593d51abdc..be9bc6b0f3 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Name.java @@ -70,6 +70,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(Integer name) { this.name = name; } @@ -110,6 +112,8 @@ public class Name { } + @JsonProperty(JSON_PROPERTY_PROPERTY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setProperty(String property) { this.property = property; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java index ceb0f0a047..ae35e6746a 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableClass.java @@ -420,6 +420,8 @@ public class NullableClass extends HashMap { } + @JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setArrayItemsNullable(List arrayItemsNullable) { this.arrayItemsNullable = arrayItemsNullable; } @@ -544,6 +546,8 @@ public class NullableClass extends HashMap { } + @JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE) + @JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS) public void setObjectItemsNullable(Map objectItemsNullable) { this.objectItemsNullable = objectItemsNullable; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java index 6f773769cd..296aeb125a 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -59,6 +59,8 @@ public class NumberOnly { } + @JsonProperty(JSON_PROPERTY_JUST_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setJustNumber(BigDecimal justNumber) { this.justNumber = justNumber; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java index 65c7c987b2..05eacb91b5 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java @@ -116,6 +116,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -140,6 +142,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_PET_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPetId(Long petId) { this.petId = petId; } @@ -164,6 +168,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setQuantity(Integer quantity) { this.quantity = quantity; } @@ -188,6 +194,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_SHIP_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setShipDate(OffsetDateTime shipDate) { this.shipDate = shipDate; } @@ -212,6 +220,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } @@ -236,6 +246,8 @@ public class Order { } + @JsonProperty(JSON_PROPERTY_COMPLETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setComplete(Boolean complete) { this.complete = complete; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java index 55f9a849d0..2ff2cfeb31 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -67,6 +67,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyNumber(BigDecimal myNumber) { this.myNumber = myNumber; } @@ -91,6 +93,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyString(String myString) { this.myString = myString; } @@ -115,6 +119,8 @@ public class OuterComposite { } + @JsonProperty(JSON_PROPERTY_MY_BOOLEAN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setMyBoolean(Boolean myBoolean) { this.myBoolean = myBoolean; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java index 8cd069ec44..2b182915ea 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java @@ -119,6 +119,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -143,6 +145,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setCategory(Category category) { this.category = category; } @@ -166,6 +170,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setName(String name) { this.name = name; } @@ -194,6 +200,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_PHOTO_URLS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setPhotoUrls(List photoUrls) { this.photoUrls = photoUrls; } @@ -226,6 +234,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_TAGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setTags(List tags) { this.tags = tags; } @@ -250,6 +260,8 @@ public class Pet { } + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setStatus(StatusEnum status) { this.status = status; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java index 78fe41f388..759768fa2a 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/QuadrilateralInterface.java @@ -57,6 +57,8 @@ public class QuadrilateralInterface { } + @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 2546ab88fe..f36aeefc3b 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -78,6 +78,8 @@ public class ReadOnlyFirst { } + @JsonProperty(JSON_PROPERTY_BAZ) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setBaz(String baz) { this.baz = baz; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java index e4794ac041..622e32fb98 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ScaleneTriangle.java @@ -63,6 +63,8 @@ public class ScaleneTriangle { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } @@ -86,6 +88,8 @@ public class ScaleneTriangle { } + @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java index ce6ad1cb42..f95577d668 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeInterface.java @@ -57,6 +57,8 @@ public class ShapeInterface { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java index 367fb6cf38..dc2eb7a181 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/SimpleQuadrilateral.java @@ -63,6 +63,8 @@ public class SimpleQuadrilateral { } + @JsonProperty(JSON_PROPERTY_SHAPE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setShapeType(String shapeType) { this.shapeType = shapeType; } @@ -86,6 +88,8 @@ public class SimpleQuadrilateral { } + @JsonProperty(JSON_PROPERTY_QUADRILATERAL_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setQuadrilateralType(String quadrilateralType) { this.quadrilateralType = quadrilateralType; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java index cabc24f175..139664c4d8 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -62,6 +62,8 @@ public class SpecialModelName { } + @JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void set$SpecialPropertyName(Long $specialPropertyName) { this.$specialPropertyName = $specialPropertyName; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java index cc3be48e60..d376bd2485 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Tag.java @@ -62,6 +62,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -86,6 +88,8 @@ public class Tag { } + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setName(String name) { this.name = name; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java index 3ae615921b..6d952436ca 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/TriangleInterface.java @@ -57,6 +57,8 @@ public class TriangleInterface { } + @JsonProperty(JSON_PROPERTY_TRIANGLE_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setTriangleType(String triangleType) { this.triangleType = triangleType; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java index 148c8abb10..a591269f00 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/User.java @@ -105,6 +105,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setId(Long id) { this.id = id; } @@ -129,6 +131,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USERNAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUsername(String username) { this.username = username; } @@ -153,6 +157,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFirstName(String firstName) { this.firstName = firstName; } @@ -177,6 +183,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setLastName(String lastName) { this.lastName = lastName; } @@ -201,6 +209,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEmail(String email) { this.email = email; } @@ -225,6 +235,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PASSWORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPassword(String password) { this.password = password; } @@ -249,6 +261,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setPhone(String phone) { this.phone = phone; } @@ -273,6 +287,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_USER_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setUserStatus(Integer userStatus) { this.userStatus = userStatus; } @@ -297,6 +313,8 @@ public class User { } + @JsonProperty(JSON_PROPERTY_OBJECT_WITH_NO_DECLARED_PROPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setObjectWithNoDeclaredProps(Object objectWithNoDeclaredProps) { this.objectWithNoDeclaredProps = objectWithNoDeclaredProps; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java index 99d1f93e56..d31273aefe 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Whale.java @@ -66,6 +66,8 @@ public class Whale { } + @JsonProperty(JSON_PROPERTY_HAS_BALEEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasBaleen(Boolean hasBaleen) { this.hasBaleen = hasBaleen; } @@ -90,6 +92,8 @@ public class Whale { } + @JsonProperty(JSON_PROPERTY_HAS_TEETH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setHasTeeth(Boolean hasTeeth) { this.hasTeeth = hasTeeth; } @@ -113,6 +117,8 @@ public class Whale { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; } diff --git a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java index d32505c2b8..27f68f6a39 100644 --- a/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/openapi3/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java @@ -105,6 +105,8 @@ public class Zebra extends HashMap { } + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setType(TypeEnum type) { this.type = type; } @@ -128,6 +130,8 @@ public class Zebra extends HashMap { } + @JsonProperty(JSON_PROPERTY_CLASS_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setClassName(String className) { this.className = className; }