From 7c652676aa6b5dfa26adb96049e799b228493ddb Mon Sep 17 00:00:00 2001 From: Frode Oldervoll Date: Thu, 2 Nov 2023 12:09:18 +0100 Subject: [PATCH 1/2] Use Jackson Annotations for getters and setters also for Micronaut Serde --- .../resources/java-micronaut/common/model/pojo.mustache | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/java-micronaut/common/model/pojo.mustache b/modules/openapi-generator/src/main/resources/java-micronaut/common/model/pojo.mustache index 335a539963f2..ae2dcfc251a2 100644 --- a/modules/openapi-generator/src/main/resources/java-micronaut/common/model/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/java-micronaut/common/model/pojo.mustache @@ -199,8 +199,7 @@ Declare the class with extends and implements {{!unannotated, Jackson would pick this up automatically and add it *in addition* to the _JsonNullable getter field}} @JsonIgnore {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^vendorExtensions.x-is-jackson-optional-nullable}} - {{#jackson}} -{{>common/model/jackson_annotations}}{{/jackson}}{{/vendorExtensions.x-is-jackson-optional-nullable}} public {{#useOptional}}{{^required}}Optional<{{/required}}{{/useOptional}}{{{datatypeWithEnum}}}{{#useOptional}}{{^required}}>{{/required}}{{/useOptional}} {{getter}}() { +{{>common/model/jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}} public {{#useOptional}}{{^required}}Optional<{{/required}}{{/useOptional}}{{{datatypeWithEnum}}}{{#useOptional}}{{^required}}>{{/required}}{{/useOptional}} {{getter}}() { {{#vendorExtensions.x-is-jackson-optional-nullable}} {{#isReadOnly}} {{! A readonly attribute doesn't have setter => jackson will set null directly if explicitly returned by API, so make sure we have an empty JsonNullable}} if ({{name}} == null) { @@ -237,10 +236,9 @@ Declare the class with extends and implements {{/vendorExtensions.x-is-jackson-optional-nullable}} {{^isReadOnly}} - {{#jackson}} {{^vendorExtensions.x-is-jackson-optional-nullable}} {{>common/model/jackson_annotations}}{{/vendorExtensions.x-is-jackson-optional-nullable}}{{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}} -{{/vendorExtensions.x-setter-extra-annotation}}{{/jackson}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { +{{/vendorExtensions.x-setter-extra-annotation}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { {{#vendorExtensions.x-is-jackson-optional-nullable}} this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}); {{/vendorExtensions.x-is-jackson-optional-nullable}} From e74ea6498f5766338577c65080334c465e62d393 Mon Sep 17 00:00:00 2001 From: Frode Oldervoll Date: Thu, 2 Nov 2023 12:32:27 +0100 Subject: [PATCH 2/2] Samples --- .../api/openapi.yaml | 6 ++--- .../src/Org.OpenAPITools/Model/EnumTest.cs | 8 +++--- .../api/openapi.yaml | 6 ++--- .../src/UseSourceGeneration/Model/EnumTest.cs | 24 +++++++++--------- .../api/openapi.yaml | 6 ++--- .../src/Org.OpenAPITools/Model/EnumTest.cs | 24 +++++++++--------- .../api/openapi.yaml | 6 ++--- .../src/Org.OpenAPITools/Model/EnumTest.cs | 24 +++++++++--------- .../api/openapi.yaml | 6 ++--- .../src/Org.OpenAPITools/Model/EnumTest.cs | 24 +++++++++--------- .../OpenAPIClient-httpclient/api/openapi.yaml | 6 ++--- .../src/Org.OpenAPITools/Model/EnumTest.cs | 8 +++--- .../OpenAPIClient-net47/api/openapi.yaml | 6 ++--- .../src/Org.OpenAPITools/Model/EnumTest.cs | 8 +++--- .../OpenAPIClient-net48/api/openapi.yaml | 6 ++--- .../src/Org.OpenAPITools/Model/EnumTest.cs | 8 +++--- .../OpenAPIClient-net5.0/api/openapi.yaml | 6 ++--- .../src/Org.OpenAPITools/Model/EnumTest.cs | 8 +++--- .../api/openapi.yaml | 6 ++--- .../src/Org.OpenAPITools/Model/EnumTest.cs | 8 +++--- .../csharp/OpenAPIClient/api/openapi.yaml | 6 ++--- .../src/Org.OpenAPITools/Model/EnumTest.cs | 8 +++--- .../csharp/OpenAPIClientCore/api/openapi.yaml | 6 ++--- .../src/Org.OpenAPITools/Model/EnumTest.cs | 8 +++--- .../petstore/go/go-petstore/api/openapi.yaml | 8 +----- .../lib/OpenAPIPetstore/Model.hs | 6 ++--- .../petstore/haskell-http-client/openapi.yaml | 8 +----- .../java-helidon-client/mp/docs/EnumTest.md | 2 +- .../java-helidon-client/mp/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 2 +- .../java-helidon-client/se/docs/EnumTest.md | 2 +- .../java-helidon-client/se/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 2 +- .../docs/apis/FakeApi.md | 2 +- .../java/apache-httpclient/api/openapi.yaml | 4 +-- .../java/apache-httpclient/docs/EnumTest.md | 2 +- .../java/apache-httpclient/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 2 +- .../java/feign-no-nullable/api/openapi.yaml | 8 +----- .../petstore/java/feign/api/openapi.yaml | 4 +-- .../openapitools/client/model/EnumTest.java | 2 +- .../java/google-api-client/api/openapi.yaml | 8 +----- .../java/google-api-client/docs/FakeApi.md | 2 +- .../api/openapi.yaml | 8 +----- .../docs/FakeApi.md | 2 +- .../java/jersey2-java8/api/openapi.yaml | 8 +----- .../java/jersey2-java8/docs/FakeApi.md | 2 +- .../petstore/java/jersey3/api/openapi.yaml | 6 ++--- .../petstore/java/jersey3/docs/EnumTest.md | 4 +-- .../petstore/java/jersey3/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 4 +-- .../java/native-async/api/openapi.yaml | 6 ++--- .../java/native-async/docs/EnumTest.md | 4 +-- .../java/native-async/docs/FakeApi.md | 4 +-- .../openapitools/client/model/EnumTest.java | 4 +-- .../petstore/java/native/api/openapi.yaml | 6 ++--- .../petstore/java/native/docs/EnumTest.md | 4 +-- .../petstore/java/native/docs/FakeApi.md | 4 +-- .../openapitools/client/model/EnumTest.java | 4 +-- .../docs/FakeApi.md | 2 +- .../src/main/resources/openapi/openapi.yaml | 8 +----- .../api/openapi.yaml | 8 +----- .../docs/FakeApi.md | 2 +- .../java/okhttp-gson/api/openapi.yaml | 6 ++--- .../java/okhttp-gson/docs/EnumTest.md | 4 +-- .../petstore/java/okhttp-gson/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 4 +-- .../rest-assured-jackson/api/openapi.yaml | 8 +----- .../java/rest-assured-jackson/docs/FakeApi.md | 2 +- .../java/rest-assured/api/openapi.yaml | 8 +----- .../java/rest-assured/docs/FakeApi.md | 2 +- .../petstore/java/resteasy/api/openapi.yaml | 4 +-- .../petstore/java/resteasy/docs/EnumTest.md | 2 +- .../petstore/java/resteasy/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 2 +- .../resttemplate-withXml/api/openapi.yaml | 4 +-- .../resttemplate-withXml/docs/EnumTest.md | 2 +- .../java/resttemplate-withXml/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 4 +-- .../java/resttemplate/api/openapi.yaml | 4 +-- .../java/resttemplate/docs/EnumTest.md | 2 +- .../java/resttemplate/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 2 +- .../java/retrofit2-play26/api/openapi.yaml | 8 +----- .../java/retrofit2-play26/docs/FakeApi.md | 2 +- .../petstore/java/retrofit2/api/openapi.yaml | 8 +----- .../petstore/java/retrofit2/docs/FakeApi.md | 2 +- .../java/retrofit2rx2/api/openapi.yaml | 8 +----- .../java/retrofit2rx2/docs/FakeApi.md | 2 +- .../java/retrofit2rx3/api/openapi.yaml | 8 +----- .../java/retrofit2rx3/docs/FakeApi.md | 2 +- .../java/vertx-no-nullable/api/openapi.yaml | 8 +----- .../java/vertx-no-nullable/docs/FakeApi.md | 2 +- .../petstore/java/vertx/api/openapi.yaml | 4 +-- .../petstore/java/vertx/docs/EnumTest.md | 2 +- .../petstore/java/vertx/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 2 +- .../java/webclient-jakarta/api/openapi.yaml | 4 +-- .../java/webclient-jakarta/docs/EnumTest.md | 2 +- .../java/webclient-jakarta/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 2 +- .../java/webclient-swagger2/api/openapi.yaml | 4 +-- .../java/webclient-swagger2/docs/EnumTest.md | 2 +- .../java/webclient-swagger2/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 2 +- .../petstore/java/webclient/api/openapi.yaml | 4 +-- .../petstore/java/webclient/docs/EnumTest.md | 2 +- .../petstore/java/webclient/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 2 +- .../javascript-apollo/docs/EnumTest.md | 2 +- .../javascript-apollo/src/model/EnumTest.js | 4 +-- .../petstore/javascript-es6/docs/EnumTest.md | 2 +- .../javascript-es6/src/model/EnumTest.js | 4 +-- .../javascript-promise-es6/docs/EnumTest.md | 2 +- .../src/model/EnumTest.js | 4 +-- .../OpenAPIClient-php/src/Model/EnumTest.php | 4 +-- .../OpenAPIClient-php/lib/Model/EnumTest.php | 4 +-- .../php/psr-18/lib/Model/EnumTest.php | 4 +-- .../src/PSPetstore/Api/PSFakeApi.ps1 | 2 +- .../src/PSPetstore/Model/EnumTest.ps1 | 4 +-- .../lib/petstore/api/fake_api.rb | 2 +- .../lib/petstore/models/enum_test.rb | 4 +-- .../ruby-faraday/lib/petstore/api/fake_api.rb | 2 +- .../lib/petstore/models/enum_test.rb | 4 +-- .../ruby-httpx/lib/petstore/api/fake_api.rb | 2 +- .../lib/petstore/models/enum_test.rb | 4 +-- .../ruby/lib/petstore/api/fake_api.rb | 2 +- .../ruby/lib/petstore/models/enum_test.rb | 4 +-- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../org/openapitools/model/EnumTestDto.java | 2 +- .../model/TypeHolderDefaultDto.java | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../Sources/PetstoreClient/APIs/FakeAPI.swift | 2 +- .../Sources/PetstoreClient/APIs/FakeAPI.swift | 2 +- .../Classes/OpenAPIs/APIs/FakeAPI.swift | 2 +- .../builds/default-v3.0/models/EnumTest.ts | 2 +- .../models/EnumTest.ts | 2 +- .../xojo/client/OpenAPIClient.xojo_resources | Bin 12 -> 0 bytes .../lib/src/model/enum_test.dart | 4 +-- .../lib/src/model/enum_test.dart | 6 ++--- .../lib/model/enum_test.dart | 6 ++--- .../petstore/go/go-petstore/api/openapi.yaml | 4 +-- .../java/jersey2-java8/api/openapi.yaml | 6 ++--- .../java/jersey2-java8/docs/EnumTest.md | 4 +-- .../java/jersey2-java8/docs/FakeApi.md | 2 +- .../openapitools/client/model/EnumTest.java | 4 +-- .../petstore_api/models/enum_test.py | 4 +-- .../outer_enum_integer_default_value.py | 2 +- .../petstore_api/models/enum_test.py | 4 +-- .../outer_enum_integer_default_value.py | 2 +- .../petstore_api/models/enum_test.py | 4 +-- .../outer_enum_integer_default_value.py | 2 +- .../python/petstore_api/models/enum_test.py | 4 +-- .../outer_enum_integer_default_value.py | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ .../schema/petstore/mysql/mysql_schema.sql | 2 +- .../generated/3_0/model/Enum_Test.cpp | 2 +- .../openapitools/server/model/EnumTest.java | 2 +- .../src/main/resources/META-INF/openapi.yml | 4 +-- .../openapitools/server/model/EnumTest.java | 2 +- .../src/main/resources/META-INF/openapi.yml | 4 +-- .../java/org/openapitools/api/FakeApi.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../public/openapi.json | 8 +----- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../java/org/openapitools/api/FakeApi.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/openapi/openapi.yaml | 8 +----- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/openapi/openapi.yaml | 8 +----- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/META-INF/openapi.yaml | 8 +----- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../jaxrs-spec/src/main/openapi/openapi.yaml | 8 +----- .../java/org/openapitools/api/FakeApi.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../java/org/openapitools/api/FakeApi.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../api/openapi.yaml | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 10 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 10 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 10 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 10 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../java/org/openapitools/model/EnumTest.java | 2 +- .../openapitools/model/TypeHolderDefault.java | 2 +- .../openapitools/model/TypeHolderExample.java | 2 +- .../java/org/openapitools/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ .../virtualan/model/EnumTest.java | 2 +- .../virtualan/model/TypeHolderDefault.java | 2 +- .../virtualan/model/TypeHolderExample.java | 2 +- .../openapitools/virtualan/model/XmlItem.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ .../java/org/openapitools/api/FakeApi.java | 2 +- .../org/openapitools/model/EnumTestDto.java | 2 +- .../model/TypeHolderDefaultDto.java | 2 +- .../model/TypeHolderExampleDto.java | 2 +- .../org/openapitools/model/XmlItemDto.java | 10 ++++---- .../src/main/resources/openapi.yaml | 11 ++------ 300 files changed, 572 insertions(+), 800 deletions(-) diff --git a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs index 2f4b55d241b7..7d4962773ca2 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient-ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs @@ -205,9 +205,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } @@ -247,9 +247,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt-useSourceGeneration/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt-useSourceGeneration/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt-useSourceGeneration/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt-useSourceGeneration/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt-useSourceGeneration/src/UseSourceGeneration/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt-useSourceGeneration/src/UseSourceGeneration/Model/EnumTest.cs index c267bb49c12e..302348258d16 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt-useSourceGeneration/src/UseSourceGeneration/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt-useSourceGeneration/src/UseSourceGeneration/Model/EnumTest.cs @@ -72,9 +72,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } /// @@ -88,8 +88,8 @@ public static EnumIntegerEnum EnumIntegerEnumFromString(string value) if (value.Equals((1).ToString())) return EnumIntegerEnum.NUMBER_1; - if (value.Equals((-1).ToString())) - return EnumIntegerEnum.NUMBER_MINUS_1; + if (value.Equals((null).ToString())) + return EnumIntegerEnum.NUMBER_null; throw new NotImplementedException($"Could not convert value to type EnumIntegerEnum: '{value}'"); } @@ -104,8 +104,8 @@ public static EnumIntegerEnum EnumIntegerEnumFromString(string value) if (value.Equals((1).ToString())) return EnumIntegerEnum.NUMBER_1; - if (value.Equals((-1).ToString())) - return EnumIntegerEnum.NUMBER_MINUS_1; + if (value.Equals((null).ToString())) + return EnumIntegerEnum.NUMBER_null; return null; } @@ -137,9 +137,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } /// @@ -153,8 +153,8 @@ public static EnumIntegerOnlyEnum EnumIntegerOnlyEnumFromString(string value) if (value.Equals((2).ToString())) return EnumIntegerOnlyEnum.NUMBER_2; - if (value.Equals((-2).ToString())) - return EnumIntegerOnlyEnum.NUMBER_MINUS_2; + if (value.Equals((null).ToString())) + return EnumIntegerOnlyEnum.NUMBER_null; throw new NotImplementedException($"Could not convert value to type EnumIntegerOnlyEnum: '{value}'"); } @@ -169,8 +169,8 @@ public static EnumIntegerOnlyEnum EnumIntegerOnlyEnumFromString(string value) if (value.Equals((2).ToString())) return EnumIntegerOnlyEnum.NUMBER_2; - if (value.Equals((-2).ToString())) - return EnumIntegerOnlyEnum.NUMBER_MINUS_2; + if (value.Equals((null).ToString())) + return EnumIntegerOnlyEnum.NUMBER_null; return null; } diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/EnumTest.cs index ac3f81f956ae..66b3127ff06c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0-nrt/src/Org.OpenAPITools/Model/EnumTest.cs @@ -70,9 +70,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } /// @@ -86,8 +86,8 @@ public static EnumIntegerEnum EnumIntegerEnumFromString(string value) if (value.Equals((1).ToString())) return EnumIntegerEnum.NUMBER_1; - if (value.Equals((-1).ToString())) - return EnumIntegerEnum.NUMBER_MINUS_1; + if (value.Equals((null).ToString())) + return EnumIntegerEnum.NUMBER_null; throw new NotImplementedException($"Could not convert value to type EnumIntegerEnum: '{value}'"); } @@ -102,8 +102,8 @@ public static EnumIntegerEnum EnumIntegerEnumFromString(string value) if (value.Equals((1).ToString())) return EnumIntegerEnum.NUMBER_1; - if (value.Equals((-1).ToString())) - return EnumIntegerEnum.NUMBER_MINUS_1; + if (value.Equals((null).ToString())) + return EnumIntegerEnum.NUMBER_null; return null; } @@ -135,9 +135,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } /// @@ -151,8 +151,8 @@ public static EnumIntegerOnlyEnum EnumIntegerOnlyEnumFromString(string value) if (value.Equals((2).ToString())) return EnumIntegerOnlyEnum.NUMBER_2; - if (value.Equals((-2).ToString())) - return EnumIntegerOnlyEnum.NUMBER_MINUS_2; + if (value.Equals((null).ToString())) + return EnumIntegerOnlyEnum.NUMBER_null; throw new NotImplementedException($"Could not convert value to type EnumIntegerOnlyEnum: '{value}'"); } @@ -167,8 +167,8 @@ public static EnumIntegerOnlyEnum EnumIntegerOnlyEnumFromString(string value) if (value.Equals((2).ToString())) return EnumIntegerOnlyEnum.NUMBER_2; - if (value.Equals((-2).ToString())) - return EnumIntegerOnlyEnum.NUMBER_MINUS_2; + if (value.Equals((null).ToString())) + return EnumIntegerOnlyEnum.NUMBER_null; return null; } diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/EnumTest.cs index f3310c22a12b..71042c59773b 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-net6.0/src/Org.OpenAPITools/Model/EnumTest.cs @@ -68,9 +68,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } /// @@ -84,8 +84,8 @@ public static EnumIntegerEnum EnumIntegerEnumFromString(string value) if (value.Equals((1).ToString())) return EnumIntegerEnum.NUMBER_1; - if (value.Equals((-1).ToString())) - return EnumIntegerEnum.NUMBER_MINUS_1; + if (value.Equals((null).ToString())) + return EnumIntegerEnum.NUMBER_null; throw new NotImplementedException($"Could not convert value to type EnumIntegerEnum: '{value}'"); } @@ -100,8 +100,8 @@ public static EnumIntegerEnum EnumIntegerEnumFromString(string value) if (value.Equals((1).ToString())) return EnumIntegerEnum.NUMBER_1; - if (value.Equals((-1).ToString())) - return EnumIntegerEnum.NUMBER_MINUS_1; + if (value.Equals((null).ToString())) + return EnumIntegerEnum.NUMBER_null; return null; } @@ -133,9 +133,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } /// @@ -149,8 +149,8 @@ public static EnumIntegerOnlyEnum EnumIntegerOnlyEnumFromString(string value) if (value.Equals((2).ToString())) return EnumIntegerOnlyEnum.NUMBER_2; - if (value.Equals((-2).ToString())) - return EnumIntegerOnlyEnum.NUMBER_MINUS_2; + if (value.Equals((null).ToString())) + return EnumIntegerOnlyEnum.NUMBER_null; throw new NotImplementedException($"Could not convert value to type EnumIntegerOnlyEnum: '{value}'"); } @@ -165,8 +165,8 @@ public static EnumIntegerOnlyEnum EnumIntegerOnlyEnumFromString(string value) if (value.Equals((2).ToString())) return EnumIntegerOnlyEnum.NUMBER_2; - if (value.Equals((-2).ToString())) - return EnumIntegerOnlyEnum.NUMBER_MINUS_2; + if (value.Equals((null).ToString())) + return EnumIntegerOnlyEnum.NUMBER_null; return null; } diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/EnumTest.cs index f3310c22a12b..71042c59773b 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient-generichost-netstandard2.0/src/Org.OpenAPITools/Model/EnumTest.cs @@ -68,9 +68,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } /// @@ -84,8 +84,8 @@ public static EnumIntegerEnum EnumIntegerEnumFromString(string value) if (value.Equals((1).ToString())) return EnumIntegerEnum.NUMBER_1; - if (value.Equals((-1).ToString())) - return EnumIntegerEnum.NUMBER_MINUS_1; + if (value.Equals((null).ToString())) + return EnumIntegerEnum.NUMBER_null; throw new NotImplementedException($"Could not convert value to type EnumIntegerEnum: '{value}'"); } @@ -100,8 +100,8 @@ public static EnumIntegerEnum EnumIntegerEnumFromString(string value) if (value.Equals((1).ToString())) return EnumIntegerEnum.NUMBER_1; - if (value.Equals((-1).ToString())) - return EnumIntegerEnum.NUMBER_MINUS_1; + if (value.Equals((null).ToString())) + return EnumIntegerEnum.NUMBER_null; return null; } @@ -133,9 +133,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } /// @@ -149,8 +149,8 @@ public static EnumIntegerOnlyEnum EnumIntegerOnlyEnumFromString(string value) if (value.Equals((2).ToString())) return EnumIntegerOnlyEnum.NUMBER_2; - if (value.Equals((-2).ToString())) - return EnumIntegerOnlyEnum.NUMBER_MINUS_2; + if (value.Equals((null).ToString())) + return EnumIntegerOnlyEnum.NUMBER_null; throw new NotImplementedException($"Could not convert value to type EnumIntegerOnlyEnum: '{value}'"); } @@ -165,8 +165,8 @@ public static EnumIntegerOnlyEnum EnumIntegerOnlyEnumFromString(string value) if (value.Equals((2).ToString())) return EnumIntegerOnlyEnum.NUMBER_2; - if (value.Equals((-2).ToString())) - return EnumIntegerOnlyEnum.NUMBER_MINUS_2; + if (value.Equals((null).ToString())) + return EnumIntegerOnlyEnum.NUMBER_null; return null; } diff --git a/samples/client/petstore/csharp/OpenAPIClient-httpclient/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-httpclient/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-httpclient/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClient-httpclient/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/EnumTest.cs index 496b0cf08f96..99911d7c9893 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient-httpclient/src/Org.OpenAPITools/Model/EnumTest.cs @@ -166,9 +166,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } @@ -188,9 +188,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } diff --git a/samples/client/petstore/csharp/OpenAPIClient-net47/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-net47/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-net47/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClient-net47/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools/Model/EnumTest.cs index de9905a5d944..edfb46d4bbcb 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient-net47/src/Org.OpenAPITools/Model/EnumTest.cs @@ -165,9 +165,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } @@ -187,9 +187,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } diff --git a/samples/client/petstore/csharp/OpenAPIClient-net48/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-net48/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-net48/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClient-net48/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools/Model/EnumTest.cs index de9905a5d944..edfb46d4bbcb 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient-net48/src/Org.OpenAPITools/Model/EnumTest.cs @@ -165,9 +165,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } @@ -187,9 +187,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } diff --git a/samples/client/petstore/csharp/OpenAPIClient-net5.0/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-net5.0/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-net5.0/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClient-net5.0/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/EnumTest.cs index de9905a5d944..edfb46d4bbcb 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient-net5.0/src/Org.OpenAPITools/Model/EnumTest.cs @@ -165,9 +165,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } @@ -187,9 +187,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } diff --git a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/EnumTest.cs index 627c8a3acd40..3630d41387d7 100644 --- a/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient-unityWebRequest/src/Org.OpenAPITools/Model/EnumTest.cs @@ -163,9 +163,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } @@ -185,9 +185,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } diff --git a/samples/client/petstore/csharp/OpenAPIClient/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClient/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClient/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs index de9905a5d944..edfb46d4bbcb 100644 --- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/EnumTest.cs @@ -165,9 +165,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } @@ -187,9 +187,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } diff --git a/samples/client/petstore/csharp/OpenAPIClientCore/api/openapi.yaml b/samples/client/petstore/csharp/OpenAPIClientCore/api/openapi.yaml index f6eeaf555f13..57508b37c44c 100644 --- a/samples/client/petstore/csharp/OpenAPIClientCore/api/openapi.yaml +++ b/samples/client/petstore/csharp/OpenAPIClientCore/api/openapi.yaml @@ -753,7 +753,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1650,13 +1650,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools/Model/EnumTest.cs index 7c4204dbf5e6..b48c0d505187 100644 --- a/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/OpenAPIClientCore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -165,9 +165,9 @@ public enum EnumIntegerEnum NUMBER_1 = 1, /// - /// Enum NUMBER_MINUS_1 for value: -1 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_1 = -1 + NUMBER_null = null } @@ -187,9 +187,9 @@ public enum EnumIntegerOnlyEnum NUMBER_2 = 2, /// - /// Enum NUMBER_MINUS_2 for value: -2 + /// Enum NUMBER_null for value: null /// - NUMBER_MINUS_2 = -2 + NUMBER_null = null } diff --git a/samples/client/petstore/go/go-petstore/api/openapi.yaml b/samples/client/petstore/go/go-petstore/api/openapi.yaml index 8d9c8d5ff5e4..9452debd1f36 100644 --- a/samples/client/petstore/go/go-petstore/api/openapi.yaml +++ b/samples/client/petstore/go/go-petstore/api/openapi.yaml @@ -702,7 +702,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1789,7 +1789,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1824,7 +1823,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1850,7 +1848,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1885,7 +1882,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1920,7 +1916,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -1957,7 +1952,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs index 387740620476..483727515b16 100644 --- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs +++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs @@ -2077,7 +2077,7 @@ toE'EnumNumber = \case -- | Enum of 'Int' data E'EnumQueryInteger = E'EnumQueryInteger'Num1 -- ^ @1@ - | E'EnumQueryInteger'NumMinus_2 -- ^ @-2@ + | E'EnumQueryInteger'Numnull -- ^ @null@ deriving (P.Show, P.Eq, P.Typeable, P.Ord, P.Bounded, P.Enum) instance A.ToJSON E'EnumQueryInteger where toJSON = A.toJSON . fromE'EnumQueryInteger @@ -2090,13 +2090,13 @@ instance MimeRender MimeMultipartFormData E'EnumQueryInteger where mimeRender _ fromE'EnumQueryInteger :: E'EnumQueryInteger -> Int fromE'EnumQueryInteger = \case E'EnumQueryInteger'Num1 -> 1 - E'EnumQueryInteger'NumMinus_2 -> -2 + E'EnumQueryInteger'Numnull -> null -- | parse 'E'EnumQueryInteger' enum toE'EnumQueryInteger :: Int -> P.Either String E'EnumQueryInteger toE'EnumQueryInteger = \case 1 -> P.Right E'EnumQueryInteger'Num1 - -2 -> P.Right E'EnumQueryInteger'NumMinus_2 + null -> P.Right E'EnumQueryInteger'Numnull s -> P.Left $ "toE'EnumQueryInteger: enum parse failure: " P.++ P.show s diff --git a/samples/client/petstore/haskell-http-client/openapi.yaml b/samples/client/petstore/haskell-http-client/openapi.yaml index 8d9c8d5ff5e4..9452debd1f36 100644 --- a/samples/client/petstore/haskell-http-client/openapi.yaml +++ b/samples/client/petstore/haskell-http-client/openapi.yaml @@ -702,7 +702,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1789,7 +1789,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1824,7 +1823,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1850,7 +1848,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1885,7 +1882,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1920,7 +1916,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -1957,7 +1952,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java-helidon-client/mp/docs/EnumTest.md b/samples/client/petstore/java-helidon-client/mp/docs/EnumTest.md index 380a2aef0bc3..b000d0de1c3b 100644 --- a/samples/client/petstore/java-helidon-client/mp/docs/EnumTest.md +++ b/samples/client/petstore/java-helidon-client/mp/docs/EnumTest.md @@ -43,7 +43,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java-helidon-client/mp/docs/FakeApi.md b/samples/client/petstore/java-helidon-client/mp/docs/FakeApi.md index 7f7a569f2b43..f12a2a00e7c0 100644 --- a/samples/client/petstore/java-helidon-client/mp/docs/FakeApi.md +++ b/samples/client/petstore/java-helidon-client/mp/docs/FakeApi.md @@ -504,7 +504,7 @@ To test enum parameters | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | diff --git a/samples/client/petstore/java-helidon-client/mp/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java-helidon-client/mp/src/main/java/org/openapitools/client/model/EnumTest.java index 538f09adcede..10b3fca45da0 100644 --- a/samples/client/petstore/java-helidon-client/mp/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java-helidon-client/mp/src/main/java/org/openapitools/client/model/EnumTest.java @@ -78,7 +78,7 @@ public String toString() { public enum EnumIntegerEnum { - NUMBER_1(Integer.valueOf(1)), NUMBER_MINUS_1(Integer.valueOf(-1)); + NUMBER_1(Integer.valueOf(1)), NUMBER_null(Integer.valueOf(null)); Integer value; diff --git a/samples/client/petstore/java-helidon-client/se/docs/EnumTest.md b/samples/client/petstore/java-helidon-client/se/docs/EnumTest.md index 380a2aef0bc3..b000d0de1c3b 100644 --- a/samples/client/petstore/java-helidon-client/se/docs/EnumTest.md +++ b/samples/client/petstore/java-helidon-client/se/docs/EnumTest.md @@ -43,7 +43,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java-helidon-client/se/docs/FakeApi.md b/samples/client/petstore/java-helidon-client/se/docs/FakeApi.md index e442af92c3b7..69fa2bf60e69 100644 --- a/samples/client/petstore/java-helidon-client/se/docs/FakeApi.md +++ b/samples/client/petstore/java-helidon-client/se/docs/FakeApi.md @@ -962,7 +962,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | diff --git a/samples/client/petstore/java-helidon-client/se/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java-helidon-client/se/src/main/java/org/openapitools/client/model/EnumTest.java index 538f09adcede..10b3fca45da0 100644 --- a/samples/client/petstore/java-helidon-client/se/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java-helidon-client/se/src/main/java/org/openapitools/client/model/EnumTest.java @@ -78,7 +78,7 @@ public String toString() { public enum EnumIntegerEnum { - NUMBER_1(Integer.valueOf(1)), NUMBER_MINUS_1(Integer.valueOf(-1)); + NUMBER_1(Integer.valueOf(1)), NUMBER_null(Integer.valueOf(null)); Integer value; diff --git a/samples/client/petstore/java-micronaut-client/docs/apis/FakeApi.md b/samples/client/petstore/java-micronaut-client/docs/apis/FakeApi.md index 50260b878f48..015f5370951b 100644 --- a/samples/client/petstore/java-micronaut-client/docs/apis/FakeApi.md +++ b/samples/client/petstore/java-micronaut-client/docs/apis/FakeApi.md @@ -299,7 +299,7 @@ To test enum parameters | **enumHeaderString** | `String`| Header parameter enum test (string) | [optional parameter] [default to `-efg`] [enum: `_abc`, `-efg`, `(xyz)`] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional parameter] [enum: `>`, `$`] | | **enumQueryString** | `String`| Query parameter enum test (string) | [optional parameter] [default to `-efg`] [enum: `_abc`, `-efg`, `(xyz)`] | -| **enumQueryInteger** | `Integer`| Query parameter enum test (double) | [optional parameter] [enum: `1`, `-2`] | +| **enumQueryInteger** | `Integer`| Query parameter enum test (double) | [optional parameter] [enum: `1`, ``] | | **enumQueryDouble** | `Double`| Query parameter enum test (double) | [optional parameter] [enum: `1.1`, `-1.2`] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional parameter] [default to `$`] [enum: `>`, `$`] | | **enumFormString** | `String`| Form parameter enum test (string) | [optional parameter] [default to `-efg`] [enum: `_abc`, `-efg`, `(xyz)`] | diff --git a/samples/client/petstore/java/apache-httpclient/api/openapi.yaml b/samples/client/petstore/java/apache-httpclient/api/openapi.yaml index 991caf590017..52785b8afad0 100644 --- a/samples/client/petstore/java/apache-httpclient/api/openapi.yaml +++ b/samples/client/petstore/java/apache-httpclient/api/openapi.yaml @@ -787,7 +787,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1677,7 +1677,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: diff --git a/samples/client/petstore/java/apache-httpclient/docs/EnumTest.md b/samples/client/petstore/java/apache-httpclient/docs/EnumTest.md index 380a2aef0bc3..b000d0de1c3b 100644 --- a/samples/client/petstore/java/apache-httpclient/docs/EnumTest.md +++ b/samples/client/petstore/java/apache-httpclient/docs/EnumTest.md @@ -43,7 +43,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md b/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md index e442af92c3b7..69fa2bf60e69 100644 --- a/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md +++ b/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md @@ -962,7 +962,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java index 6b6e1dbaf4f0..23fc4c701c31 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -136,7 +136,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/feign-no-nullable/api/openapi.yaml b/samples/client/petstore/java/feign-no-nullable/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/feign-no-nullable/api/openapi.yaml +++ b/samples/client/petstore/java/feign-no-nullable/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/feign/api/openapi.yaml b/samples/client/petstore/java/feign/api/openapi.yaml index 991caf590017..52785b8afad0 100644 --- a/samples/client/petstore/java/feign/api/openapi.yaml +++ b/samples/client/petstore/java/feign/api/openapi.yaml @@ -787,7 +787,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1677,7 +1677,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: 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 17fd4e085495..7f9fe4434e0a 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 @@ -133,7 +133,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/google-api-client/api/openapi.yaml b/samples/client/petstore/java/google-api-client/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/google-api-client/api/openapi.yaml +++ b/samples/client/petstore/java/google-api-client/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/google-api-client/docs/FakeApi.md b/samples/client/petstore/java/google-api-client/docs/FakeApi.md index 627366e41db3..1db935b05f74 100644 --- a/samples/client/petstore/java/google-api-client/docs/FakeApi.md +++ b/samples/client/petstore/java/google-api-client/docs/FakeApi.md @@ -698,7 +698,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/api/openapi.yaml b/samples/client/petstore/java/jersey2-java8-localdatetime/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/api/openapi.yaml +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md index d21432dbf3e4..daf20fd7ef7c 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/docs/FakeApi.md @@ -697,7 +697,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | **List<String>**| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/jersey2-java8/api/openapi.yaml b/samples/client/petstore/java/jersey2-java8/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/jersey2-java8/api/openapi.yaml +++ b/samples/client/petstore/java/jersey2-java8/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md index 84167f65462a..fb24b92d5853 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md @@ -697,7 +697,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | **List<String>**| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/jersey3/api/openapi.yaml b/samples/client/petstore/java/jersey3/api/openapi.yaml index 2dcf21ae0b3d..9951d3211e64 100644 --- a/samples/client/petstore/java/jersey3/api/openapi.yaml +++ b/samples/client/petstore/java/jersey3/api/openapi.yaml @@ -760,7 +760,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1565,13 +1565,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/java/jersey3/docs/EnumTest.md b/samples/client/petstore/java/jersey3/docs/EnumTest.md index 3e226e18b50b..7a3c0981f505 100644 --- a/samples/client/petstore/java/jersey3/docs/EnumTest.md +++ b/samples/client/petstore/java/jersey3/docs/EnumTest.md @@ -44,7 +44,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | @@ -53,7 +53,7 @@ | Name | Value | |---- | -----| | NUMBER_2 | 2 | -| NUMBER_MINUS_2 | -2 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/jersey3/docs/FakeApi.md b/samples/client/petstore/java/jersey3/docs/FakeApi.md index 83f469863c9a..c496e871e6f8 100644 --- a/samples/client/petstore/java/jersey3/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey3/docs/FakeApi.md @@ -754,7 +754,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | **List<String>**| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java index 58b4a92bc0e2..88e05f84291c 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java @@ -137,7 +137,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; @@ -175,7 +175,7 @@ public static EnumIntegerEnum fromValue(Integer value) { public enum EnumIntegerOnlyEnum { NUMBER_2(2), - NUMBER_MINUS_2(-2); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/native-async/api/openapi.yaml b/samples/client/petstore/java/native-async/api/openapi.yaml index 79127951b04d..45d1aeb0e418 100644 --- a/samples/client/petstore/java/native-async/api/openapi.yaml +++ b/samples/client/petstore/java/native-async/api/openapi.yaml @@ -760,7 +760,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1580,13 +1580,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/java/native-async/docs/EnumTest.md b/samples/client/petstore/java/native-async/docs/EnumTest.md index 3e226e18b50b..7a3c0981f505 100644 --- a/samples/client/petstore/java/native-async/docs/EnumTest.md +++ b/samples/client/petstore/java/native-async/docs/EnumTest.md @@ -44,7 +44,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | @@ -53,7 +53,7 @@ | Name | Value | |---- | -----| | NUMBER_2 | 2 | -| NUMBER_MINUS_2 | -2 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/native-async/docs/FakeApi.md b/samples/client/petstore/java/native-async/docs/FakeApi.md index 5ad79f6eba2c..ed962c8a7e0a 100644 --- a/samples/client/petstore/java/native-async/docs/FakeApi.md +++ b/samples/client/petstore/java/native-async/docs/FakeApi.md @@ -1697,7 +1697,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | @@ -1787,7 +1787,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | 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 43b6aaa25706..4b34269d9a6d 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 @@ -138,7 +138,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; @@ -176,7 +176,7 @@ public static EnumIntegerEnum fromValue(Integer value) { public enum EnumIntegerOnlyEnum { NUMBER_2(2), - NUMBER_MINUS_2(-2); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/native/api/openapi.yaml b/samples/client/petstore/java/native/api/openapi.yaml index 79127951b04d..45d1aeb0e418 100644 --- a/samples/client/petstore/java/native/api/openapi.yaml +++ b/samples/client/petstore/java/native/api/openapi.yaml @@ -760,7 +760,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1580,13 +1580,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/java/native/docs/EnumTest.md b/samples/client/petstore/java/native/docs/EnumTest.md index 3e226e18b50b..7a3c0981f505 100644 --- a/samples/client/petstore/java/native/docs/EnumTest.md +++ b/samples/client/petstore/java/native/docs/EnumTest.md @@ -44,7 +44,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | @@ -53,7 +53,7 @@ | Name | Value | |---- | -----| | NUMBER_2 | 2 | -| NUMBER_MINUS_2 | -2 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/native/docs/FakeApi.md b/samples/client/petstore/java/native/docs/FakeApi.md index d741761672da..33e8f17e6036 100644 --- a/samples/client/petstore/java/native/docs/FakeApi.md +++ b/samples/client/petstore/java/native/docs/FakeApi.md @@ -1597,7 +1597,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | @@ -1679,7 +1679,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | 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 43b6aaa25706..4b34269d9a6d 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 @@ -138,7 +138,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; @@ -176,7 +176,7 @@ public static EnumIntegerEnum fromValue(Integer value) { public enum EnumIntegerOnlyEnum { NUMBER_2(2), - NUMBER_MINUS_2(-2); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md index 98f0b0098b8b..b1b95475a8c7 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/docs/FakeApi.md @@ -659,7 +659,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/resources/openapi/openapi.yaml b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/resources/openapi/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/resources/openapi/openapi.yaml +++ b/samples/client/petstore/java/okhttp-gson-dynamicOperations/src/main/resources/openapi/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/api/openapi.yaml b/samples/client/petstore/java/okhttp-gson-parcelableModel/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/api/openapi.yaml +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md index 98f0b0098b8b..b1b95475a8c7 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md @@ -659,7 +659,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/okhttp-gson/api/openapi.yaml b/samples/client/petstore/java/okhttp-gson/api/openapi.yaml index 75e2a80fee94..a60d1650f7da 100644 --- a/samples/client/petstore/java/okhttp-gson/api/openapi.yaml +++ b/samples/client/petstore/java/okhttp-gson/api/openapi.yaml @@ -756,7 +756,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1661,13 +1661,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/client/petstore/java/okhttp-gson/docs/EnumTest.md b/samples/client/petstore/java/okhttp-gson/docs/EnumTest.md index 3e226e18b50b..7a3c0981f505 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/EnumTest.md +++ b/samples/client/petstore/java/okhttp-gson/docs/EnumTest.md @@ -44,7 +44,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | @@ -53,7 +53,7 @@ | Name | Value | |---- | -----| | NUMBER_2 | 2 | -| NUMBER_MINUS_2 | -2 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md index bbfe7c1b97e9..35462f371dde 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md @@ -776,7 +776,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java index 9e8e63d6fc6b..1501fea35a47 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -169,7 +169,7 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; @@ -220,7 +220,7 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { public enum EnumIntegerOnlyEnum { NUMBER_2(2), - NUMBER_MINUS_2(-2); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/rest-assured-jackson/api/openapi.yaml b/samples/client/petstore/java/rest-assured-jackson/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/rest-assured-jackson/api/openapi.yaml +++ b/samples/client/petstore/java/rest-assured-jackson/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md b/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md index 969883dc5140..614d3116a716 100644 --- a/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md +++ b/samples/client/petstore/java/rest-assured-jackson/docs/FakeApi.md @@ -440,7 +440,7 @@ api.testEnumParameters().execute(r -> r.prettyPeek()); | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/rest-assured/api/openapi.yaml b/samples/client/petstore/java/rest-assured/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/rest-assured/api/openapi.yaml +++ b/samples/client/petstore/java/rest-assured/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/rest-assured/docs/FakeApi.md b/samples/client/petstore/java/rest-assured/docs/FakeApi.md index 969883dc5140..614d3116a716 100644 --- a/samples/client/petstore/java/rest-assured/docs/FakeApi.md +++ b/samples/client/petstore/java/rest-assured/docs/FakeApi.md @@ -440,7 +440,7 @@ api.testEnumParameters().execute(r -> r.prettyPeek()); | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/resteasy/api/openapi.yaml b/samples/client/petstore/java/resteasy/api/openapi.yaml index 991caf590017..52785b8afad0 100644 --- a/samples/client/petstore/java/resteasy/api/openapi.yaml +++ b/samples/client/petstore/java/resteasy/api/openapi.yaml @@ -787,7 +787,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1677,7 +1677,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: diff --git a/samples/client/petstore/java/resteasy/docs/EnumTest.md b/samples/client/petstore/java/resteasy/docs/EnumTest.md index 380a2aef0bc3..b000d0de1c3b 100644 --- a/samples/client/petstore/java/resteasy/docs/EnumTest.md +++ b/samples/client/petstore/java/resteasy/docs/EnumTest.md @@ -43,7 +43,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/resteasy/docs/FakeApi.md b/samples/client/petstore/java/resteasy/docs/FakeApi.md index e442af92c3b7..69fa2bf60e69 100644 --- a/samples/client/petstore/java/resteasy/docs/FakeApi.md +++ b/samples/client/petstore/java/resteasy/docs/FakeApi.md @@ -962,7 +962,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | 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 dc4dbac10013..7cabe9501f35 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 @@ -133,7 +133,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml b/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml index 991caf590017..52785b8afad0 100644 --- a/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml +++ b/samples/client/petstore/java/resttemplate-withXml/api/openapi.yaml @@ -787,7 +787,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1677,7 +1677,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/EnumTest.md b/samples/client/petstore/java/resttemplate-withXml/docs/EnumTest.md index 380a2aef0bc3..b000d0de1c3b 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/EnumTest.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/EnumTest.md @@ -43,7 +43,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md b/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md index e442af92c3b7..69fa2bf60e69 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md @@ -962,7 +962,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | 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 1b8e6790febf..bac36c4999d2 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 @@ -155,8 +155,8 @@ public enum EnumIntegerEnum { @XmlEnumValue("1") NUMBER_1(1), - @XmlEnumValue("-1") - NUMBER_MINUS_1(-1); + @XmlEnumValue("null") + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/resttemplate/api/openapi.yaml b/samples/client/petstore/java/resttemplate/api/openapi.yaml index 991caf590017..52785b8afad0 100644 --- a/samples/client/petstore/java/resttemplate/api/openapi.yaml +++ b/samples/client/petstore/java/resttemplate/api/openapi.yaml @@ -787,7 +787,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1677,7 +1677,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: diff --git a/samples/client/petstore/java/resttemplate/docs/EnumTest.md b/samples/client/petstore/java/resttemplate/docs/EnumTest.md index 380a2aef0bc3..b000d0de1c3b 100644 --- a/samples/client/petstore/java/resttemplate/docs/EnumTest.md +++ b/samples/client/petstore/java/resttemplate/docs/EnumTest.md @@ -43,7 +43,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/resttemplate/docs/FakeApi.md b/samples/client/petstore/java/resttemplate/docs/FakeApi.md index e442af92c3b7..69fa2bf60e69 100644 --- a/samples/client/petstore/java/resttemplate/docs/FakeApi.md +++ b/samples/client/petstore/java/resttemplate/docs/FakeApi.md @@ -962,7 +962,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | 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 dc4dbac10013..7cabe9501f35 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 @@ -133,7 +133,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/retrofit2-play26/api/openapi.yaml b/samples/client/petstore/java/retrofit2-play26/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/retrofit2-play26/api/openapi.yaml +++ b/samples/client/petstore/java/retrofit2-play26/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md b/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md index 5722d2acb576..187ed7b2a366 100644 --- a/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2-play26/docs/FakeApi.md @@ -698,7 +698,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/retrofit2/api/openapi.yaml b/samples/client/petstore/java/retrofit2/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/retrofit2/api/openapi.yaml +++ b/samples/client/petstore/java/retrofit2/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/retrofit2/docs/FakeApi.md b/samples/client/petstore/java/retrofit2/docs/FakeApi.md index 5722d2acb576..187ed7b2a366 100644 --- a/samples/client/petstore/java/retrofit2/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2/docs/FakeApi.md @@ -698,7 +698,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/retrofit2rx2/api/openapi.yaml b/samples/client/petstore/java/retrofit2rx2/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/retrofit2rx2/api/openapi.yaml +++ b/samples/client/petstore/java/retrofit2rx2/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md b/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md index 5722d2acb576..187ed7b2a366 100644 --- a/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md @@ -698,7 +698,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/retrofit2rx3/api/openapi.yaml b/samples/client/petstore/java/retrofit2rx3/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/retrofit2rx3/api/openapi.yaml +++ b/samples/client/petstore/java/retrofit2rx3/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md b/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md index 5722d2acb576..187ed7b2a366 100644 --- a/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2rx3/docs/FakeApi.md @@ -698,7 +698,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/vertx-no-nullable/api/openapi.yaml b/samples/client/petstore/java/vertx-no-nullable/api/openapi.yaml index 933d7332521b..0cc1b8d4a977 100644 --- a/samples/client/petstore/java/vertx-no-nullable/api/openapi.yaml +++ b/samples/client/petstore/java/vertx-no-nullable/api/openapi.yaml @@ -734,7 +734,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1850,7 +1850,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1885,7 +1884,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1911,7 +1909,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -1946,7 +1943,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -1981,7 +1977,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2018,7 +2013,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md b/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md index efb255c14f26..ae8802f5181f 100644 --- a/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md +++ b/samples/client/petstore/java/vertx-no-nullable/docs/FakeApi.md @@ -698,7 +698,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | diff --git a/samples/client/petstore/java/vertx/api/openapi.yaml b/samples/client/petstore/java/vertx/api/openapi.yaml index 991caf590017..52785b8afad0 100644 --- a/samples/client/petstore/java/vertx/api/openapi.yaml +++ b/samples/client/petstore/java/vertx/api/openapi.yaml @@ -787,7 +787,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1677,7 +1677,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: diff --git a/samples/client/petstore/java/vertx/docs/EnumTest.md b/samples/client/petstore/java/vertx/docs/EnumTest.md index 380a2aef0bc3..b000d0de1c3b 100644 --- a/samples/client/petstore/java/vertx/docs/EnumTest.md +++ b/samples/client/petstore/java/vertx/docs/EnumTest.md @@ -43,7 +43,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/vertx/docs/FakeApi.md b/samples/client/petstore/java/vertx/docs/FakeApi.md index b9dc1bfbd928..582885fe1324 100644 --- a/samples/client/petstore/java/vertx/docs/FakeApi.md +++ b/samples/client/petstore/java/vertx/docs/FakeApi.md @@ -962,7 +962,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | 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 dc4dbac10013..7cabe9501f35 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 @@ -133,7 +133,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/webclient-jakarta/api/openapi.yaml b/samples/client/petstore/java/webclient-jakarta/api/openapi.yaml index 991caf590017..52785b8afad0 100644 --- a/samples/client/petstore/java/webclient-jakarta/api/openapi.yaml +++ b/samples/client/petstore/java/webclient-jakarta/api/openapi.yaml @@ -787,7 +787,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1677,7 +1677,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: diff --git a/samples/client/petstore/java/webclient-jakarta/docs/EnumTest.md b/samples/client/petstore/java/webclient-jakarta/docs/EnumTest.md index 380a2aef0bc3..b000d0de1c3b 100644 --- a/samples/client/petstore/java/webclient-jakarta/docs/EnumTest.md +++ b/samples/client/petstore/java/webclient-jakarta/docs/EnumTest.md @@ -43,7 +43,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/webclient-jakarta/docs/FakeApi.md b/samples/client/petstore/java/webclient-jakarta/docs/FakeApi.md index e442af92c3b7..69fa2bf60e69 100644 --- a/samples/client/petstore/java/webclient-jakarta/docs/FakeApi.md +++ b/samples/client/petstore/java/webclient-jakarta/docs/FakeApi.md @@ -962,7 +962,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java index 7f09f74f272a..5b7149b28167 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java @@ -133,7 +133,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/webclient-swagger2/api/openapi.yaml b/samples/client/petstore/java/webclient-swagger2/api/openapi.yaml index 991caf590017..52785b8afad0 100644 --- a/samples/client/petstore/java/webclient-swagger2/api/openapi.yaml +++ b/samples/client/petstore/java/webclient-swagger2/api/openapi.yaml @@ -787,7 +787,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1677,7 +1677,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: diff --git a/samples/client/petstore/java/webclient-swagger2/docs/EnumTest.md b/samples/client/petstore/java/webclient-swagger2/docs/EnumTest.md index 380a2aef0bc3..b000d0de1c3b 100644 --- a/samples/client/petstore/java/webclient-swagger2/docs/EnumTest.md +++ b/samples/client/petstore/java/webclient-swagger2/docs/EnumTest.md @@ -43,7 +43,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/webclient-swagger2/docs/FakeApi.md b/samples/client/petstore/java/webclient-swagger2/docs/FakeApi.md index e442af92c3b7..69fa2bf60e69 100644 --- a/samples/client/petstore/java/webclient-swagger2/docs/FakeApi.md +++ b/samples/client/petstore/java/webclient-swagger2/docs/FakeApi.md @@ -962,7 +962,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java index 8b801ba9ae1d..707da14f9b69 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -134,7 +134,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/java/webclient/api/openapi.yaml b/samples/client/petstore/java/webclient/api/openapi.yaml index 991caf590017..52785b8afad0 100644 --- a/samples/client/petstore/java/webclient/api/openapi.yaml +++ b/samples/client/petstore/java/webclient/api/openapi.yaml @@ -787,7 +787,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1677,7 +1677,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: diff --git a/samples/client/petstore/java/webclient/docs/EnumTest.md b/samples/client/petstore/java/webclient/docs/EnumTest.md index 380a2aef0bc3..b000d0de1c3b 100644 --- a/samples/client/petstore/java/webclient/docs/EnumTest.md +++ b/samples/client/petstore/java/webclient/docs/EnumTest.md @@ -43,7 +43,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | diff --git a/samples/client/petstore/java/webclient/docs/FakeApi.md b/samples/client/petstore/java/webclient/docs/FakeApi.md index e442af92c3b7..69fa2bf60e69 100644 --- a/samples/client/petstore/java/webclient/docs/FakeApi.md +++ b/samples/client/petstore/java/webclient/docs/FakeApi.md @@ -962,7 +962,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | [**List<String>**](String.md)| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] | | **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] | 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 dc4dbac10013..7cabe9501f35 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 @@ -133,7 +133,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/javascript-apollo/docs/EnumTest.md b/samples/client/petstore/javascript-apollo/docs/EnumTest.md index b56c3c4cef63..ff3fc3ead04e 100644 --- a/samples/client/petstore/javascript-apollo/docs/EnumTest.md +++ b/samples/client/petstore/javascript-apollo/docs/EnumTest.md @@ -46,7 +46,7 @@ Name | Type | Description | Notes * `1` (value: `1`) -* `-1` (value: `-1`) +* `null` (value: `null`) diff --git a/samples/client/petstore/javascript-apollo/src/model/EnumTest.js b/samples/client/petstore/javascript-apollo/src/model/EnumTest.js index b1556a0613fd..1ef7ec8fd00d 100644 --- a/samples/client/petstore/javascript-apollo/src/model/EnumTest.js +++ b/samples/client/petstore/javascript-apollo/src/model/EnumTest.js @@ -222,10 +222,10 @@ EnumTest['EnumIntegerEnum'] = { "1": 1, /** - * value: -1 + * value: null * @const */ - "-1": -1 + "null": null }; diff --git a/samples/client/petstore/javascript-es6/docs/EnumTest.md b/samples/client/petstore/javascript-es6/docs/EnumTest.md index b56c3c4cef63..ff3fc3ead04e 100644 --- a/samples/client/petstore/javascript-es6/docs/EnumTest.md +++ b/samples/client/petstore/javascript-es6/docs/EnumTest.md @@ -46,7 +46,7 @@ Name | Type | Description | Notes * `1` (value: `1`) -* `-1` (value: `-1`) +* `null` (value: `null`) diff --git a/samples/client/petstore/javascript-es6/src/model/EnumTest.js b/samples/client/petstore/javascript-es6/src/model/EnumTest.js index b1556a0613fd..1ef7ec8fd00d 100644 --- a/samples/client/petstore/javascript-es6/src/model/EnumTest.js +++ b/samples/client/petstore/javascript-es6/src/model/EnumTest.js @@ -222,10 +222,10 @@ EnumTest['EnumIntegerEnum'] = { "1": 1, /** - * value: -1 + * value: null * @const */ - "-1": -1 + "null": null }; diff --git a/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md b/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md index b56c3c4cef63..ff3fc3ead04e 100644 --- a/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md +++ b/samples/client/petstore/javascript-promise-es6/docs/EnumTest.md @@ -46,7 +46,7 @@ Name | Type | Description | Notes * `1` (value: `1`) -* `-1` (value: `-1`) +* `null` (value: `null`) diff --git a/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js b/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js index b1556a0613fd..1ef7ec8fd00d 100644 --- a/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js +++ b/samples/client/petstore/javascript-promise-es6/src/model/EnumTest.js @@ -222,10 +222,10 @@ EnumTest['EnumIntegerEnum'] = { "1": 1, /** - * value: -1 + * value: null * @const */ - "-1": -1 + "null": null }; diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php index b876b153cbd3..d8d8bcc12eea 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php @@ -276,7 +276,7 @@ public function getModelName(): string public const ENUM_STRING_REQUIRED_LOWER = 'lower'; public const ENUM_STRING_REQUIRED_EMPTY = ''; public const ENUM_INTEGER_1 = 1; - public const ENUM_INTEGER_MINUS_1 = -1; + public const ENUM_INTEGER_null = null; public const ENUM_NUMBER_1_DOT_1 = 1.1; public const ENUM_NUMBER_MINUS_1_DOT_2 = -1.2; @@ -317,7 +317,7 @@ public function getEnumIntegerAllowableValues() { return [ self::ENUM_INTEGER_1, - self::ENUM_INTEGER_MINUS_1, + self::ENUM_INTEGER_null, ]; } 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 8dbd8ad634d2..a1e2e27d0881 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php @@ -277,7 +277,7 @@ public function getModelName() public const ENUM_STRING_REQUIRED_LOWER = 'lower'; public const ENUM_STRING_REQUIRED_EMPTY = ''; public const ENUM_INTEGER_1 = 1; - public const ENUM_INTEGER_MINUS_1 = -1; + public const ENUM_INTEGER_null = null; public const ENUM_NUMBER_1_DOT_1 = 1.1; public const ENUM_NUMBER_MINUS_1_DOT_2 = -1.2; @@ -318,7 +318,7 @@ public function getEnumIntegerAllowableValues() { return [ self::ENUM_INTEGER_1, - self::ENUM_INTEGER_MINUS_1, + self::ENUM_INTEGER_null, ]; } diff --git a/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php b/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php index 8dbd8ad634d2..a1e2e27d0881 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php +++ b/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php @@ -277,7 +277,7 @@ public function getModelName() public const ENUM_STRING_REQUIRED_LOWER = 'lower'; public const ENUM_STRING_REQUIRED_EMPTY = ''; public const ENUM_INTEGER_1 = 1; - public const ENUM_INTEGER_MINUS_1 = -1; + public const ENUM_INTEGER_null = null; public const ENUM_NUMBER_1_DOT_1 = 1.1; public const ENUM_NUMBER_MINUS_1_DOT_2 = -1.2; @@ -318,7 +318,7 @@ public function getEnumIntegerAllowableValues() { return [ self::ENUM_INTEGER_1, - self::ENUM_INTEGER_MINUS_1, + self::ENUM_INTEGER_null, ]; } diff --git a/samples/client/petstore/powershell/src/PSPetstore/Api/PSFakeApi.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Api/PSFakeApi.ps1 index 33edac7ec1bd..314837a68771 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Api/PSFakeApi.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Api/PSFakeApi.ps1 @@ -941,7 +941,7 @@ function Test-PSEnumParameters { [String] ${EnumQueryString}, [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] - [ValidateSet("1", "-2")] + [ValidateSet("1", "null")] [System.Nullable[Int32]] ${EnumQueryInteger}, [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true, Mandatory = $false)] diff --git a/samples/client/petstore/powershell/src/PSPetstore/Model/EnumTest.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Model/EnumTest.ps1 index 867691b24911..c94454d4392d 100644 --- a/samples/client/petstore/powershell/src/PSPetstore/Model/EnumTest.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Model/EnumTest.ps1 @@ -43,11 +43,11 @@ function Initialize-PSEnumTest { [String] ${EnumStringRequired}, [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)] - [ValidateSet("1", "-1")] + [ValidateSet("1", "")] [System.Nullable[Int32]] ${EnumInteger}, [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)] - [ValidateSet("2", "-2")] + [ValidateSet("2", "")] [System.Nullable[Int32]] ${EnumIntegerOnly}, [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)] diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb index e3235d6990d6..f8a0184e0b93 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/api/fake_api.rb @@ -997,7 +997,7 @@ def test_enum_parameters_with_http_info(opts = {}) if @api_client.config.client_side_validation && opts[:'enum_query_string'] && !allowable_values.include?(opts[:'enum_query_string']) fail ArgumentError, "invalid value for \"enum_query_string\", must be one of #{allowable_values}" end - allowable_values = [1, -2] + allowable_values = [1, null] if @api_client.config.client_side_validation && opts[:'enum_query_integer'] && !allowable_values.include?(opts[:'enum_query_integer']) fail ArgumentError, "invalid value for \"enum_query_integer\", must be one of #{allowable_values}" end diff --git a/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_test.rb b/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_test.rb index 0044f725aada..275ba250ceee 100644 --- a/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_test.rb +++ b/samples/client/petstore/ruby-autoload/lib/petstore/models/enum_test.rb @@ -168,7 +168,7 @@ def valid? return false if @enum_string_required.nil? enum_string_required_validator = EnumAttributeValidator.new('String', ["UPPER", "lower", ""]) return false unless enum_string_required_validator.valid?(@enum_string_required) - enum_integer_validator = EnumAttributeValidator.new('Integer', [1, -1]) + enum_integer_validator = EnumAttributeValidator.new('Integer', [1, null]) return false unless enum_integer_validator.valid?(@enum_integer) enum_number_validator = EnumAttributeValidator.new('Float', [1.1, -1.2]) return false unless enum_number_validator.valid?(@enum_number) @@ -198,7 +198,7 @@ def enum_string_required=(enum_string_required) # Custom attribute writer method checking allowed values (enum). # @param [Object] enum_integer Object to be assigned def enum_integer=(enum_integer) - validator = EnumAttributeValidator.new('Integer', [1, -1]) + validator = EnumAttributeValidator.new('Integer', [1, null]) unless validator.valid?(enum_integer) fail ArgumentError, "invalid value for \"enum_integer\", must be one of #{validator.allowable_values}." end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb index e3235d6990d6..f8a0184e0b93 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb @@ -997,7 +997,7 @@ def test_enum_parameters_with_http_info(opts = {}) if @api_client.config.client_side_validation && opts[:'enum_query_string'] && !allowable_values.include?(opts[:'enum_query_string']) fail ArgumentError, "invalid value for \"enum_query_string\", must be one of #{allowable_values}" end - allowable_values = [1, -2] + allowable_values = [1, null] if @api_client.config.client_side_validation && opts[:'enum_query_integer'] && !allowable_values.include?(opts[:'enum_query_integer']) fail ArgumentError, "invalid value for \"enum_query_integer\", must be one of #{allowable_values}" end diff --git a/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_test.rb b/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_test.rb index 0044f725aada..275ba250ceee 100644 --- a/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_test.rb +++ b/samples/client/petstore/ruby-faraday/lib/petstore/models/enum_test.rb @@ -168,7 +168,7 @@ def valid? return false if @enum_string_required.nil? enum_string_required_validator = EnumAttributeValidator.new('String', ["UPPER", "lower", ""]) return false unless enum_string_required_validator.valid?(@enum_string_required) - enum_integer_validator = EnumAttributeValidator.new('Integer', [1, -1]) + enum_integer_validator = EnumAttributeValidator.new('Integer', [1, null]) return false unless enum_integer_validator.valid?(@enum_integer) enum_number_validator = EnumAttributeValidator.new('Float', [1.1, -1.2]) return false unless enum_number_validator.valid?(@enum_number) @@ -198,7 +198,7 @@ def enum_string_required=(enum_string_required) # Custom attribute writer method checking allowed values (enum). # @param [Object] enum_integer Object to be assigned def enum_integer=(enum_integer) - validator = EnumAttributeValidator.new('Integer', [1, -1]) + validator = EnumAttributeValidator.new('Integer', [1, null]) unless validator.valid?(enum_integer) fail ArgumentError, "invalid value for \"enum_integer\", must be one of #{validator.allowable_values}." end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb index a759e20736fe..ab4cbb13e213 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/api/fake_api.rb @@ -1078,7 +1078,7 @@ def test_enum_parameters_with_http_info(opts = {}) if @api_client.config.client_side_validation && opts[:'enum_query_string'] && !allowable_values.include?(opts[:'enum_query_string']) fail ArgumentError, "invalid value for \"enum_query_string\", must be one of #{allowable_values}" end - allowable_values = [1, -2] + allowable_values = [1, null] if @api_client.config.client_side_validation && opts[:'enum_query_integer'] && !allowable_values.include?(opts[:'enum_query_integer']) fail ArgumentError, "invalid value for \"enum_query_integer\", must be one of #{allowable_values}" end diff --git a/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_test.rb b/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_test.rb index 0044f725aada..275ba250ceee 100644 --- a/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_test.rb +++ b/samples/client/petstore/ruby-httpx/lib/petstore/models/enum_test.rb @@ -168,7 +168,7 @@ def valid? return false if @enum_string_required.nil? enum_string_required_validator = EnumAttributeValidator.new('String', ["UPPER", "lower", ""]) return false unless enum_string_required_validator.valid?(@enum_string_required) - enum_integer_validator = EnumAttributeValidator.new('Integer', [1, -1]) + enum_integer_validator = EnumAttributeValidator.new('Integer', [1, null]) return false unless enum_integer_validator.valid?(@enum_integer) enum_number_validator = EnumAttributeValidator.new('Float', [1.1, -1.2]) return false unless enum_number_validator.valid?(@enum_number) @@ -198,7 +198,7 @@ def enum_string_required=(enum_string_required) # Custom attribute writer method checking allowed values (enum). # @param [Object] enum_integer Object to be assigned def enum_integer=(enum_integer) - validator = EnumAttributeValidator.new('Integer', [1, -1]) + validator = EnumAttributeValidator.new('Integer', [1, null]) unless validator.valid?(enum_integer) fail ArgumentError, "invalid value for \"enum_integer\", must be one of #{validator.allowable_values}." end diff --git a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb index 85fe5da990bc..ad65ecc09e5c 100644 --- a/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb +++ b/samples/client/petstore/ruby/lib/petstore/api/fake_api.rb @@ -1078,7 +1078,7 @@ def test_enum_parameters_with_http_info(opts = {}) if @api_client.config.client_side_validation && opts[:'enum_query_string'] && !allowable_values.include?(opts[:'enum_query_string']) fail ArgumentError, "invalid value for \"enum_query_string\", must be one of #{allowable_values}" end - allowable_values = [1, -2] + allowable_values = [1, null] if @api_client.config.client_side_validation && opts[:'enum_query_integer'] && !allowable_values.include?(opts[:'enum_query_integer']) fail ArgumentError, "invalid value for \"enum_query_integer\", must be one of #{allowable_values}" end diff --git a/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb b/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb index 0044f725aada..275ba250ceee 100644 --- a/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb +++ b/samples/client/petstore/ruby/lib/petstore/models/enum_test.rb @@ -168,7 +168,7 @@ def valid? return false if @enum_string_required.nil? enum_string_required_validator = EnumAttributeValidator.new('String', ["UPPER", "lower", ""]) return false unless enum_string_required_validator.valid?(@enum_string_required) - enum_integer_validator = EnumAttributeValidator.new('Integer', [1, -1]) + enum_integer_validator = EnumAttributeValidator.new('Integer', [1, null]) return false unless enum_integer_validator.valid?(@enum_integer) enum_number_validator = EnumAttributeValidator.new('Float', [1.1, -1.2]) return false unless enum_number_validator.valid?(@enum_number) @@ -198,7 +198,7 @@ def enum_string_required=(enum_string_required) # Custom attribute writer method checking allowed values (enum). # @param [Object] enum_integer Object to be assigned def enum_integer=(enum_integer) - validator = EnumAttributeValidator.new('Integer', [1, -1]) + validator = EnumAttributeValidator.new('Integer', [1, null]) unless validator.valid?(enum_integer) fail ArgumentError, "invalid value for \"enum_integer\", must be one of #{validator.allowable_values}." end diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java index acfbd99761f5..bddd431ad65c 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/EnumTest.java @@ -107,7 +107,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java index 3a9f8f91d4ea..26a4180e4603 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -27,7 +27,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java index 2153d6b4cc96..cda47f208fb8 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/EnumTestDto.java @@ -107,7 +107,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java index fe4c0e8bdca5..97ff1bb56faa 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java @@ -29,7 +29,7 @@ public class TypeHolderDefaultDto { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 1dff5ad6a256..aba98e491518 100644 --- a/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/alamofireLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -442,7 +442,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 1440ed063265..933e213ff41e 100644 --- a/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/asyncAwaitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -378,7 +378,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 341a9d534c4e..b67659d964da 100644 --- a/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/combineLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -517,7 +517,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index f28ddd9d1286..95b437b7fd61 100644 --- a/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/default/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -486,7 +486,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/frozenEnums/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/frozenEnums/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 102ea93f6df5..b99c546dbcf4 100644 --- a/samples/client/petstore/swift5/frozenEnums/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/frozenEnums/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -442,7 +442,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 62aec8ada0c9..5c4e5b4eeccd 100644 --- a/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/nonPublicApi/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -442,7 +442,7 @@ internal class FakeAPI { */ internal enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 7b9ae5cebe68..d946fe7498ab 100644 --- a/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/objcCompatible/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -442,7 +442,7 @@ import AnyCodable */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 02bfa1c5f947..f2fea87748c8 100644 --- a/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/promisekitLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -443,7 +443,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 6113837af712..3ea64f095e76 100644 --- a/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/readonlyProperties/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -442,7 +442,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 4b15d4cfd83d..e72a9bb768a2 100644 --- a/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/resultLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -442,7 +442,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index e23c89811b94..dbf370b718a1 100644 --- a/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/rxswiftLibrary/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -491,7 +491,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index d03476d2f400..efa7039e355f 100644 --- a/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/urlsessionLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -445,7 +445,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift index 014da8378336..1008d834ef62 100644 --- a/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/vaporLibrary/Sources/PetstoreClient/APIs/FakeAPI.swift @@ -538,7 +538,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable, Content { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift index 6113837af712..3ea64f095e76 100644 --- a/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift +++ b/samples/client/petstore/swift5/x-swift-hashable/PetstoreClient/Classes/OpenAPIs/APIs/FakeAPI.swift @@ -442,7 +442,7 @@ open class FakeAPI { */ public enum EnumQueryInteger_testEnumParameters: Int, CaseIterable { case _1 = 1 - case number2 = -2 + case numberNull = null } /** diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts index 69e7d4c0217c..aeae01084eb9 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts @@ -120,7 +120,7 @@ export type EnumTestEnumStringRequiredEnum = typeof EnumTestEnumStringRequiredEn */ export const EnumTestEnumIntegerEnum = { NUMBER_1: 1, - NUMBER_MINUS_1: -1 + NUMBER_null: null } as const; export type EnumTestEnumIntegerEnum = typeof EnumTestEnumIntegerEnum[keyof typeof EnumTestEnumIntegerEnum]; diff --git a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts index 69e7d4c0217c..aeae01084eb9 100644 --- a/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/snakecase-discriminator/models/EnumTest.ts @@ -120,7 +120,7 @@ export type EnumTestEnumStringRequiredEnum = typeof EnumTestEnumStringRequiredEn */ export const EnumTestEnumIntegerEnum = { NUMBER_1: 1, - NUMBER_MINUS_1: -1 + NUMBER_null: null } as const; export type EnumTestEnumIntegerEnum = typeof EnumTestEnumIntegerEnum[keyof typeof EnumTestEnumIntegerEnum]; diff --git a/samples/client/petstore/xojo/client/OpenAPIClient.xojo_resources b/samples/client/petstore/xojo/client/OpenAPIClient.xojo_resources index a6d4df61c2d3767f34ee2ed1d957f910d516d600..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 GIT binary patch literal 0 HcmV?d00001 literal 12 RcmeZt_6ufUVBi2^1^^6r0X6^t diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart index 80555c14d038..6b824b45636e 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake-json_serializable/lib/src/model/enum_test.dart @@ -198,8 +198,8 @@ enum EnumTestEnumStringRequiredEnum { enum EnumTestEnumIntegerEnum { @JsonValue(1) number1, - @JsonValue(-1) - numberNegative1, + @JsonValue(null) + null_, @JsonValue(11184809) unknownDefaultOpenApi, } diff --git a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/enum_test.dart b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/enum_test.dart index 831f5b9d6d2d..1b917869ca1a 100644 --- a/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/enum_test.dart +++ b/samples/openapi3/client/petstore/dart-dio/petstore_client_lib_fake/lib/src/model/enum_test.dart @@ -36,7 +36,7 @@ abstract class EnumTest implements Built { @BuiltValueField(wireName: r'enum_integer') EnumTestEnumIntegerEnum? get enumInteger; - // enum enumIntegerEnum { 1, -1, }; + // enum enumIntegerEnum { 1, , }; @BuiltValueField(wireName: r'enum_number') EnumTestEnumNumberEnum? get enumNumber; @@ -286,8 +286,8 @@ class EnumTestEnumIntegerEnum extends EnumClass { @BuiltValueEnumConst(wireNumber: 1) static const EnumTestEnumIntegerEnum number1 = _$enumTestEnumIntegerEnum_number1; - @BuiltValueEnumConst(wireNumber: -1) - static const EnumTestEnumIntegerEnum numberNegative1 = _$enumTestEnumIntegerEnum_numberNegative1; + @BuiltValueEnumConst(wireNumber: null) + static const EnumTestEnumIntegerEnum null_ = _$enumTestEnumIntegerEnum_null_; @BuiltValueEnumConst(wireNumber: 11184809, fallback: true) static const EnumTestEnumIntegerEnum unknownDefaultOpenApi = _$enumTestEnumIntegerEnum_unknownDefaultOpenApi; diff --git a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_test.dart b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_test.dart index d3e405221f9b..0b47fbeb9a96 100644 --- a/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_test.dart +++ b/samples/openapi3/client/petstore/dart2/petstore_client_lib_fake/lib/model/enum_test.dart @@ -370,12 +370,12 @@ class EnumTestEnumIntegerEnum { int toJson() => value; static const number1 = EnumTestEnumIntegerEnum._(1); - static const numberNegative1 = EnumTestEnumIntegerEnum._(-1); + static const null_ = EnumTestEnumIntegerEnum._(null); /// List of all possible values in this [enum][EnumTestEnumIntegerEnum]. static const values = [ number1, - numberNegative1, + null_, ]; static EnumTestEnumIntegerEnum? fromJson(dynamic value) => EnumTestEnumIntegerEnumTypeTransformer().decode(value); @@ -415,7 +415,7 @@ class EnumTestEnumIntegerEnumTypeTransformer { if (data != null) { switch (data) { case 1: return EnumTestEnumIntegerEnum.number1; - case -1: return EnumTestEnumIntegerEnum.numberNegative1; + case null: return EnumTestEnumIntegerEnum.null_; default: if (!allowNull) { throw ArgumentError('Unknown enum value to decode: $data'); diff --git a/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml b/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml index f008fd5193ab..544c277b1212 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml +++ b/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml @@ -745,7 +745,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1592,7 +1592,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/api/openapi.yaml b/samples/openapi3/client/petstore/java/jersey2-java8/api/openapi.yaml index 2dcf21ae0b3d..9951d3211e64 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/api/openapi.yaml +++ b/samples/openapi3/client/petstore/java/jersey2-java8/api/openapi.yaml @@ -760,7 +760,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1565,13 +1565,13 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_integer_only: enum: - 2 - - -2 + - null type: integer enum_number: enum: diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/docs/EnumTest.md b/samples/openapi3/client/petstore/java/jersey2-java8/docs/EnumTest.md index 3e226e18b50b..7a3c0981f505 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/docs/EnumTest.md +++ b/samples/openapi3/client/petstore/java/jersey2-java8/docs/EnumTest.md @@ -44,7 +44,7 @@ | Name | Value | |---- | -----| | NUMBER_1 | 1 | -| NUMBER_MINUS_1 | -1 | +| NUMBER_null | null | @@ -53,7 +53,7 @@ | Name | Value | |---- | -----| | NUMBER_2 | 2 | -| NUMBER_MINUS_2 | -2 | +| NUMBER_null | null | diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md b/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md index 83f469863c9a..c496e871e6f8 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/java/jersey2-java8/docs/FakeApi.md @@ -754,7 +754,7 @@ public class Example { | **enumHeaderString** | **String**| Header parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | | **enumQueryStringArray** | **List<String>**| Query parameter enum test (string array) | [optional] [enum: >, $] | | **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | -| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] | +| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, ] | | **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] | | **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [enum: >, $] | | **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] | 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 2d8ed6a5689a..bfd73f40e495 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 @@ -137,7 +137,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; @@ -175,7 +175,7 @@ public static EnumIntegerEnum fromValue(Integer value) { public enum EnumIntegerOnlyEnum { NUMBER_2(2), - NUMBER_MINUS_2(-2); + NUMBER_null(null); private Integer value; diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py index 8c67ff17e316..86923434ab95 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/enum_test.py @@ -78,8 +78,8 @@ def enum_integer_validate_enum(cls, value): if value is None: return value - if value not in (1, -1): - raise ValueError("must be one of enum values (1, -1)") + if value not in (1, null): + raise ValueError("must be one of enum values (1, null)") return value @field_validator('enum_number') diff --git a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer_default_value.py index 970487bb0c4d..369ebeb55e71 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python-aiohttp/petstore_api/models/outer_enum_integer_default_value.py @@ -34,7 +34,7 @@ class OuterEnumIntegerDefaultValue(int, Enum): """ allowed enum values """ - NUMBER_MINUS_1 = -1 + NUMBER_null = null NUMBER_0 = 0 NUMBER_1 = 1 NUMBER_2 = 2 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/models/enum_test.py index b3899720fd30..9c8685a36a6f 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/models/enum_test.py @@ -73,8 +73,8 @@ def enum_integer_validate_enum(cls, value): if value is None: return value - if value not in (1, -1): - raise ValueError("must be one of enum values (1, -1)") + if value not in (1, null): + raise ValueError("must be one of enum values (1, null)") return value @validator('enum_number') diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/models/outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/models/outer_enum_integer_default_value.py index 36381197bb71..d5cf1c2fe453 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/models/outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/petstore_api/models/outer_enum_integer_default_value.py @@ -29,7 +29,7 @@ class OuterEnumIntegerDefaultValue(int, Enum): """ allowed enum values """ - NUMBER_MINUS_1 = -1 + NUMBER_null = null NUMBER_0 = 0 NUMBER_1 = 1 NUMBER_2 = 2 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/models/enum_test.py index 8a06dc2f0cf3..cfe4f3aea216 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/models/enum_test.py @@ -74,8 +74,8 @@ def enum_integer_validate_enum(cls, value): if value is None: return value - if value not in (1, -1): - raise ValueError("must be one of enum values (1, -1)") + if value not in (1, null): + raise ValueError("must be one of enum values (1, null)") return value @validator('enum_number') diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/models/outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/models/outer_enum_integer_default_value.py index 36381197bb71..d5cf1c2fe453 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/models/outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/petstore_api/models/outer_enum_integer_default_value.py @@ -29,7 +29,7 @@ class OuterEnumIntegerDefaultValue(int, Enum): """ allowed enum values """ - NUMBER_MINUS_1 = -1 + NUMBER_null = null NUMBER_0 = 0 NUMBER_1 = 1 NUMBER_2 = 2 diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py b/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py index 45b1c732feca..2c93deeef99d 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/enum_test.py @@ -79,8 +79,8 @@ def enum_integer_validate_enum(cls, value): if value is None: return value - if value not in (1, -1): - raise ValueError("must be one of enum values (1, -1)") + if value not in (1, null): + raise ValueError("must be one of enum values (1, null)") return value @field_validator('enum_number') diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer_default_value.py b/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer_default_value.py index 970487bb0c4d..369ebeb55e71 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer_default_value.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/outer_enum_integer_default_value.py @@ -34,7 +34,7 @@ class OuterEnumIntegerDefaultValue(int, Enum): """ allowed enum values """ - NUMBER_MINUS_1 = -1 + NUMBER_null = null NUMBER_0 = 0 NUMBER_1 = 1 NUMBER_2 = 2 diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumTest.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumTest.java index 3b9b41f5acfd..886e8f712cf3 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/EnumTest.java @@ -109,7 +109,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/TypeHolderDefault.java index e12f5d63335b..72a6bcaa7603 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -29,7 +29,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/TypeHolderExample.java index 76999f585020..aa0fca93b91f 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -108,7 +108,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @Schema(name = "integer_item", example = "-2", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(name = "integer_item", requiredMode = Schema.RequiredMode.REQUIRED) @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/XmlItem.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/XmlItem.java index b1faee569b13..854a156a3277 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/XmlItem.java @@ -142,7 +142,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "attribute_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -250,7 +250,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "name_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -386,7 +386,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "prefix_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -522,7 +522,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "namespace_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -658,7 +658,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "prefix_ns_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java index 763456b14256..766606470db7 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java @@ -109,7 +109,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java index e951448b539b..ee03c37cdd54 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -29,7 +29,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java index 2bdfa915094a..822315640881 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -124,7 +124,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @Schema(name = "integer_item", example = "-2", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(name = "integer_item", requiredMode = Schema.RequiredMode.REQUIRED) @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java index b1faee569b13..854a156a3277 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java @@ -142,7 +142,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "attribute_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -250,7 +250,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "name_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -386,7 +386,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "prefix_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -522,7 +522,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "namespace_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -658,7 +658,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "prefix_ns_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/resources/openapi.yaml b/samples/openapi3/server/petstore/springboot-delegate/src/main/resources/openapi.yaml index 3ebfb97645f2..56d37b93ecb3 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/resources/openapi.yaml +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1939,7 +1939,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1973,7 +1972,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2008,7 +2006,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2034,7 +2031,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2069,7 +2065,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2104,7 +2099,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2141,7 +2135,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java index 763456b14256..766606470db7 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java @@ -109,7 +109,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java index e951448b539b..ee03c37cdd54 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -29,7 +29,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java index 2bdfa915094a..822315640881 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -124,7 +124,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @Schema(name = "integer_item", example = "-2", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(name = "integer_item", requiredMode = Schema.RequiredMode.REQUIRED) @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java index b1faee569b13..854a156a3277 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java @@ -142,7 +142,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "attribute_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -250,7 +250,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "name_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -386,7 +386,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "prefix_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -522,7 +522,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "namespace_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -658,7 +658,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "prefix_ns_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/resources/openapi.yaml b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/resources/openapi.yaml index 3ebfb97645f2..56d37b93ecb3 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/resources/openapi.yaml +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1939,7 +1939,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1973,7 +1972,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2008,7 +2006,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2034,7 +2031,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2069,7 +2065,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2104,7 +2099,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2141,7 +2135,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/schema/petstore/mysql/mysql_schema.sql b/samples/schema/petstore/mysql/mysql_schema.sql index 0c526bdabd3e..33d23af12c7f 100644 --- a/samples/schema/petstore/mysql/mysql_schema.sql +++ b/samples/schema/petstore/mysql/mysql_schema.sql @@ -171,7 +171,7 @@ CREATE TABLE IF NOT EXISTS `EnumArrays` ( CREATE TABLE IF NOT EXISTS `Enum_Test` ( `enum_string` ENUM('UPPER', 'lower', '') DEFAULT NULL, `enum_string_required` ENUM('UPPER', 'lower', '') NOT NULL, - `enum_integer` ENUM('1', '-1') DEFAULT NULL, + `enum_integer` ENUM('1', 'null') DEFAULT NULL, `enum_number` ENUM('1.1', '-1.2') DEFAULT NULL, `outerEnum` TEXT DEFAULT NULL, `outerEnumInteger` TEXT DEFAULT NULL, diff --git a/samples/server/petstore/cpp-restbed/generated/3_0/model/Enum_Test.cpp b/samples/server/petstore/cpp-restbed/generated/3_0/model/Enum_Test.cpp index 9d6729df2628..0d01016ade0b 100644 --- a/samples/server/petstore/cpp-restbed/generated/3_0/model/Enum_Test.cpp +++ b/samples/server/petstore/cpp-restbed/generated/3_0/model/Enum_Test.cpp @@ -125,7 +125,7 @@ int32_t Enum_Test::getEnumInteger() const void Enum_Test::setEnumInteger(int32_t value) { static const std::array allowedValues = { - 1, -1 + 1, null }; if (std::find(allowedValues.begin(), allowedValues.end(), value) != allowedValues.end()) { diff --git a/samples/server/petstore/java-helidon-server/mp/src/main/java/org/openapitools/server/model/EnumTest.java b/samples/server/petstore/java-helidon-server/mp/src/main/java/org/openapitools/server/model/EnumTest.java index c5054303fc57..05f1a192c399 100644 --- a/samples/server/petstore/java-helidon-server/mp/src/main/java/org/openapitools/server/model/EnumTest.java +++ b/samples/server/petstore/java-helidon-server/mp/src/main/java/org/openapitools/server/model/EnumTest.java @@ -131,7 +131,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { - NUMBER_1(Integer.valueOf(1)), NUMBER_MINUS_1(Integer.valueOf(-1)); + NUMBER_1(Integer.valueOf(1)), NUMBER_null(Integer.valueOf(null)); private Integer value; diff --git a/samples/server/petstore/java-helidon-server/mp/src/main/resources/META-INF/openapi.yml b/samples/server/petstore/java-helidon-server/mp/src/main/resources/META-INF/openapi.yml index efc990069c1b..21f98de909e2 100644 --- a/samples/server/petstore/java-helidon-server/mp/src/main/resources/META-INF/openapi.yml +++ b/samples/server/petstore/java-helidon-server/mp/src/main/resources/META-INF/openapi.yml @@ -787,7 +787,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1677,7 +1677,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: diff --git a/samples/server/petstore/java-helidon-server/se/src/main/java/org/openapitools/server/model/EnumTest.java b/samples/server/petstore/java-helidon-server/se/src/main/java/org/openapitools/server/model/EnumTest.java index 54b36a98ed9a..b95d66b348ff 100644 --- a/samples/server/petstore/java-helidon-server/se/src/main/java/org/openapitools/server/model/EnumTest.java +++ b/samples/server/petstore/java-helidon-server/se/src/main/java/org/openapitools/server/model/EnumTest.java @@ -97,7 +97,7 @@ public static EnumStringRequiredEnum fromValue(String text) { */ public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/java-helidon-server/se/src/main/resources/META-INF/openapi.yml b/samples/server/petstore/java-helidon-server/se/src/main/resources/META-INF/openapi.yml index efc990069c1b..21f98de909e2 100644 --- a/samples/server/petstore/java-helidon-server/se/src/main/resources/META-INF/openapi.yml +++ b/samples/server/petstore/java-helidon-server/se/src/main/resources/META-INF/openapi.yml @@ -787,7 +787,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1677,7 +1677,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: diff --git a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java index fa8a808eb7cf..65a0e9c6aca7 100644 --- a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/api/FakeApi.java @@ -181,7 +181,7 @@ public Response testEnumParameters(@ApiParam(value = "Header parameter enum test ,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString ,@ApiParam(value = "Query parameter enum test (string array)", allowableValues=">, $") @QueryParam("enum_query_string_array") List enumQueryStringArray ,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString -,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger +,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, ") @QueryParam("enum_query_integer") Integer enumQueryInteger ,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble ,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray ,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString diff --git a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/TypeHolderExample.java index 74866248fa27..b4cf6f2180f5 100644 --- a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -96,7 +96,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * Get integerItem * @return integerItem **/ - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") public Integer getIntegerItem() { return integerItem; } diff --git a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/XmlItem.java index a2c58cd98949..e5da225c23b3 100644 --- a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/XmlItem.java @@ -147,7 +147,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * Get attributeInteger * @return attributeInteger **/ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getAttributeInteger() { return attributeInteger; } @@ -245,7 +245,7 @@ public XmlItem nameInteger(Integer nameInteger) { * Get nameInteger * @return nameInteger **/ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getNameInteger() { return nameInteger; } @@ -369,7 +369,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * Get prefixInteger * @return prefixInteger **/ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getPrefixInteger() { return prefixInteger; } @@ -493,7 +493,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * Get namespaceInteger * @return namespaceInteger **/ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getNamespaceInteger() { return namespaceInteger; } @@ -617,7 +617,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * Get prefixNsInteger * @return prefixNsInteger **/ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getPrefixNsInteger() { return prefixNsInteger; } diff --git a/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json b/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json index 605ee8735333..55a8ee39f5bf 100644 --- a/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json +++ b/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json @@ -946,7 +946,7 @@ "in" : "query", "name" : "enum_query_integer", "schema" : { - "enum" : [ 1, -2 ], + "enum" : [ 1, null ], "format" : "int32", "type" : "integer" } @@ -2444,7 +2444,6 @@ "type" : "number" }, "integer_item" : { - "example" : -2, "type" : "integer" }, "bool_item" : { @@ -2479,7 +2478,6 @@ } }, "attribute_integer" : { - "example" : -2, "type" : "integer", "xml" : { "attribute" : true @@ -2516,7 +2514,6 @@ } }, "name_integer" : { - "example" : -2, "type" : "integer", "xml" : { "name" : "xml_name_integer" @@ -2566,7 +2563,6 @@ } }, "prefix_integer" : { - "example" : -2, "type" : "integer", "xml" : { "prefix" : "ef" @@ -2616,7 +2612,6 @@ } }, "namespace_integer" : { - "example" : -2, "type" : "integer", "xml" : { "namespace" : "http://c.com/schema" @@ -2668,7 +2663,6 @@ } }, "prefix_ns_integer" : { - "example" : -2, "type" : "integer", "xml" : { "namespace" : "http://c.com/schema", diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/TypeHolderExample.java index 26955d28f6f3..5746de923a20 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -24,7 +24,7 @@ public class TypeHolderExample { @ApiModelProperty(example = "1.234", required = true, value = "") private Float floatItem; - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") private Integer integerItem; @ApiModelProperty(example = "true", required = true, value = "") diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/XmlItem.java index 0565b58f729e..9742b787e4ee 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/XmlItem.java @@ -21,7 +21,7 @@ public class XmlItem { @Valid private BigDecimal attributeNumber; - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") private Integer attributeInteger; @ApiModelProperty(example = "true", value = "") @@ -37,7 +37,7 @@ public class XmlItem { @Valid private BigDecimal nameNumber; - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") private Integer nameInteger; @ApiModelProperty(example = "true", value = "") @@ -56,7 +56,7 @@ public class XmlItem { @Valid private BigDecimal prefixNumber; - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") private Integer prefixInteger; @ApiModelProperty(example = "true", value = "") @@ -75,7 +75,7 @@ public class XmlItem { @Valid private BigDecimal namespaceNumber; - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") private Integer namespaceInteger; @ApiModelProperty(example = "true", value = "") @@ -94,7 +94,7 @@ public class XmlItem { @Valid private BigDecimal prefixNsNumber; - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") private Integer prefixNsInteger; @ApiModelProperty(example = "true", value = "") diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java index 899dfde8ef38..34a1c6be6eb1 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/FakeApi.java @@ -185,7 +185,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, ") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java index 8416ff31515f..7899e1efa85d 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -134,7 +134,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem **/ @JsonProperty(value = "integer_item") - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java index 859d389bd685..3f3438d335e5 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/XmlItem.java @@ -229,7 +229,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger **/ @JsonProperty(value = "attribute_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getAttributeInteger() { return attributeInteger; @@ -337,7 +337,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger **/ @JsonProperty(value = "name_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getNameInteger() { return nameInteger; @@ -473,7 +473,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger **/ @JsonProperty(value = "prefix_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getPrefixInteger() { return prefixInteger; @@ -609,7 +609,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger **/ @JsonProperty(value = "namespace_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getNamespaceInteger() { return namespaceInteger; @@ -745,7 +745,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger **/ @JsonProperty(value = "prefix_ns_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java index 32c652a19ee8..5dc8d884efef 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/api/FakeApi.java @@ -240,7 +240,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, ") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString, securityContext); } diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java index 3812ba5380d7..7dc545619583 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/EnumTest.java @@ -123,7 +123,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; 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 c230c2ce3b0d..f4a82ce90273 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 @@ -97,7 +97,7 @@ public TypeHolderExample integerItem(Integer integerItem) { } - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") @NotNull public Integer getIntegerItem() { 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 c61b8bd7f096..9af11961a47d 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 @@ -98,7 +98,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -209,7 +209,7 @@ public XmlItem nameInteger(Integer nameInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -355,7 +355,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -501,7 +501,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -647,7 +647,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml index c448d48c3deb..9bb4e1ad5b15 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml +++ b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml @@ -778,7 +778,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1924,7 +1924,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1959,7 +1958,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1985,7 +1983,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2020,7 +2017,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2055,7 +2051,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2092,7 +2087,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java index b63c7d14b00c..066376145cca 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -109,7 +109,7 @@ public TypeHolderExample integerItem(Integer integerItem) { } - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") @NotNull public Integer getIntegerItem() { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/XmlItem.java index 30acc08d249d..e9eb5a5441ea 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/XmlItem.java @@ -133,7 +133,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -244,7 +244,7 @@ public XmlItem nameInteger(Integer nameInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -390,7 +390,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -536,7 +536,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -682,7 +682,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec-jakarta/src/main/openapi/openapi.yaml index c448d48c3deb..9bb4e1ad5b15 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/main/openapi/openapi.yaml +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/main/openapi/openapi.yaml @@ -778,7 +778,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1924,7 +1924,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1959,7 +1958,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1985,7 +1983,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2020,7 +2017,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2055,7 +2051,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2092,7 +2087,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java index 5406badbcdeb..d683219671cd 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -107,7 +107,7 @@ public TypeHolderExample integerItem(Integer integerItem) { } - @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "-2", required = true, description = "") + @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") @JsonProperty("integer_item") @NotNull public Integer getIntegerItem() { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/XmlItem.java index 2c6485a0c1b9..b925c01a3b5e 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/XmlItem.java @@ -131,7 +131,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { } - @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "-2", description = "") + @org.eclipse.microprofile.openapi.annotations.media.Schema(description = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -242,7 +242,7 @@ public XmlItem nameInteger(Integer nameInteger) { } - @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "-2", description = "") + @org.eclipse.microprofile.openapi.annotations.media.Schema(description = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -388,7 +388,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { } - @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "-2", description = "") + @org.eclipse.microprofile.openapi.annotations.media.Schema(description = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -534,7 +534,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { } - @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "-2", description = "") + @org.eclipse.microprofile.openapi.annotations.media.Schema(description = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -680,7 +680,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { } - @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "-2", description = "") + @org.eclipse.microprofile.openapi.annotations.media.Schema(description = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/main/resources/META-INF/openapi.yaml b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/main/resources/META-INF/openapi.yaml index c448d48c3deb..9bb4e1ad5b15 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/main/resources/META-INF/openapi.yaml +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/main/resources/META-INF/openapi.yaml @@ -778,7 +778,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1924,7 +1924,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1959,7 +1958,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1985,7 +1983,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2020,7 +2017,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2055,7 +2051,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2092,7 +2087,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema 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 181bfc1ef902..8d88dadeae9b 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 @@ -109,7 +109,7 @@ public TypeHolderExample integerItem(Integer integerItem) { } - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") @NotNull public Integer getIntegerItem() { 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 982449f3e158..ef806d4f50cc 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 @@ -133,7 +133,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -244,7 +244,7 @@ public XmlItem nameInteger(Integer nameInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -390,7 +390,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -536,7 +536,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -682,7 +682,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { } - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml index c448d48c3deb..9bb4e1ad5b15 100644 --- a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml +++ b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml @@ -778,7 +778,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) @@ -1924,7 +1924,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -1959,7 +1958,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -1985,7 +1983,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2020,7 +2017,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2055,7 +2051,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2092,7 +2087,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java index b37b7cad26e7..841f944790fe 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/FakeApi.java @@ -183,7 +183,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, ") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java index dc7765fb9661..222375a2f268 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -133,7 +133,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem **/ @JsonProperty(value = "integer_item") - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java index 36419211b3a7..797595b844ed 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/XmlItem.java @@ -228,7 +228,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger **/ @JsonProperty(value = "attribute_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getAttributeInteger() { return attributeInteger; @@ -336,7 +336,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger **/ @JsonProperty(value = "name_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getNameInteger() { return nameInteger; @@ -472,7 +472,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger **/ @JsonProperty(value = "prefix_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getPrefixInteger() { return prefixInteger; @@ -608,7 +608,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger **/ @JsonProperty(value = "namespace_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getNamespaceInteger() { return namespaceInteger; @@ -744,7 +744,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger **/ @JsonProperty(value = "prefix_ns_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java index ad937f064f9e..e93da0c6e0c0 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/FakeApi.java @@ -184,7 +184,7 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true) @io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = Void.class), @io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) }) - public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1, ") @QueryParam("enum_query_integer") Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java index dc7765fb9661..222375a2f268 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -133,7 +133,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem **/ @JsonProperty(value = "integer_item") - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @NotNull public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java index 36419211b3a7..797595b844ed 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/XmlItem.java @@ -228,7 +228,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger **/ @JsonProperty(value = "attribute_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getAttributeInteger() { return attributeInteger; @@ -336,7 +336,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger **/ @JsonProperty(value = "name_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getNameInteger() { return nameInteger; @@ -472,7 +472,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger **/ @JsonProperty(value = "prefix_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getPrefixInteger() { return prefixInteger; @@ -608,7 +608,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger **/ @JsonProperty(value = "namespace_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getNamespaceInteger() { return namespaceInteger; @@ -744,7 +744,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger **/ @JsonProperty(value = "prefix_ns_integer") - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java index 74445e793666..50f6ad835191 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/api/FakeApi.java @@ -244,7 +244,7 @@ public Response testEndpointParameters(@Schema(description = "None") @QueryParam @ApiResponse(responseCode = "404", description = "Not found", content = @Content(schema = @Schema(implementation = Void.class))), }, tags={ "fake", }) - public Response testEnumParameters(@Schema(description = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@Schema(description = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@Schema(description = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@Schema(description = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@Schema(description = "Query parameter enum test (double)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger,@Schema(description = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@Schema(description = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@Schema(description = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @QueryParam("enum_form_string_array") List enumFormStringArray,@Schema(description = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) + public Response testEnumParameters(@Schema(description = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List enumHeaderStringArray,@Schema(description = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,@Schema(description = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List enumQueryStringArray,@Schema(description = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue = "-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,@Schema(description = "Query parameter enum test (double)", allowableValues="1, ") @QueryParam("enum_query_integer") Integer enumQueryInteger,@Schema(description = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble,@Schema(description = "") @QueryParam("enum_query_model_array") @Valid List enumQueryModelArray,@Schema(description = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @QueryParam("enum_form_string_array") List enumFormStringArray,@Schema(description = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_form_string") String enumFormString,@Context SecurityContext securityContext) throws NotFoundException { return delegate.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString, securityContext); } diff --git a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java index 63b217c3b2a7..36ef18ed28df 100644 --- a/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs/jersey3/src/gen/java/org/openapitools/model/EnumTest.java @@ -122,7 +122,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/api/openapi.yaml b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/api/openapi.yaml index 534372bf58f9..6b6dd9f649bd 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/api/openapi.yaml +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/api/openapi.yaml @@ -643,7 +643,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer - description: Query parameter enum test (double) diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumTest.java index 763456b14256..766606470db7 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/EnumTest.java @@ -109,7 +109,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/TypeHolderDefault.java index e951448b539b..ee03c37cdd54 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -29,7 +29,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/TypeHolderExample.java index 2bdfa915094a..822315640881 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -124,7 +124,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @Schema(name = "integer_item", example = "-2", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(name = "integer_item", requiredMode = Schema.RequiredMode.REQUIRED) @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/XmlItem.java index b1faee569b13..854a156a3277 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/src/main/java/org/openapitools/model/XmlItem.java @@ -142,7 +142,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "attribute_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -250,7 +250,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "name_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -386,7 +386,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "prefix_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -522,7 +522,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "namespace_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -658,7 +658,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "prefix_ns_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java index 00ece07e0c19..a758e93d8e81 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/api/FakeApi.java @@ -448,7 +448,7 @@ default ResponseEntity testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java index f2acedc908f7..95a0a4b6cfc7 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/EnumTest.java @@ -109,7 +109,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java index 4f8dee96f7a3..46432f85c572 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -29,7 +29,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java index bfffc4b0a2f7..64b23c3adae3 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -124,7 +124,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java index 27ef26a2a96b..e6d633a4f467 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/XmlItem.java @@ -142,7 +142,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -250,7 +250,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -386,7 +386,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -522,7 +522,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -658,7 +658,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/resources/openapi.yaml index 3ebfb97645f2..56d37b93ecb3 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1939,7 +1939,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1973,7 +1972,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2008,7 +2006,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2034,7 +2031,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2069,7 +2065,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2104,7 +2099,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2141,7 +2135,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java index 00ece07e0c19..a758e93d8e81 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/FakeApi.java @@ -448,7 +448,7 @@ default ResponseEntity testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java index 427020a13a25..d09eb25404cb 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/EnumTest.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java index 10c10bf661d3..8dc237d833e1 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -30,7 +30,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java index 9bde7f0359e0..937ea9b9e626 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -125,7 +125,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java index 592030bb8800..cf4c9f3687ad 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/XmlItem.java @@ -143,7 +143,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -251,7 +251,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -387,7 +387,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -523,7 +523,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -659,7 +659,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-beanvalidation/src/main/resources/openapi.yaml index 3ebfb97645f2..56d37b93ecb3 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-beanvalidation/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1939,7 +1939,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1973,7 +1972,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2008,7 +2006,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2034,7 +2031,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2069,7 +2065,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2104,7 +2099,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2141,7 +2135,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java index c45620b8dae1..221c5fa855b0 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -407,7 +407,7 @@ default ResponseEntity testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java index 427020a13a25..d09eb25404cb 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java index 10c10bf661d3..8dc237d833e1 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -30,7 +30,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index 9bde7f0359e0..937ea9b9e626 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -125,7 +125,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java index 592030bb8800..cf4c9f3687ad 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -143,7 +143,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -251,7 +251,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -387,7 +387,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -523,7 +523,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -659,7 +659,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-delegate-j8/src/main/resources/openapi.yaml index 3ebfb97645f2..56d37b93ecb3 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-delegate-j8/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1939,7 +1939,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1973,7 +1972,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2008,7 +2006,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2034,7 +2031,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2069,7 +2065,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2104,7 +2099,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2141,7 +2135,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java index c45620b8dae1..221c5fa855b0 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/FakeApi.java @@ -407,7 +407,7 @@ default ResponseEntity testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java index 427020a13a25..d09eb25404cb 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/EnumTest.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java index 10c10bf661d3..8dc237d833e1 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -30,7 +30,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java index 9bde7f0359e0..937ea9b9e626 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -125,7 +125,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java index 592030bb8800..cf4c9f3687ad 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/XmlItem.java @@ -143,7 +143,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -251,7 +251,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -387,7 +387,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -523,7 +523,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -659,7 +659,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-delegate/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-delegate/src/main/resources/openapi.yaml index 3ebfb97645f2..56d37b93ecb3 100644 --- a/samples/server/petstore/springboot-delegate/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-delegate/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1939,7 +1939,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1973,7 +1972,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2008,7 +2006,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2034,7 +2031,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2069,7 +2065,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2104,7 +2099,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2141,7 +2135,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java index c1dca403316b..50d9801b615c 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/FakeApi.java @@ -448,7 +448,7 @@ default ResponseEntity testEndpointParameters( default ResponseEntity testEnumParameters( @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java index 427020a13a25..d09eb25404cb 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/EnumTest.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java index 10c10bf661d3..8dc237d833e1 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -30,7 +30,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java index 9bde7f0359e0..937ea9b9e626 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -125,7 +125,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java index 592030bb8800..cf4c9f3687ad 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/XmlItem.java @@ -143,7 +143,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -251,7 +251,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -387,7 +387,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -523,7 +523,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -659,7 +659,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-implicitHeaders/src/main/resources/openapi.yaml index 3ebfb97645f2..56d37b93ecb3 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1939,7 +1939,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1973,7 +1972,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2008,7 +2006,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2034,7 +2031,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2069,7 +2065,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2104,7 +2099,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2141,7 +2135,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java index 73aa18cc37c8..a0b95b93ae1b 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/api/FakeApi.java @@ -433,7 +433,7 @@ default Mono testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java index 427020a13a25..d09eb25404cb 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/EnumTest.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/TypeHolderDefault.java index 10c10bf661d3..8dc237d833e1 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -30,7 +30,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/TypeHolderExample.java index 9bde7f0359e0..937ea9b9e626 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -125,7 +125,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java index 592030bb8800..cf4c9f3687ad 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/XmlItem.java @@ -143,7 +143,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -251,7 +251,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -387,7 +387,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -523,7 +523,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -659,7 +659,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/resources/openapi.yaml index 3ebfb97645f2..56d37b93ecb3 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1939,7 +1939,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1973,7 +1972,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2008,7 +2006,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2034,7 +2031,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2069,7 +2065,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2104,7 +2099,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2141,7 +2135,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java index 57dc231624a7..ae506d8f85f8 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/FakeApi.java @@ -422,7 +422,7 @@ default Mono> testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestPart(value = "enum_form_string", required = false) String enumFormString, diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java index 427020a13a25..d09eb25404cb 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/EnumTest.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java index 10c10bf661d3..8dc237d833e1 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -30,7 +30,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java index 9bde7f0359e0..937ea9b9e626 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -125,7 +125,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java index 592030bb8800..cf4c9f3687ad 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/XmlItem.java @@ -143,7 +143,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -251,7 +251,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -387,7 +387,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -523,7 +523,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -659,7 +659,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml index 3ebfb97645f2..56d37b93ecb3 100644 --- a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1939,7 +1939,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1973,7 +1972,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2008,7 +2006,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2034,7 +2031,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2069,7 +2065,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2104,7 +2099,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2141,7 +2135,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java index 96dce92fe570..1618c4b8d19e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -372,7 +372,7 @@ default ResponseEntity testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java index 427020a13a25..d09eb25404cb 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index 9bde7f0359e0..937ea9b9e626 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -125,7 +125,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java index 592030bb8800..cf4c9f3687ad 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -143,7 +143,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -251,7 +251,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -387,7 +387,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -523,7 +523,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -659,7 +659,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/resources/openapi.yaml index c07f4f9b8a8a..b5829571417c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/src/main/resources/openapi.yaml @@ -862,7 +862,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1796,7 +1796,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -2149,7 +2149,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2184,7 +2183,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2210,7 +2208,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2245,7 +2242,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2280,7 +2276,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2317,7 +2312,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java index 96dce92fe570..1618c4b8d19e 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/api/FakeApi.java @@ -372,7 +372,7 @@ default ResponseEntity testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java index 427020a13a25..d09eb25404cb 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/EnumTest.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java index 9bde7f0359e0..937ea9b9e626 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -125,7 +125,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java index 592030bb8800..cf4c9f3687ad 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/java/org/openapitools/model/XmlItem.java @@ -143,7 +143,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -251,7 +251,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -387,7 +387,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -523,7 +523,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -659,7 +659,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/resources/openapi.yaml index c07f4f9b8a8a..b5829571417c 100644 --- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/src/main/resources/openapi.yaml @@ -862,7 +862,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1796,7 +1796,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -2149,7 +2149,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2184,7 +2183,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2210,7 +2208,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2245,7 +2242,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2280,7 +2276,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2317,7 +2312,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java index b6cb0c0b58a4..34bb9012adac 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/api/FakeApi.java @@ -403,7 +403,7 @@ default ResponseEntity testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java index 427020a13a25..d09eb25404cb 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/EnumTest.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java index 9bde7f0359e0..937ea9b9e626 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -125,7 +125,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java index 592030bb8800..cf4c9f3687ad 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/java/org/openapitools/model/XmlItem.java @@ -143,7 +143,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -251,7 +251,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -387,7 +387,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -523,7 +523,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -659,7 +659,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/resources/openapi.yaml index c07f4f9b8a8a..b5829571417c 100644 --- a/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-spring-pageable-without-j8/src/main/resources/openapi.yaml @@ -862,7 +862,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1796,7 +1796,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -2149,7 +2149,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2184,7 +2183,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2210,7 +2208,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2245,7 +2242,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2280,7 +2276,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2317,7 +2312,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java index b6cb0c0b58a4..34bb9012adac 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/api/FakeApi.java @@ -403,7 +403,7 @@ default ResponseEntity testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java index 427020a13a25..d09eb25404cb 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/EnumTest.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java index 9bde7f0359e0..937ea9b9e626 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -125,7 +125,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java index 592030bb8800..cf4c9f3687ad 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-spring-pageable/src/main/java/org/openapitools/model/XmlItem.java @@ -143,7 +143,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -251,7 +251,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -387,7 +387,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -523,7 +523,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -659,7 +659,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-spring-pageable/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-spring-pageable/src/main/resources/openapi.yaml index c07f4f9b8a8a..b5829571417c 100644 --- a/samples/server/petstore/springboot-spring-pageable/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-spring-pageable/src/main/resources/openapi.yaml @@ -862,7 +862,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1796,7 +1796,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -2149,7 +2149,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2184,7 +2183,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2210,7 +2208,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2245,7 +2242,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2280,7 +2276,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2317,7 +2312,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java index b7765e99b8f0..3144f9da060c 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/FakeApi.java @@ -448,7 +448,7 @@ default ResponseEntity testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") Optional enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) Optional> enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") Optional enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Optional enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Optional enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java index 427020a13a25..d09eb25404cb 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/EnumTest.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java index 10c10bf661d3..8dc237d833e1 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderDefault.java @@ -30,7 +30,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java index 9bde7f0359e0..937ea9b9e626 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java @@ -125,7 +125,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java index 592030bb8800..cf4c9f3687ad 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/XmlItem.java @@ -143,7 +143,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -251,7 +251,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -387,7 +387,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -523,7 +523,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -659,7 +659,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-useoptional/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-useoptional/src/main/resources/openapi.yaml index 3ebfb97645f2..56d37b93ecb3 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-useoptional/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1939,7 +1939,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1973,7 +1972,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2008,7 +2006,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2034,7 +2031,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2069,7 +2065,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2104,7 +2099,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2141,7 +2135,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java index c8f7ea15c948..de3b333200aa 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/EnumTest.java @@ -109,7 +109,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java index 095e1c61ff6f..35362281aaa7 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderDefault.java @@ -29,7 +29,7 @@ public class TypeHolderDefault { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java index 1d215c4f83a4..2f6e2e23d6d4 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java @@ -124,7 +124,7 @@ public TypeHolderExample integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @Schema(name = "integer_item", example = "-2", requiredMode = Schema.RequiredMode.REQUIRED) + @Schema(name = "integer_item", requiredMode = Schema.RequiredMode.REQUIRED) @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java index 4a3f785015d2..603022873525 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/XmlItem.java @@ -142,7 +142,7 @@ public XmlItem attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "attribute_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -250,7 +250,7 @@ public XmlItem nameInteger(Integer nameInteger) { * @return nameInteger */ - @Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "name_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -386,7 +386,7 @@ public XmlItem prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "prefix_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -522,7 +522,7 @@ public XmlItem namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "namespace_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -658,7 +658,7 @@ public XmlItem prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @Schema(name = "prefix_ns_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot-virtualan/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-virtualan/src/main/resources/openapi.yaml index 3ebfb97645f2..56d37b93ecb3 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-virtualan/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1939,7 +1939,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1973,7 +1972,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2008,7 +2006,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2034,7 +2031,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2069,7 +2065,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2104,7 +2099,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2141,7 +2135,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java index 770ca405dae0..02478c4d5bb8 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/FakeApi.java @@ -448,7 +448,7 @@ default ResponseEntity testEnumParameters( @ApiParam(value = "Header parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @RequestHeader(value = "enum_header_string", required = false, defaultValue = "-efg") String enumHeaderString, @ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List enumQueryStringArray, @ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue = "-efg") String enumQueryString, - @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, + @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, ") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger, @ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble, @ApiParam(value = "Form parameter enum test (string array)", allowableValues = ">, $", defaultValue = "$") @Valid @RequestPart(value = "enum_form_string_array", required = false) List enumFormStringArray, @ApiParam(value = "Form parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_form_string", required = false) String enumFormString diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTestDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTestDto.java index c07779b7a742..16e9c4e4679f 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTestDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/EnumTestDto.java @@ -110,7 +110,7 @@ public static EnumStringRequiredEnum fromValue(String value) { public enum EnumIntegerEnum { NUMBER_1(1), - NUMBER_MINUS_1(-1); + NUMBER_null(null); private Integer value; diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java index ee5bf0b43ab1..775b67e82535 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderDefaultDto.java @@ -32,7 +32,7 @@ public class TypeHolderDefaultDto { private BigDecimal numberItem = new BigDecimal("1.234"); - private Integer integerItem = -2; + private Integer integerItem; private Boolean boolItem = true; diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExampleDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExampleDto.java index df1d38dd5fe5..af2970516f56 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExampleDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExampleDto.java @@ -127,7 +127,7 @@ public TypeHolderExampleDto integerItem(Integer integerItem) { * @return integerItem */ @NotNull - @ApiModelProperty(example = "-2", required = true, value = "") + @ApiModelProperty(required = true, value = "") @JsonProperty("integer_item") public Integer getIntegerItem() { return integerItem; diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItemDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItemDto.java index f360f6b89bca..f0ff3418b35e 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItemDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/XmlItemDto.java @@ -145,7 +145,7 @@ public XmlItemDto attributeInteger(Integer attributeInteger) { * @return attributeInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("attribute_integer") public Integer getAttributeInteger() { return attributeInteger; @@ -253,7 +253,7 @@ public XmlItemDto nameInteger(Integer nameInteger) { * @return nameInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("name_integer") public Integer getNameInteger() { return nameInteger; @@ -389,7 +389,7 @@ public XmlItemDto prefixInteger(Integer prefixInteger) { * @return prefixInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_integer") public Integer getPrefixInteger() { return prefixInteger; @@ -525,7 +525,7 @@ public XmlItemDto namespaceInteger(Integer namespaceInteger) { * @return namespaceInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("namespace_integer") public Integer getNamespaceInteger() { return namespaceInteger; @@ -661,7 +661,7 @@ public XmlItemDto prefixNsInteger(Integer prefixNsInteger) { * @return prefixNsInteger */ - @ApiModelProperty(example = "-2", value = "") + @ApiModelProperty(value = "") @JsonProperty("prefix_ns_integer") public Integer getPrefixNsInteger() { return prefixNsInteger; diff --git a/samples/server/petstore/springboot/src/main/resources/openapi.yaml b/samples/server/petstore/springboot/src/main/resources/openapi.yaml index 42dd7db5f53b..4cb5b348b6c7 100644 --- a/samples/server/petstore/springboot/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot/src/main/resources/openapi.yaml @@ -770,7 +770,7 @@ paths: schema: enum: - 1 - - -2 + - null format: int32 type: integer style: form @@ -1601,7 +1601,7 @@ components: enum_integer: enum: - 1 - - -1 + - null format: int32 type: integer enum_number: @@ -1931,7 +1931,6 @@ components: default: 1.234 type: number integer_item: - default: -2 type: integer bool_item: default: true @@ -1965,7 +1964,6 @@ components: format: float type: number integer_item: - example: -2 type: integer bool_item: example: true @@ -2000,7 +1998,6 @@ components: xml: attribute: true attribute_integer: - example: -2 type: integer xml: attribute: true @@ -2026,7 +2023,6 @@ components: xml: name: xml_name_number name_integer: - example: -2 type: integer xml: name: xml_name_integer @@ -2061,7 +2057,6 @@ components: xml: prefix: cd prefix_integer: - example: -2 type: integer xml: prefix: ef @@ -2096,7 +2091,6 @@ components: xml: namespace: http://b.com/schema namespace_integer: - example: -2 type: integer xml: namespace: http://c.com/schema @@ -2133,7 +2127,6 @@ components: namespace: http://b.com/schema prefix: b prefix_ns_integer: - example: -2 type: integer xml: namespace: http://c.com/schema