From 34cb029bb586b43e274b78b8b731c9752d8b1bb4 Mon Sep 17 00:00:00 2001 From: marcel-huber-ptv Date: Tue, 27 Aug 2024 14:07:55 +0200 Subject: [PATCH] update samples and docs --- docs/generators/fsharp-functions.md | 2 +- docs/generators/fsharp-giraffe-server.md | 2 +- docs/generators/java-inflector.md | 2 +- docs/generators/jaxrs-cxf-client.md | 2 +- docs/generators/swift5.md | 4 +- .../csharp-restsharp/docs/Category.md | 2 +- .../csharp-restsharp/docs/DataQuery.md | 4 +- .../csharp-restsharp/docs/DefaultValue.md | 2 +- .../docs/NumberPropertiesOnly.md | 6 +- .../echo_api/csharp-restsharp/docs/PathApi.md | 6 +- .../echo_api/csharp-restsharp/docs/Pet.md | 2 +- .../echo_api/csharp-restsharp/docs/Query.md | 2 +- .../csharp-restsharp/docs/QueryApi.md | 6 +- .../echo_api/csharp-restsharp/docs/Tag.md | 2 +- ...lodeTrueObjectAllOfQueryObjectParameter.md | 2 +- .../src/Org.OpenAPITools/Api/PathApi.cs | 28 ++- .../src/Org.OpenAPITools/Api/QueryApi.cs | 16 +- .../src/Org.OpenAPITools/Model/Category.cs | 12 +- .../src/Org.OpenAPITools/Model/DataQuery.cs | 4 +- .../Org.OpenAPITools/Model/DefaultValue.cs | 4 +- .../Model/NumberPropertiesOnly.cs | 40 ++-- .../src/Org.OpenAPITools/Model/Pet.cs | 12 +- .../src/Org.OpenAPITools/Model/Query.cs | 12 +- .../src/Org.OpenAPITools/Model/Tag.cs | 12 +- ...lodeTrueObjectAllOfQueryObjectParameter.cs | 12 +- .../.openapi-generator/FILES | 2 +- .../php-nextgen-streaming/phpunit.xml.dist | 4 +- .../php-nextgen/.openapi-generator/FILES | 2 +- .../echo_api/php-nextgen/phpunit.xml.dist | 4 +- .../echo_api/r/.openapi-generator/FILES | 2 +- .../R-httr2-wrapper/.openapi-generator/FILES | 2 +- .../petstore/R-httr2/.openapi-generator/FILES | 2 +- .../petstore/R/.openapi-generator/FILES | 2 +- .../src/Org.OpenAPITools/Functions/PetApi.cs | 8 +- .../Org.OpenAPITools/Functions/StoreApi.cs | 6 +- .../Org.OpenAPITools/Models/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Models/Category.cs | 6 +- .../src/Org.OpenAPITools/Models/Order.cs | 26 +-- .../src/Org.OpenAPITools/Models/Pet.cs | 6 +- .../src/Org.OpenAPITools/Models/Tag.cs | 6 +- .../src/Org.OpenAPITools/Models/User.cs | 12 +- .../standard2.0/Petstore/docs/ApiResponse.md | 2 +- .../standard2.0/Petstore/docs/AppleReq.md | 2 +- .../Petstore/docs/ArrayOfArrayOfNumberOnly.md | 2 +- .../Petstore/docs/ArrayOfNumberOnly.md | 2 +- .../standard2.0/Petstore/docs/ArrayTest.md | 2 +- .../standard2.0/Petstore/docs/Banana.md | 2 +- .../standard2.0/Petstore/docs/BananaReq.md | 2 +- .../standard2.0/Petstore/docs/Cat.md | 2 +- .../standard2.0/Petstore/docs/Category.md | 2 +- .../Petstore/docs/DateOnlyClass.md | 2 +- .../standard2.0/Petstore/docs/DefaultApi.md | 8 +- .../standard2.0/Petstore/docs/EnumTest.md | 6 +- .../standard2.0/Petstore/docs/FakeApi.md | 46 ++-- .../standard2.0/Petstore/docs/FormatTest.md | 30 +-- .../standard2.0/Petstore/docs/Fruit.md | 2 +- .../standard2.0/Petstore/docs/FruitReq.md | 4 +- .../standard2.0/Petstore/docs/GmFruit.md | 2 +- .../standard2.0/Petstore/docs/Mammal.md | 4 +- .../standard2.0/Petstore/docs/MapTest.md | 4 +- .../standard2.0/Petstore/docs/MixLog.md | 4 +- ...dPropertiesAndAdditionalPropertiesClass.md | 6 +- .../Petstore/docs/Model200Response.md | 2 +- .../standard2.0/Petstore/docs/Name.md | 4 +- .../standard2.0/Petstore/docs/NumberOnly.md | 2 +- .../docs/ObjectWithDeprecatedFields.md | 2 +- .../standard2.0/Petstore/docs/Order.md | 10 +- .../Petstore/docs/OuterComposite.md | 4 +- .../standard2.0/Petstore/docs/Pet.md | 2 +- .../standard2.0/Petstore/docs/PetApi.md | 30 +-- .../Petstore/docs/RequiredClass.md | 14 +- .../standard2.0/Petstore/docs/Return.md | 2 +- .../Petstore/docs/RolesReportsHash.md | 2 +- .../Petstore/docs/SpecialModelName.md | 2 +- .../standard2.0/Petstore/docs/StoreApi.md | 14 +- .../standard2.0/Petstore/docs/Tag.md | 2 +- .../standard2.0/Petstore/docs/User.md | 4 +- .../standard2.0/Petstore/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 40 ++-- .../src/Org.OpenAPITools/Api/FakeApi.cs | 176 +++++++++------ .../src/Org.OpenAPITools/Api/PetApi.cs | 120 +++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 64 +++--- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 9 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 9 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../Model/ArrayOfNumberOnly.cs | 4 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 4 +- .../src/Org.OpenAPITools/Model/Banana.cs | 9 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 9 +- .../src/Org.OpenAPITools/Model/Cat.cs | 9 +- .../src/Org.OpenAPITools/Model/Category.cs | 9 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 161 ++++++++------ .../src/Org.OpenAPITools/Model/MapTest.cs | 6 +- .../src/Org.OpenAPITools/Model/MixLog.cs | 11 +- .../Model/MixedAnyOfContent.cs | 62 +++--- .../Model/MixedOneOfContent.cs | 80 +++---- ...dPropertiesAndAdditionalPropertiesClass.cs | 10 +- .../Model/Model200Response.cs | 9 +- .../src/Org.OpenAPITools/Model/Name.cs | 14 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 9 +- .../Model/ObjectWithDeprecatedFields.cs | 9 +- .../src/Org.OpenAPITools/Model/Order.cs | 35 ++- .../Org.OpenAPITools/Model/OuterComposite.cs | 16 +- .../src/Org.OpenAPITools/Model/Pet.cs | 9 +- .../Model/PolymorphicProperty.cs | 28 +-- .../Org.OpenAPITools/Model/RequiredClass.cs | 31 +-- .../src/Org.OpenAPITools/Model/Return.cs | 9 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/SpecialModelName.cs | 9 +- .../src/Org.OpenAPITools/Model/Tag.cs | 9 +- .../src/Org.OpenAPITools/Model/User.cs | 16 +- .../src/Org.OpenAPITools/Model/Whale.cs | 16 +- .../MultipleFrameworks/docs/ApiResponse.md | 2 +- .../MultipleFrameworks/docs/Category.md | 2 +- .../net4.7/MultipleFrameworks/docs/Order.md | 10 +- .../net4.7/MultipleFrameworks/docs/Pet.md | 2 +- .../net4.7/MultipleFrameworks/docs/PetApi.md | 24 +-- .../MultipleFrameworks/docs/StoreApi.md | 14 +- .../net4.7/MultipleFrameworks/docs/Tag.md | 2 +- .../net4.7/MultipleFrameworks/docs/User.md | 4 +- .../src/Org.OpenAPITools/Api/PetApi.cs | 112 +++++++--- .../src/Org.OpenAPITools/Api/StoreApi.cs | 68 +++--- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 9 +- .../src/Org.OpenAPITools/Model/Category.cs | 9 +- .../src/Org.OpenAPITools/Model/Order.cs | 35 ++- .../src/Org.OpenAPITools/Model/Pet.cs | 9 +- .../src/Org.OpenAPITools/Model/Tag.cs | 9 +- .../src/Org.OpenAPITools/Model/User.cs | 16 +- .../net4.7/Petstore/docs/ApiResponse.md | 2 +- .../net4.7/Petstore/docs/AppleReq.md | 2 +- .../Petstore/docs/ArrayOfArrayOfNumberOnly.md | 2 +- .../net4.7/Petstore/docs/ArrayOfNumberOnly.md | 2 +- .../net4.7/Petstore/docs/ArrayTest.md | 2 +- .../restsharp/net4.7/Petstore/docs/Banana.md | 2 +- .../net4.7/Petstore/docs/BananaReq.md | 2 +- .../restsharp/net4.7/Petstore/docs/Cat.md | 2 +- .../net4.7/Petstore/docs/Category.md | 2 +- .../net4.7/Petstore/docs/DateOnlyClass.md | 2 +- .../net4.7/Petstore/docs/DefaultApi.md | 8 +- .../net4.7/Petstore/docs/EnumTest.md | 6 +- .../restsharp/net4.7/Petstore/docs/FakeApi.md | 46 ++-- .../net4.7/Petstore/docs/FormatTest.md | 20 +- .../restsharp/net4.7/Petstore/docs/Fruit.md | 2 +- .../net4.7/Petstore/docs/FruitReq.md | 4 +- .../restsharp/net4.7/Petstore/docs/GmFruit.md | 2 +- .../restsharp/net4.7/Petstore/docs/Mammal.md | 4 +- .../restsharp/net4.7/Petstore/docs/MapTest.md | 4 +- ...dPropertiesAndAdditionalPropertiesClass.md | 6 +- .../net4.7/Petstore/docs/Model200Response.md | 2 +- .../restsharp/net4.7/Petstore/docs/Name.md | 4 +- .../net4.7/Petstore/docs/NumberOnly.md | 2 +- .../docs/ObjectWithDeprecatedFields.md | 2 +- .../restsharp/net4.7/Petstore/docs/Order.md | 10 +- .../net4.7/Petstore/docs/OuterComposite.md | 4 +- .../restsharp/net4.7/Petstore/docs/Pet.md | 2 +- .../restsharp/net4.7/Petstore/docs/PetApi.md | 30 +-- .../net4.7/Petstore/docs/RequiredClass.md | 14 +- .../restsharp/net4.7/Petstore/docs/Return.md | 2 +- .../net4.7/Petstore/docs/RolesReportsHash.md | 2 +- .../net4.7/Petstore/docs/SpecialModelName.md | 2 +- .../net4.7/Petstore/docs/StoreApi.md | 14 +- .../restsharp/net4.7/Petstore/docs/Tag.md | 2 +- .../restsharp/net4.7/Petstore/docs/User.md | 4 +- .../restsharp/net4.7/Petstore/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 40 ++-- .../src/Org.OpenAPITools/Api/FakeApi.cs | 200 ++++++++++++------ .../src/Org.OpenAPITools/Api/PetApi.cs | 140 ++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 68 +++--- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 9 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 9 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../Model/ArrayOfNumberOnly.cs | 4 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 4 +- .../src/Org.OpenAPITools/Model/Banana.cs | 9 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 9 +- .../src/Org.OpenAPITools/Model/Cat.cs | 9 +- .../src/Org.OpenAPITools/Model/Category.cs | 9 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 102 +++++---- .../src/Org.OpenAPITools/Model/MapTest.cs | 6 +- .../Model/MixedAnyOfContent.cs | 62 +++--- .../Model/MixedOneOfContent.cs | 80 +++---- ...dPropertiesAndAdditionalPropertiesClass.cs | 10 +- .../Model/Model200Response.cs | 9 +- .../src/Org.OpenAPITools/Model/Name.cs | 14 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 9 +- .../Model/ObjectWithDeprecatedFields.cs | 9 +- .../src/Org.OpenAPITools/Model/Order.cs | 35 ++- .../Org.OpenAPITools/Model/OuterComposite.cs | 16 +- .../src/Org.OpenAPITools/Model/Pet.cs | 9 +- .../Model/PolymorphicProperty.cs | 28 +-- .../Org.OpenAPITools/Model/RequiredClass.cs | 31 +-- .../src/Org.OpenAPITools/Model/Return.cs | 9 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/SpecialModelName.cs | 9 +- .../src/Org.OpenAPITools/Model/Tag.cs | 9 +- .../src/Org.OpenAPITools/Model/User.cs | 16 +- .../src/Org.OpenAPITools/Model/Whale.cs | 16 +- .../net4.8/Petstore/docs/ApiResponse.md | 2 +- .../net4.8/Petstore/docs/AppleReq.md | 2 +- .../Petstore/docs/ArrayOfArrayOfNumberOnly.md | 2 +- .../net4.8/Petstore/docs/ArrayOfNumberOnly.md | 2 +- .../net4.8/Petstore/docs/ArrayTest.md | 2 +- .../restsharp/net4.8/Petstore/docs/Banana.md | 2 +- .../net4.8/Petstore/docs/BananaReq.md | 2 +- .../restsharp/net4.8/Petstore/docs/Cat.md | 2 +- .../net4.8/Petstore/docs/Category.md | 2 +- .../net4.8/Petstore/docs/DateOnlyClass.md | 2 +- .../net4.8/Petstore/docs/DefaultApi.md | 8 +- .../net4.8/Petstore/docs/EnumTest.md | 6 +- .../restsharp/net4.8/Petstore/docs/FakeApi.md | 46 ++-- .../net4.8/Petstore/docs/FormatTest.md | 20 +- .../restsharp/net4.8/Petstore/docs/Fruit.md | 2 +- .../net4.8/Petstore/docs/FruitReq.md | 4 +- .../restsharp/net4.8/Petstore/docs/GmFruit.md | 2 +- .../restsharp/net4.8/Petstore/docs/Mammal.md | 4 +- .../restsharp/net4.8/Petstore/docs/MapTest.md | 4 +- ...dPropertiesAndAdditionalPropertiesClass.md | 6 +- .../net4.8/Petstore/docs/Model200Response.md | 2 +- .../restsharp/net4.8/Petstore/docs/Name.md | 4 +- .../net4.8/Petstore/docs/NumberOnly.md | 2 +- .../docs/ObjectWithDeprecatedFields.md | 2 +- .../restsharp/net4.8/Petstore/docs/Order.md | 10 +- .../net4.8/Petstore/docs/OuterComposite.md | 4 +- .../restsharp/net4.8/Petstore/docs/Pet.md | 2 +- .../restsharp/net4.8/Petstore/docs/PetApi.md | 30 +-- .../net4.8/Petstore/docs/RequiredClass.md | 14 +- .../restsharp/net4.8/Petstore/docs/Return.md | 2 +- .../net4.8/Petstore/docs/RolesReportsHash.md | 2 +- .../net4.8/Petstore/docs/SpecialModelName.md | 2 +- .../net4.8/Petstore/docs/StoreApi.md | 14 +- .../restsharp/net4.8/Petstore/docs/Tag.md | 2 +- .../restsharp/net4.8/Petstore/docs/User.md | 4 +- .../restsharp/net4.8/Petstore/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 40 ++-- .../src/Org.OpenAPITools/Api/FakeApi.cs | 200 ++++++++++++------ .../src/Org.OpenAPITools/Api/PetApi.cs | 140 ++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 68 +++--- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 9 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 9 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../Model/ArrayOfNumberOnly.cs | 4 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 4 +- .../src/Org.OpenAPITools/Model/Banana.cs | 9 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 9 +- .../src/Org.OpenAPITools/Model/Cat.cs | 9 +- .../src/Org.OpenAPITools/Model/Category.cs | 9 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 102 +++++---- .../src/Org.OpenAPITools/Model/MapTest.cs | 6 +- .../Model/MixedAnyOfContent.cs | 62 +++--- .../Model/MixedOneOfContent.cs | 80 +++---- ...dPropertiesAndAdditionalPropertiesClass.cs | 10 +- .../Model/Model200Response.cs | 9 +- .../src/Org.OpenAPITools/Model/Name.cs | 14 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 9 +- .../Model/ObjectWithDeprecatedFields.cs | 9 +- .../src/Org.OpenAPITools/Model/Order.cs | 35 ++- .../Org.OpenAPITools/Model/OuterComposite.cs | 16 +- .../src/Org.OpenAPITools/Model/Pet.cs | 9 +- .../Model/PolymorphicProperty.cs | 28 +-- .../Org.OpenAPITools/Model/RequiredClass.cs | 31 +-- .../src/Org.OpenAPITools/Model/Return.cs | 9 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/SpecialModelName.cs | 9 +- .../src/Org.OpenAPITools/Model/Tag.cs | 9 +- .../src/Org.OpenAPITools/Model/User.cs | 16 +- .../src/Org.OpenAPITools/Model/Whale.cs | 16 +- .../net6/ParameterMappings/README.md | 2 +- .../net6/ParameterMappings/docs/FakeApi.md | 6 +- .../src/Org.OpenAPITools/Api/FakeApi.cs | 28 ++- .../net7/EnumMappings/docs/ApiResponse.md | 2 +- .../net7/EnumMappings/docs/AppleReq.md | 2 +- .../docs/ArrayOfArrayOfNumberOnly.md | 2 +- .../EnumMappings/docs/ArrayOfNumberOnly.md | 2 +- .../net7/EnumMappings/docs/ArrayTest.md | 2 +- .../net7/EnumMappings/docs/Banana.md | 2 +- .../net7/EnumMappings/docs/BananaReq.md | 2 +- .../restsharp/net7/EnumMappings/docs/Cat.md | 2 +- .../net7/EnumMappings/docs/Category.md | 2 +- .../net7/EnumMappings/docs/DefaultApi.md | 8 +- .../net7/EnumMappings/docs/EnumTest.md | 6 +- .../net7/EnumMappings/docs/FakeApi.md | 46 ++-- .../net7/EnumMappings/docs/FormatTest.md | 20 +- .../restsharp/net7/EnumMappings/docs/Fruit.md | 2 +- .../net7/EnumMappings/docs/FruitReq.md | 4 +- .../net7/EnumMappings/docs/GmFruit.md | 2 +- .../net7/EnumMappings/docs/Mammal.md | 4 +- .../net7/EnumMappings/docs/MapTest.md | 4 +- ...dPropertiesAndAdditionalPropertiesClass.md | 6 +- .../EnumMappings/docs/Model200Response.md | 2 +- .../restsharp/net7/EnumMappings/docs/Name.md | 4 +- .../net7/EnumMappings/docs/NumberOnly.md | 2 +- .../docs/ObjectWithDeprecatedFields.md | 2 +- .../restsharp/net7/EnumMappings/docs/Order.md | 10 +- .../net7/EnumMappings/docs/OuterComposite.md | 4 +- .../restsharp/net7/EnumMappings/docs/Pet.md | 2 +- .../net7/EnumMappings/docs/PetApi.md | 30 +-- .../net7/EnumMappings/docs/RequiredClass.md | 12 +- .../net7/EnumMappings/docs/Return.md | 2 +- .../EnumMappings/docs/RolesReportsHash.md | 2 +- .../EnumMappings/docs/SpecialModelName.md | 2 +- .../net7/EnumMappings/docs/StoreApi.md | 14 +- .../restsharp/net7/EnumMappings/docs/Tag.md | 2 +- .../restsharp/net7/EnumMappings/docs/User.md | 4 +- .../restsharp/net7/EnumMappings/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 40 ++-- .../src/Org.OpenAPITools/Api/FakeApi.cs | 200 ++++++++++++------ .../src/Org.OpenAPITools/Api/PetApi.cs | 140 ++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 68 +++--- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 9 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 9 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../Model/ArrayOfNumberOnly.cs | 4 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 4 +- .../src/Org.OpenAPITools/Model/Banana.cs | 9 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 9 +- .../src/Org.OpenAPITools/Model/Cat.cs | 9 +- .../src/Org.OpenAPITools/Model/Category.cs | 9 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 102 +++++---- .../src/Org.OpenAPITools/Model/MapTest.cs | 6 +- .../Model/MixedAnyOfContent.cs | 62 +++--- .../Model/MixedOneOfContent.cs | 80 +++---- ...dPropertiesAndAdditionalPropertiesClass.cs | 10 +- .../Model/Model200Response.cs | 9 +- .../src/Org.OpenAPITools/Model/Name.cs | 14 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 9 +- .../Model/ObjectWithDeprecatedFields.cs | 9 +- .../src/Org.OpenAPITools/Model/Order.cs | 35 ++- .../Org.OpenAPITools/Model/OuterComposite.cs | 16 +- .../src/Org.OpenAPITools/Model/Pet.cs | 9 +- .../Model/PolymorphicProperty.cs | 28 +-- .../Org.OpenAPITools/Model/RequiredClass.cs | 29 ++- .../src/Org.OpenAPITools/Model/Return.cs | 9 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/SpecialModelName.cs | 9 +- .../src/Org.OpenAPITools/Model/Tag.cs | 9 +- .../src/Org.OpenAPITools/Model/User.cs | 16 +- .../src/Org.OpenAPITools/Model/Whale.cs | 16 +- .../net7/Petstore/docs/ApiResponse.md | 2 +- .../restsharp/net7/Petstore/docs/AppleReq.md | 2 +- .../Petstore/docs/ArrayOfArrayOfNumberOnly.md | 2 +- .../net7/Petstore/docs/ArrayOfNumberOnly.md | 2 +- .../restsharp/net7/Petstore/docs/ArrayTest.md | 2 +- .../restsharp/net7/Petstore/docs/Banana.md | 2 +- .../restsharp/net7/Petstore/docs/BananaReq.md | 2 +- .../restsharp/net7/Petstore/docs/Cat.md | 2 +- .../restsharp/net7/Petstore/docs/Category.md | 2 +- .../net7/Petstore/docs/DefaultApi.md | 8 +- .../restsharp/net7/Petstore/docs/EnumTest.md | 6 +- .../restsharp/net7/Petstore/docs/FakeApi.md | 46 ++-- .../net7/Petstore/docs/FormatTest.md | 30 +-- .../restsharp/net7/Petstore/docs/Fruit.md | 2 +- .../restsharp/net7/Petstore/docs/FruitReq.md | 4 +- .../restsharp/net7/Petstore/docs/GmFruit.md | 2 +- .../restsharp/net7/Petstore/docs/Mammal.md | 4 +- .../restsharp/net7/Petstore/docs/MapTest.md | 4 +- .../restsharp/net7/Petstore/docs/MixLog.md | 4 +- ...dPropertiesAndAdditionalPropertiesClass.md | 6 +- .../net7/Petstore/docs/Model200Response.md | 2 +- .../restsharp/net7/Petstore/docs/Name.md | 4 +- .../net7/Petstore/docs/NumberOnly.md | 2 +- .../docs/ObjectWithDeprecatedFields.md | 2 +- .../restsharp/net7/Petstore/docs/Order.md | 10 +- .../net7/Petstore/docs/OuterComposite.md | 4 +- .../restsharp/net7/Petstore/docs/Pet.md | 2 +- .../restsharp/net7/Petstore/docs/PetApi.md | 30 +-- .../net7/Petstore/docs/RequiredClass.md | 12 +- .../restsharp/net7/Petstore/docs/Return.md | 2 +- .../net7/Petstore/docs/RolesReportsHash.md | 2 +- .../net7/Petstore/docs/SpecialModelName.md | 2 +- .../restsharp/net7/Petstore/docs/StoreApi.md | 14 +- .../restsharp/net7/Petstore/docs/Tag.md | 2 +- .../restsharp/net7/Petstore/docs/User.md | 4 +- .../restsharp/net7/Petstore/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 40 ++-- .../src/Org.OpenAPITools/Api/FakeApi.cs | 200 ++++++++++++------ .../src/Org.OpenAPITools/Api/PetApi.cs | 140 ++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 68 +++--- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 9 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 9 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../Model/ArrayOfNumberOnly.cs | 4 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 4 +- .../src/Org.OpenAPITools/Model/Banana.cs | 9 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 9 +- .../src/Org.OpenAPITools/Model/Cat.cs | 9 +- .../src/Org.OpenAPITools/Model/Category.cs | 9 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 161 ++++++++------ .../src/Org.OpenAPITools/Model/MapTest.cs | 6 +- .../src/Org.OpenAPITools/Model/MixLog.cs | 11 +- .../Model/MixedAnyOfContent.cs | 62 +++--- .../Model/MixedOneOfContent.cs | 80 +++---- ...dPropertiesAndAdditionalPropertiesClass.cs | 10 +- .../Model/Model200Response.cs | 9 +- .../src/Org.OpenAPITools/Model/Name.cs | 14 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 9 +- .../Model/ObjectWithDeprecatedFields.cs | 9 +- .../src/Org.OpenAPITools/Model/Order.cs | 35 ++- .../Org.OpenAPITools/Model/OuterComposite.cs | 16 +- .../src/Org.OpenAPITools/Model/Pet.cs | 9 +- .../Model/PolymorphicProperty.cs | 28 +-- .../Org.OpenAPITools/Model/RequiredClass.cs | 29 ++- .../src/Org.OpenAPITools/Model/Return.cs | 9 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/SpecialModelName.cs | 9 +- .../src/Org.OpenAPITools/Model/Tag.cs | 9 +- .../src/Org.OpenAPITools/Model/User.cs | 16 +- .../src/Org.OpenAPITools/Model/Whale.cs | 16 +- .../docs/NowGet200Response.md | 4 +- .../Model/NowGet200Response.cs | 6 +- .../docs/ApiResponse.md | 2 +- .../ConditionalSerialization/docs/AppleReq.md | 2 +- .../docs/ArrayOfArrayOfNumberOnly.md | 2 +- .../docs/ArrayOfNumberOnly.md | 2 +- .../docs/ArrayTest.md | 2 +- .../ConditionalSerialization/docs/Banana.md | 2 +- .../docs/BananaReq.md | 2 +- .../ConditionalSerialization/docs/Cat.md | 2 +- .../ConditionalSerialization/docs/Category.md | 2 +- .../docs/DateOnlyClass.md | 2 +- .../docs/DefaultApi.md | 8 +- .../ConditionalSerialization/docs/EnumTest.md | 6 +- .../ConditionalSerialization/docs/FakeApi.md | 46 ++-- .../docs/FormatTest.md | 30 +-- .../ConditionalSerialization/docs/Fruit.md | 2 +- .../ConditionalSerialization/docs/FruitReq.md | 4 +- .../ConditionalSerialization/docs/GmFruit.md | 2 +- .../ConditionalSerialization/docs/Mammal.md | 4 +- .../ConditionalSerialization/docs/MapTest.md | 4 +- .../ConditionalSerialization/docs/MixLog.md | 4 +- ...dPropertiesAndAdditionalPropertiesClass.md | 6 +- .../docs/Model200Response.md | 2 +- .../ConditionalSerialization/docs/Name.md | 4 +- .../docs/NumberOnly.md | 2 +- .../docs/ObjectWithDeprecatedFields.md | 2 +- .../ConditionalSerialization/docs/Order.md | 10 +- .../docs/OuterComposite.md | 4 +- .../ConditionalSerialization/docs/Pet.md | 2 +- .../ConditionalSerialization/docs/PetApi.md | 30 +-- .../docs/RequiredClass.md | 14 +- .../ConditionalSerialization/docs/Return.md | 2 +- .../docs/RolesReportsHash.md | 2 +- .../docs/SpecialModelName.md | 2 +- .../ConditionalSerialization/docs/StoreApi.md | 14 +- .../ConditionalSerialization/docs/Tag.md | 2 +- .../ConditionalSerialization/docs/User.md | 4 +- .../ConditionalSerialization/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 40 ++-- .../src/Org.OpenAPITools/Api/FakeApi.cs | 200 ++++++++++++------ .../src/Org.OpenAPITools/Api/PetApi.cs | 140 ++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 68 +++--- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 11 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 11 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 6 +- .../Model/ArrayOfNumberOnly.cs | 6 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 11 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 11 +- .../src/Org.OpenAPITools/Model/Cat.cs | 11 +- .../src/Org.OpenAPITools/Model/Category.cs | 11 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 6 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 191 ++++++++++------- .../src/Org.OpenAPITools/Model/MapTest.cs | 10 +- .../src/Org.OpenAPITools/Model/MixLog.cs | 15 +- .../Model/MixedAnyOfContent.cs | 62 +++--- .../Model/MixedOneOfContent.cs | 80 +++---- ...dPropertiesAndAdditionalPropertiesClass.cs | 16 +- .../Model/Model200Response.cs | 11 +- .../src/Org.OpenAPITools/Model/Name.cs | 14 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 11 +- .../Model/ObjectWithDeprecatedFields.cs | 11 +- .../src/Org.OpenAPITools/Model/Order.cs | 42 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 20 +- .../src/Org.OpenAPITools/Model/Pet.cs | 11 +- .../Model/PolymorphicProperty.cs | 28 +-- .../Org.OpenAPITools/Model/RequiredClass.cs | 45 ++-- .../src/Org.OpenAPITools/Model/Return.cs | 11 +- .../Model/RolesReportsHash.cs | 6 +- .../Model/SpecialModelName.cs | 11 +- .../src/Org.OpenAPITools/Model/Tag.cs | 11 +- .../src/Org.OpenAPITools/Model/User.cs | 20 +- .../src/Org.OpenAPITools/Model/Whale.cs | 20 +- .../standard2.0/Petstore/docs/ApiResponse.md | 2 +- .../standard2.0/Petstore/docs/AppleReq.md | 2 +- .../Petstore/docs/ArrayOfArrayOfNumberOnly.md | 2 +- .../Petstore/docs/ArrayOfNumberOnly.md | 2 +- .../standard2.0/Petstore/docs/ArrayTest.md | 2 +- .../standard2.0/Petstore/docs/Banana.md | 2 +- .../standard2.0/Petstore/docs/BananaReq.md | 2 +- .../standard2.0/Petstore/docs/Cat.md | 2 +- .../standard2.0/Petstore/docs/Category.md | 2 +- .../Petstore/docs/DateOnlyClass.md | 2 +- .../standard2.0/Petstore/docs/DefaultApi.md | 8 +- .../standard2.0/Petstore/docs/EnumTest.md | 6 +- .../standard2.0/Petstore/docs/FakeApi.md | 46 ++-- .../standard2.0/Petstore/docs/FormatTest.md | 20 +- .../standard2.0/Petstore/docs/Fruit.md | 2 +- .../standard2.0/Petstore/docs/FruitReq.md | 4 +- .../standard2.0/Petstore/docs/GmFruit.md | 2 +- .../standard2.0/Petstore/docs/Mammal.md | 4 +- .../standard2.0/Petstore/docs/MapTest.md | 4 +- ...dPropertiesAndAdditionalPropertiesClass.md | 6 +- .../Petstore/docs/Model200Response.md | 2 +- .../standard2.0/Petstore/docs/Name.md | 4 +- .../standard2.0/Petstore/docs/NumberOnly.md | 2 +- .../docs/ObjectWithDeprecatedFields.md | 2 +- .../standard2.0/Petstore/docs/Order.md | 10 +- .../Petstore/docs/OuterComposite.md | 4 +- .../standard2.0/Petstore/docs/Pet.md | 2 +- .../standard2.0/Petstore/docs/PetApi.md | 30 +-- .../Petstore/docs/RequiredClass.md | 14 +- .../standard2.0/Petstore/docs/Return.md | 2 +- .../Petstore/docs/RolesReportsHash.md | 2 +- .../Petstore/docs/SpecialModelName.md | 2 +- .../standard2.0/Petstore/docs/StoreApi.md | 14 +- .../standard2.0/Petstore/docs/Tag.md | 2 +- .../standard2.0/Petstore/docs/User.md | 4 +- .../standard2.0/Petstore/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 40 ++-- .../src/Org.OpenAPITools/Api/FakeApi.cs | 200 ++++++++++++------ .../src/Org.OpenAPITools/Api/PetApi.cs | 140 ++++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 68 +++--- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 9 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 9 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../Model/ArrayOfNumberOnly.cs | 4 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 4 +- .../src/Org.OpenAPITools/Model/Banana.cs | 9 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 9 +- .../src/Org.OpenAPITools/Model/Cat.cs | 9 +- .../src/Org.OpenAPITools/Model/Category.cs | 9 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 102 +++++---- .../src/Org.OpenAPITools/Model/MapTest.cs | 6 +- .../Model/MixedAnyOfContent.cs | 62 +++--- .../Model/MixedOneOfContent.cs | 80 +++---- ...dPropertiesAndAdditionalPropertiesClass.cs | 10 +- .../Model/Model200Response.cs | 9 +- .../src/Org.OpenAPITools/Model/Name.cs | 14 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 9 +- .../Model/ObjectWithDeprecatedFields.cs | 9 +- .../src/Org.OpenAPITools/Model/Order.cs | 35 ++- .../Org.OpenAPITools/Model/OuterComposite.cs | 16 +- .../src/Org.OpenAPITools/Model/Pet.cs | 9 +- .../Model/PolymorphicProperty.cs | 28 +-- .../Org.OpenAPITools/Model/RequiredClass.cs | 31 +-- .../src/Org.OpenAPITools/Model/Return.cs | 9 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/SpecialModelName.cs | 9 +- .../src/Org.OpenAPITools/Model/Tag.cs | 9 +- .../src/Org.OpenAPITools/Model/User.cs | 16 +- .../src/Org.OpenAPITools/Model/Whale.cs | 16 +- .../standard2.0/Petstore/docs/ApiResponse.md | 2 +- .../standard2.0/Petstore/docs/AppleReq.md | 2 +- .../Petstore/docs/ArrayOfArrayOfNumberOnly.md | 2 +- .../Petstore/docs/ArrayOfNumberOnly.md | 2 +- .../standard2.0/Petstore/docs/ArrayTest.md | 2 +- .../standard2.0/Petstore/docs/Banana.md | 2 +- .../standard2.0/Petstore/docs/BananaReq.md | 2 +- .../standard2.0/Petstore/docs/Cat.md | 2 +- .../standard2.0/Petstore/docs/Category.md | 2 +- .../Petstore/docs/DateOnlyClass.md | 2 +- .../standard2.0/Petstore/docs/DefaultApi.md | 8 +- .../standard2.0/Petstore/docs/EnumTest.md | 6 +- .../standard2.0/Petstore/docs/FakeApi.md | 46 ++-- .../standard2.0/Petstore/docs/FormatTest.md | 30 +-- .../standard2.0/Petstore/docs/Fruit.md | 2 +- .../standard2.0/Petstore/docs/FruitReq.md | 4 +- .../standard2.0/Petstore/docs/GmFruit.md | 2 +- .../standard2.0/Petstore/docs/Mammal.md | 4 +- .../standard2.0/Petstore/docs/MapTest.md | 4 +- .../standard2.0/Petstore/docs/MixLog.md | 4 +- ...dPropertiesAndAdditionalPropertiesClass.md | 6 +- .../Petstore/docs/Model200Response.md | 2 +- .../standard2.0/Petstore/docs/Name.md | 4 +- .../standard2.0/Petstore/docs/NumberOnly.md | 2 +- .../docs/ObjectWithDeprecatedFields.md | 2 +- .../standard2.0/Petstore/docs/Order.md | 10 +- .../Petstore/docs/OuterComposite.md | 4 +- .../standard2.0/Petstore/docs/Pet.md | 2 +- .../standard2.0/Petstore/docs/PetApi.md | 30 +-- .../Petstore/docs/RequiredClass.md | 14 +- .../standard2.0/Petstore/docs/Return.md | 2 +- .../Petstore/docs/RolesReportsHash.md | 2 +- .../Petstore/docs/SpecialModelName.md | 2 +- .../standard2.0/Petstore/docs/StoreApi.md | 14 +- .../standard2.0/Petstore/docs/Tag.md | 2 +- .../standard2.0/Petstore/docs/User.md | 4 +- .../standard2.0/Petstore/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Api/DefaultApi.cs | 42 ++-- .../src/Org.OpenAPITools/Api/FakeApi.cs | 180 ++++++++++------ .../src/Org.OpenAPITools/Api/PetApi.cs | 120 +++++++---- .../src/Org.OpenAPITools/Api/StoreApi.cs | 66 +++--- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 12 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 12 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 4 +- .../Model/ArrayOfNumberOnly.cs | 4 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 4 +- .../src/Org.OpenAPITools/Model/Banana.cs | 12 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 12 +- .../src/Org.OpenAPITools/Model/Cat.cs | 12 +- .../src/Org.OpenAPITools/Model/Category.cs | 12 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 136 ++++++++---- .../src/Org.OpenAPITools/Model/MapTest.cs | 6 +- .../src/Org.OpenAPITools/Model/MixLog.cs | 14 +- .../Model/MixedAnyOfContent.cs | 62 +++--- .../Model/MixedOneOfContent.cs | 80 +++---- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../Model/Model200Response.cs | 12 +- .../src/Org.OpenAPITools/Model/Name.cs | 20 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 12 +- .../Model/ObjectWithDeprecatedFields.cs | 12 +- .../src/Org.OpenAPITools/Model/Order.cs | 47 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 22 +- .../src/Org.OpenAPITools/Model/Pet.cs | 12 +- .../Model/PolymorphicProperty.cs | 28 +-- .../Org.OpenAPITools/Model/RequiredClass.cs | 37 ++-- .../src/Org.OpenAPITools/Model/Return.cs | 12 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/SpecialModelName.cs | 12 +- .../src/Org.OpenAPITools/Model/Tag.cs | 12 +- .../src/Org.OpenAPITools/Model/User.cs | 22 +- .../src/Org.OpenAPITools/Model/Whale.cs | 22 +- .../.openapi-generator/FILES | 2 +- .../OpenAPIClient-php/phpunit.xml.dist | 4 +- .../.openapi-generator/FILES | 2 +- .../php/psr-18/.openapi-generator/FILES | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/FakeApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 12 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- .../Org.OpenAPITools/Controllers/PetApi.cs | 8 +- .../Org.OpenAPITools/Controllers/StoreApi.cs | 4 +- .../Org.OpenAPITools/Controllers/UserApi.cs | 2 +- 693 files changed, 6660 insertions(+), 4481 deletions(-) diff --git a/docs/generators/fsharp-functions.md b/docs/generators/fsharp-functions.md index a20382152aab..33bd1f1c2922 100644 --- a/docs/generators/fsharp-functions.md +++ b/docs/generators/fsharp-functions.md @@ -34,7 +34,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |OpenAPI/src| +|sourceFolder|source folder for generated code| |OpenAPI\src| ## IMPORT MAPPING diff --git a/docs/generators/fsharp-giraffe-server.md b/docs/generators/fsharp-giraffe-server.md index abe079e504fa..fb3e25b3d776 100644 --- a/docs/generators/fsharp-giraffe-server.md +++ b/docs/generators/fsharp-giraffe-server.md @@ -30,7 +30,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |packageVersion|F# package version.| |1.0.0| |returnICollection|Return ICollection<T> instead of the concrete type.| |false| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |OpenAPI/src| +|sourceFolder|source folder for generated code| |OpenAPI\src| |useCollection|Deserialize array types to Collection<T> instead of List<T>.| |false| |useDateTimeOffset|Use DateTimeOffset to model date-time properties| |false| |useSwashbuckle|Uses the Swashbuckle.AspNetCore NuGet package for documentation.| |false| diff --git a/docs/generators/java-inflector.md b/docs/generators/java-inflector.md index 8b8b35ea29dc..19f35d579274 100644 --- a/docs/generators/java-inflector.md +++ b/docs/generators/java-inflector.md @@ -65,7 +65,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |snapshotVersion|Uses a SNAPSHOT version.|
**true**
Use a SnapShot Version
**false**
Use a Release Version
|null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |src/gen/java| +|sourceFolder|source folder for generated code| |src\gen\java| |testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi| |useJakartaEe|whether to use Jakarta EE namespace instead of javax| |false| |useOneOfInterfaces|whether to use a java interface to describe a set of oneOf options, where each option is a class that implements the interface| |false| diff --git a/docs/generators/jaxrs-cxf-client.md b/docs/generators/jaxrs-cxf-client.md index 04ae1cfee4e1..e7ec0fadd8cc 100644 --- a/docs/generators/jaxrs-cxf-client.md +++ b/docs/generators/jaxrs-cxf-client.md @@ -65,7 +65,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |snapshotVersion|Uses a SNAPSHOT version.|
**true**
Use a SnapShot Version
**false**
Use a Release Version
|null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|sourceFolder|source folder for generated code| |src/gen/java| +|sourceFolder|source folder for generated code| |src\gen\java| |testOutput|Set output folder for models and APIs tests| |${project.build.directory}/generated-test-sources/openapi| |useAbstractionForFiles|Use alternative types instead of java.io.File to allow passing bytes without a file on disk.| |false| |useBeanValidation|Use BeanValidation API annotations| |false| diff --git a/docs/generators/swift5.md b/docs/generators/swift5.md index 519ad121b837..4bfb9b4d3778 100644 --- a/docs/generators/swift5.md +++ b/docs/generators/swift5.md @@ -48,13 +48,13 @@ These options may be applied as additional-properties (cli) or configOptions (pl |responseAs|Optionally use libraries to manage response. Currently PromiseKit, RxSwift, Result, Combine, AsyncAwait are available.| |null| |sortModelPropertiesByRequiredFlag|Sort model properties to place required parameters before optional parameters.| |true| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| -|swiftPackagePath|Set a custom source path instead of OpenAPIClient/Classes/OpenAPIs.| |null| +|swiftPackagePath|Set a custom source path instead of OpenAPIClient\Classes\OpenAPIs.| |null| |swiftUseApiNamespace|Flag to make all the API classes inner-class of {{projectName}}API| |null| |useBacktickEscapes|Escape reserved words using backticks (default: false)| |false| |useClasses|Use final classes for models instead of structs (default: false)| |false| |useCustomDateWithoutTime|Uses a custom type to decode and encode dates without time information to support OpenAPIs date format (default: false)| |false| |useJsonEncodable|Make models conform to JSONEncodable protocol (default: true)| |true| -|useSPMFileStructure|Use SPM file structure and set the source path to Sources/{{projectName}} (default: false).| |null| +|useSPMFileStructure|Use SPM file structure and set the source path to Sources\{{projectName}} (default: false).| |null| |validatable|Make validation rules and validator for model properies (default: true)| |true| ## IMPORT MAPPING diff --git a/samples/client/echo_api/csharp-restsharp/docs/Category.md b/samples/client/echo_api/csharp-restsharp/docs/Category.md index fd3c5e2b257a..8208e1a2b6e6 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Category.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/DataQuery.md b/samples/client/echo_api/csharp-restsharp/docs/DataQuery.md index 0f1f76302ef0..9b79fbd4597b 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/DataQuery.md +++ b/samples/client/echo_api/csharp-restsharp/docs/DataQuery.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | Query | [optional] +**Id** | **long?** | Query | [optional] **Outcomes** | **List<Query.OutcomesEnum>** | | [optional] **Suffix** | **string** | test suffix | [optional] **Text** | **string** | Some text containing white spaces | [optional] -**Date** | **DateTime** | A date | [optional] +**Date** | **DateTime?** | A date | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/DefaultValue.md b/samples/client/echo_api/csharp-restsharp/docs/DefaultValue.md index 981eda3340e0..034d9f124118 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/DefaultValue.md +++ b/samples/client/echo_api/csharp-restsharp/docs/DefaultValue.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **ArrayStringEnumRefDefault** | [**List<StringEnumRef>**](StringEnumRef.md) | | [optional] **ArrayStringEnumDefault** | **List<DefaultValue.ArrayStringEnumDefaultEnum>** | | [optional] **ArrayStringDefault** | **List<string>** | | [optional] -**ArrayIntegerDefault** | **List<int>** | | [optional] +**ArrayIntegerDefault** | **List<int?>** | | [optional] **ArrayString** | **List<string>** | | [optional] **ArrayStringNullable** | **List<string>** | | [optional] **ArrayStringExtensionNullable** | **List<string>** | | [optional] diff --git a/samples/client/echo_api/csharp-restsharp/docs/NumberPropertiesOnly.md b/samples/client/echo_api/csharp-restsharp/docs/NumberPropertiesOnly.md index f9c523da92eb..c894c7007524 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/NumberPropertiesOnly.md +++ b/samples/client/echo_api/csharp-restsharp/docs/NumberPropertiesOnly.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Number** | **decimal** | | [optional] -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] +**Number** | **decimal?** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/PathApi.md b/samples/client/echo_api/csharp-restsharp/docs/PathApi.md index e83b85c62a56..3c58becc1a7e 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/PathApi.md +++ b/samples/client/echo_api/csharp-restsharp/docs/PathApi.md @@ -8,7 +8,7 @@ All URIs are relative to *http://localhost:3000* # **TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath** -> string TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath (string pathString, int pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath) +> string TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath (string pathString, int? pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath) Test path parameter(s) @@ -32,7 +32,7 @@ namespace Example config.BasePath = "http://localhost:3000"; var apiInstance = new PathApi(config); var pathString = "pathString_example"; // string | - var pathInteger = 56; // int | + var pathInteger = 56; // int? | var enumNonrefStringPath = "success"; // string | var enumRefStringPath = (StringEnumRef) "success"; // StringEnumRef | @@ -78,7 +78,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| | **pathString** | **string** | | | -| **pathInteger** | **int** | | | +| **pathInteger** | **int?** | | | | **enumNonrefStringPath** | **string** | | | | **enumRefStringPath** | **StringEnumRef** | | | diff --git a/samples/client/echo_api/csharp-restsharp/docs/Pet.md b/samples/client/echo_api/csharp-restsharp/docs/Pet.md index ff2f348d392b..3853dac6aa37 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Pet.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | **Category** | [**Category**](Category.md) | | [optional] **PhotoUrls** | **List<string>** | | diff --git a/samples/client/echo_api/csharp-restsharp/docs/Query.md b/samples/client/echo_api/csharp-restsharp/docs/Query.md index c79503ef2a64..6e786b359f12 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Query.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Query.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | Query | [optional] +**Id** | **long?** | Query | [optional] **Outcomes** | **List<Query.OutcomesEnum>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/QueryApi.md b/samples/client/echo_api/csharp-restsharp/docs/QueryApi.md index c740ebd3c275..b2fa62cc9db2 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/QueryApi.md +++ b/samples/client/echo_api/csharp-restsharp/docs/QueryApi.md @@ -482,7 +482,7 @@ No authorization required # **TestQueryStyleFormExplodeFalseArrayInteger** -> string TestQueryStyleFormExplodeFalseArrayInteger (List? queryObject = null) +> string TestQueryStyleFormExplodeFalseArrayInteger (List? queryObject = null) Test query parameter(s) @@ -505,7 +505,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://localhost:3000"; var apiInstance = new QueryApi(config); - var queryObject = new List?(); // List? | (optional) + var queryObject = new List?(); // List? | (optional) try { @@ -548,7 +548,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **queryObject** | [**List<int>?**](int.md) | | [optional] | +| **queryObject** | [**List<int?>?**](int?.md) | | [optional] | ### Return type diff --git a/samples/client/echo_api/csharp-restsharp/docs/Tag.md b/samples/client/echo_api/csharp-restsharp/docs/Tag.md index fdd22eb31fdd..f86abfc26e02 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Tag.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md b/samples/client/echo_api/csharp-restsharp/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md index dec380556c83..825b60592937 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md +++ b/samples/client/echo_api/csharp-restsharp/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Size** | **string** | | [optional] **Color** | **string** | | [optional] -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Api/PathApi.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Api/PathApi.cs index a1ae25b575a6..de0a384cb79c 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Api/PathApi.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Api/PathApi.cs @@ -40,7 +40,7 @@ public interface IPathApiSync : IApiAccessor /// /// Index associated with the operation. /// string - string TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(string pathString, int pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0); + string TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(string pathString, int? pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0); /// /// Test path parameter(s) @@ -55,7 +55,7 @@ public interface IPathApiSync : IApiAccessor /// /// Index associated with the operation. /// ApiResponse of string - ApiResponse TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(string pathString, int pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0); + ApiResponse TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(string pathString, int? pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0); #endregion Synchronous Operations } @@ -79,7 +79,7 @@ public interface IPathApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsync(string pathString, int pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsync(string pathString, int? pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Test path parameter(s) @@ -95,7 +95,7 @@ public interface IPathApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfoAsync(string pathString, int pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfoAsync(string pathString, int? pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -226,7 +226,7 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// /// Index associated with the operation. /// string - public string TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(string pathString, int pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0) + public string TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(string pathString, int? pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath); return localVarResponse.Data; @@ -242,7 +242,7 @@ public string TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnu /// /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(string pathString, int pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(string pathString, int? pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0) { // verify the required parameter 'pathString' is set if (pathString == null) @@ -250,6 +250,12 @@ public Org.OpenAPITools.Client.ApiResponse TestsPathStringPathStringInte throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pathString' when calling PathApi->TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath"); } + // verify the required parameter 'pathInteger' is set + if (pathInteger == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pathInteger' when calling PathApi->TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath"); + } + // verify the required parameter 'enumNonrefStringPath' is set if (enumNonrefStringPath == null) { @@ -312,7 +318,7 @@ public Org.OpenAPITools.Client.ApiResponse TestsPathStringPathStringInte /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsync(string pathString, int pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathAsync(string pathString, int? pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfoAsync(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -329,7 +335,7 @@ public Org.OpenAPITools.Client.ApiResponse TestsPathStringPathStringInte /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfoAsync(string pathString, int pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfoAsync(string pathString, int? pathInteger, string enumNonrefStringPath, StringEnumRef enumRefStringPath, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { // verify the required parameter 'pathString' is set if (pathString == null) @@ -337,6 +343,12 @@ public Org.OpenAPITools.Client.ApiResponse TestsPathStringPathStringInte throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pathString' when calling PathApi->TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath"); } + // verify the required parameter 'pathInteger' is set + if (pathInteger == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'pathInteger' when calling PathApi->TestsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath"); + } + // verify the required parameter 'enumNonrefStringPath' is set if (enumNonrefStringPath == null) { diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Api/QueryApi.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Api/QueryApi.cs index 5b5dd8318d56..44710bbf19f9 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Api/QueryApi.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Api/QueryApi.cs @@ -162,7 +162,7 @@ public interface IQueryApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// string - string TestQueryStyleFormExplodeFalseArrayInteger(List? queryObject = default(List?), int operationIndex = 0); + string TestQueryStyleFormExplodeFalseArrayInteger(List? queryObject = default(List?), int operationIndex = 0); /// /// Test query parameter(s) @@ -174,7 +174,7 @@ public interface IQueryApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse TestQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(List? queryObject = default(List?), int operationIndex = 0); + ApiResponse TestQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(List? queryObject = default(List?), int operationIndex = 0); /// /// Test query parameter(s) /// @@ -422,7 +422,7 @@ public interface IQueryApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task TestQueryStyleFormExplodeFalseArrayIntegerAsync(List? queryObject = default(List?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestQueryStyleFormExplodeFalseArrayIntegerAsync(List? queryObject = default(List?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Test query parameter(s) @@ -435,7 +435,7 @@ public interface IQueryApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> TestQueryStyleFormExplodeFalseArrayIntegerWithHttpInfoAsync(List? queryObject = default(List?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestQueryStyleFormExplodeFalseArrayIntegerWithHttpInfoAsync(List? queryObject = default(List?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Test query parameter(s) /// @@ -1457,7 +1457,7 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// (optional) /// Index associated with the operation. /// string - public string TestQueryStyleFormExplodeFalseArrayInteger(List? queryObject = default(List?), int operationIndex = 0) + public string TestQueryStyleFormExplodeFalseArrayInteger(List? queryObject = default(List?), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = TestQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(queryObject); return localVarResponse.Data; @@ -1470,7 +1470,7 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse TestQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(List? queryObject = default(List?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(List? queryObject = default(List?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1525,7 +1525,7 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task TestQueryStyleFormExplodeFalseArrayIntegerAsync(List? queryObject = default(List?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestQueryStyleFormExplodeFalseArrayIntegerAsync(List? queryObject = default(List?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await TestQueryStyleFormExplodeFalseArrayIntegerWithHttpInfoAsync(queryObject, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1539,7 +1539,7 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> TestQueryStyleFormExplodeFalseArrayIntegerWithHttpInfoAsync(List? queryObject = default(List?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestQueryStyleFormExplodeFalseArrayIntegerWithHttpInfoAsync(List? queryObject = default(List?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs index 4c59b1d4f010..d7752f4bf47c 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Category.cs @@ -37,7 +37,7 @@ public partial class Category : IEquatable, IValidatableObject /// /// id. /// name. - public Category(long id = default(long), string name = default(string)) + public Category(long? id = default(long?), string name = default(string)) { this.Id = id; this.Name = name; @@ -48,7 +48,7 @@ public partial class Category : IEquatable, IValidatableObject /// /// 1 [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -104,7 +104,8 @@ public bool Equals(Category input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -122,7 +123,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs index 92ba2761b5c6..448f61a286fe 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DataQuery.cs @@ -40,7 +40,7 @@ public partial class DataQuery : Query, IEquatable, IValidatableObjec /// A date. /// Query. /// outcomes. - public DataQuery(string suffix = default(string), string text = default(string), DateTime date = default(DateTime), long id = default(long), List outcomes = default(List)) : base(id, outcomes) + public DataQuery(string suffix = default(string), string text = default(string), DateTime? date = default(DateTime?), long? id = default(long?), List outcomes = default(List)) : base(id, outcomes) { this.Suffix = suffix; this.Text = text; @@ -67,7 +67,7 @@ public partial class DataQuery : Query, IEquatable, IValidatableObjec /// /// A date [DataMember(Name = "date", EmitDefaultValue = false)] - public DateTime Date { get; set; } + public DateTime? Date { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs index 3a0530813ead..957976bcad70 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/DefaultValue.cs @@ -68,7 +68,7 @@ public enum ArrayStringEnumDefaultEnum /// arrayStringNullable. /// arrayStringExtensionNullable. /// stringNullable. - public DefaultValue(List arrayStringEnumRefDefault = default(List), List arrayStringEnumDefault = default(List), List arrayStringDefault = default(List), List arrayIntegerDefault = default(List), List arrayString = default(List), List arrayStringNullable = default(List), List arrayStringExtensionNullable = default(List), string stringNullable = default(string)) + public DefaultValue(List arrayStringEnumRefDefault = default(List), List arrayStringEnumDefault = default(List), List arrayStringDefault = default(List), List arrayIntegerDefault = default(List), List arrayString = default(List), List arrayStringNullable = default(List), List arrayStringExtensionNullable = default(List), string stringNullable = default(string)) { this.ArrayStringEnumRefDefault = arrayStringEnumRefDefault; this.ArrayStringEnumDefault = arrayStringEnumDefault; @@ -102,7 +102,7 @@ public enum ArrayStringEnumDefaultEnum /// Gets or Sets ArrayIntegerDefault /// [DataMember(Name = "array_integer_default", EmitDefaultValue = false)] - public List ArrayIntegerDefault { get; set; } + public List ArrayIntegerDefault { get; set; } /// /// Gets or Sets ArrayString diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs index ccf8e681847c..05f04231560b 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/NumberPropertiesOnly.cs @@ -38,7 +38,7 @@ public partial class NumberPropertiesOnly : IEquatable, IV /// number. /// varFloat. /// varDouble. - public NumberPropertiesOnly(decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double)) + public NumberPropertiesOnly(decimal? number = default(decimal?), float? varFloat = default(float?), double? varDouble = default(double?)) { this.Number = number; this.Float = varFloat; @@ -49,19 +49,19 @@ public partial class NumberPropertiesOnly : IEquatable, IV /// Gets or Sets Number /// [DataMember(Name = "number", EmitDefaultValue = false)] - public decimal Number { get; set; } + public decimal? Number { get; set; } /// /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Returns the string presentation of the object @@ -111,15 +111,18 @@ public bool Equals(NumberPropertiesOnly input) return ( this.Number == input.Number || - this.Number.Equals(input.Number) + (this.Number != null && + this.Number.Equals(input.Number)) ) && ( this.Float == input.Float || - this.Float.Equals(input.Float) + (this.Float != null && + this.Float.Equals(input.Float)) ) && ( this.Double == input.Double || - this.Double.Equals(input.Double) + (this.Double != null && + this.Double.Equals(input.Double)) ); } @@ -132,9 +135,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); + if (this.Number != null) + { + hashCode = (hashCode * 59) + this.Number.GetHashCode(); + } + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } return hashCode; } } @@ -146,14 +158,14 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Double (double) maximum - if (this.Double > (double)50.2) + // Double (double?) maximum + if (this.Double > (double?)50.2) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 50.2.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)0.8) + // Double (double?) minimum + if (this.Double < (double?)0.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 0.8.", new [] { "Double" }); } diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs index e3a45973d8b5..e92213d16980 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Pet.cs @@ -79,7 +79,7 @@ protected Pet() { } /// photoUrls (required). /// tags. /// pet status in the store. - public Pet(long id = default(long), string name = default(string), Category category = default(Category), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) + public Pet(long? id = default(long?), string name = default(string), Category category = default(Category), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { // to ensure "name" is required (not null) if (name == null) @@ -104,7 +104,7 @@ protected Pet() { } /// /// 10 [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -182,7 +182,8 @@ public bool Equals(Pet input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -221,7 +222,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs index 0ff925611a5b..c44f58791987 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Query.cs @@ -62,7 +62,7 @@ public enum OutcomesEnum /// /// Query. /// outcomes. - public Query(long id = default(long), List outcomes = default(List)) + public Query(long? id = default(long?), List outcomes = default(List)) { this.Id = id; this.Outcomes = outcomes; @@ -73,7 +73,7 @@ public enum OutcomesEnum /// /// Query [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Outcomes @@ -128,7 +128,8 @@ public bool Equals(Query input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Outcomes == input.Outcomes || @@ -147,7 +148,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Outcomes != null) { hashCode = (hashCode * 59) + this.Outcomes.GetHashCode(); diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs index 66eab762090b..eab2102728c5 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Tag.cs @@ -37,7 +37,7 @@ public partial class Tag : IEquatable, IValidatableObject /// /// id. /// name. - public Tag(long id = default(long), string name = default(string)) + public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; this.Name = name; @@ -47,7 +47,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -102,7 +102,8 @@ public bool Equals(Tag input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -120,7 +121,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs index 42b8e674635a..e8055519b8dd 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.cs @@ -39,7 +39,7 @@ public partial class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectPa /// color. /// id. /// name. - public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(string size = default(string), string color = default(string), long id = default(long), string name = default(string)) + public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(string size = default(string), string color = default(string), long? id = default(long?), string name = default(string)) { this.Size = size; this.Color = color; @@ -64,7 +64,7 @@ public partial class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectPa /// /// 1 [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -132,7 +132,8 @@ public bool Equals(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectPara ) && ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -158,7 +159,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Color.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/echo_api/php-nextgen-streaming/.openapi-generator/FILES b/samples/client/echo_api/php-nextgen-streaming/.openapi-generator/FILES index c51141c743e7..53ad43f78dc2 100644 --- a/samples/client/echo_api/php-nextgen-streaming/.openapi-generator/FILES +++ b/samples/client/echo_api/php-nextgen-streaming/.openapi-generator/FILES @@ -24,13 +24,13 @@ docs/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md docs/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md git_push.sh phpunit.xml.dist +src/ApiException.php src/Api/AuthApi.php src/Api/BodyApi.php src/Api/FormApi.php src/Api/HeaderApi.php src/Api/PathApi.php src/Api/QueryApi.php -src/ApiException.php src/Configuration.php src/HeaderSelector.php src/Model/Bird.php diff --git a/samples/client/echo_api/php-nextgen-streaming/phpunit.xml.dist b/samples/client/echo_api/php-nextgen-streaming/phpunit.xml.dist index 1135449a8d9b..cba878f52707 100644 --- a/samples/client/echo_api/php-nextgen-streaming/phpunit.xml.dist +++ b/samples/client/echo_api/php-nextgen-streaming/phpunit.xml.dist @@ -2,8 +2,8 @@ - ./src/Api - ./src/Model + ./src\/Api + ./src\/Model diff --git a/samples/client/echo_api/php-nextgen/.openapi-generator/FILES b/samples/client/echo_api/php-nextgen/.openapi-generator/FILES index c51141c743e7..53ad43f78dc2 100644 --- a/samples/client/echo_api/php-nextgen/.openapi-generator/FILES +++ b/samples/client/echo_api/php-nextgen/.openapi-generator/FILES @@ -24,13 +24,13 @@ docs/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md docs/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md git_push.sh phpunit.xml.dist +src/ApiException.php src/Api/AuthApi.php src/Api/BodyApi.php src/Api/FormApi.php src/Api/HeaderApi.php src/Api/PathApi.php src/Api/QueryApi.php -src/ApiException.php src/Configuration.php src/HeaderSelector.php src/Model/Bird.php diff --git a/samples/client/echo_api/php-nextgen/phpunit.xml.dist b/samples/client/echo_api/php-nextgen/phpunit.xml.dist index 1135449a8d9b..cba878f52707 100644 --- a/samples/client/echo_api/php-nextgen/phpunit.xml.dist +++ b/samples/client/echo_api/php-nextgen/phpunit.xml.dist @@ -2,8 +2,8 @@ - ./src/Api - ./src/Model + ./src\/Api + ./src\/Model diff --git a/samples/client/echo_api/r/.openapi-generator/FILES b/samples/client/echo_api/r/.openapi-generator/FILES index cf3034e39d0c..79f7452245e1 100644 --- a/samples/client/echo_api/r/.openapi-generator/FILES +++ b/samples/client/echo_api/r/.openapi-generator/FILES @@ -5,6 +5,7 @@ .travis.yml DESCRIPTION NAMESPACE +README.md R/api_client.R R/api_response.R R/auth_api.R @@ -25,7 +26,6 @@ R/tag.R R/test_form_object_multipart_request_marker.R R/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.R R/test_query_style_form_explode_true_array_string_query_object_parameter.R -README.md docs/AuthApi.md docs/Bird.md docs/BodyApi.md diff --git a/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES b/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES index 379998b2a2b8..03da4aaacabb 100644 --- a/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES +++ b/samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES @@ -5,6 +5,7 @@ .travis.yml DESCRIPTION NAMESPACE +README.md R/allof_tag_api_response.R R/animal.R R/any_of_pig.R @@ -39,7 +40,6 @@ R/user.R R/user_api.R R/whale.R R/zebra.R -README.md docs/AllofTagApiResponse.md docs/Animal.md docs/AnyOfPig.md diff --git a/samples/client/petstore/R-httr2/.openapi-generator/FILES b/samples/client/petstore/R-httr2/.openapi-generator/FILES index 07243c898d78..af8bc6f011d8 100644 --- a/samples/client/petstore/R-httr2/.openapi-generator/FILES +++ b/samples/client/petstore/R-httr2/.openapi-generator/FILES @@ -5,6 +5,7 @@ .travis.yml DESCRIPTION NAMESPACE +README.md R/allof_tag_api_response.R R/animal.R R/any_of_pig.R @@ -38,7 +39,6 @@ R/user.R R/user_api.R R/whale.R R/zebra.R -README.md docs/AllofTagApiResponse.md docs/Animal.md docs/AnyOfPig.md diff --git a/samples/client/petstore/R/.openapi-generator/FILES b/samples/client/petstore/R/.openapi-generator/FILES index 43681d7ddb2c..d5c00e7a92f3 100644 --- a/samples/client/petstore/R/.openapi-generator/FILES +++ b/samples/client/petstore/R/.openapi-generator/FILES @@ -5,6 +5,7 @@ .travis.yml DESCRIPTION NAMESPACE +README.md R/allof_tag_api_response.R R/animal.R R/any_of_pig.R @@ -38,7 +39,6 @@ R/user.R R/user_api.R R/whale.R R/zebra.R -README.md docs/AllofTagApiResponse.md docs/Animal.md docs/AnyOfPig.md diff --git a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Functions/PetApi.cs b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Functions/PetApi.cs index 330b31105f64..2aa73e347b19 100644 --- a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Functions/PetApi.cs +++ b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Functions/PetApi.cs @@ -27,7 +27,7 @@ public async Task> _AddPet([HttpTrigger(AuthorizationLevel.Ano } [FunctionName("PetApi_DeletePet")] - public async Task> _DeletePet([HttpTrigger(AuthorizationLevel.Anonymous, "Delete", Route = "v2pet/{petId}")]HttpRequest req, ExecutionContext context, long petId) + public async Task> _DeletePet([HttpTrigger(AuthorizationLevel.Anonymous, "Delete", Route = "v2pet/{petId}")]HttpRequest req, ExecutionContext context, long? petId) { var method = this.GetType().GetMethod("DeletePet"); return method != null @@ -54,7 +54,7 @@ public async Task>> _FindPetsByTags([HttpTrigger(Authoriz } [FunctionName("PetApi_GetPetById")] - public async Task> _GetPetById([HttpTrigger(AuthorizationLevel.Anonymous, "Get", Route = "v2pet/{petId}")]HttpRequest req, ExecutionContext context, long petId) + public async Task> _GetPetById([HttpTrigger(AuthorizationLevel.Anonymous, "Get", Route = "v2pet/{petId}")]HttpRequest req, ExecutionContext context, long? petId) { var method = this.GetType().GetMethod("GetPetById"); return method != null @@ -72,7 +72,7 @@ public async Task> _UpdatePet([HttpTrigger(AuthorizationLevel. } [FunctionName("PetApi_UpdatePetWithForm")] - public async Task> _UpdatePetWithForm([HttpTrigger(AuthorizationLevel.Anonymous, "Post", Route = "v2pet/{petId}")]HttpRequest req, ExecutionContext context, long petId) + public async Task> _UpdatePetWithForm([HttpTrigger(AuthorizationLevel.Anonymous, "Post", Route = "v2pet/{petId}")]HttpRequest req, ExecutionContext context, long? petId) { var method = this.GetType().GetMethod("UpdatePetWithForm"); return method != null @@ -81,7 +81,7 @@ public async Task> _UpdatePetWithForm([HttpTrigger(AuthorizationL } [FunctionName("PetApi_UploadFile")] - public async Task> _UploadFile([HttpTrigger(AuthorizationLevel.Anonymous, "Post", Route = "v2pet/{petId}/uploadImage")]HttpRequest req, ExecutionContext context, long petId) + public async Task> _UploadFile([HttpTrigger(AuthorizationLevel.Anonymous, "Post", Route = "v2pet/{petId}/uploadImage")]HttpRequest req, ExecutionContext context, long? petId) { var method = this.GetType().GetMethod("UploadFile"); return method != null diff --git a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Functions/StoreApi.cs b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Functions/StoreApi.cs index 47e383d46310..1f2718767e8f 100644 --- a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Functions/StoreApi.cs +++ b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Functions/StoreApi.cs @@ -27,16 +27,16 @@ public async Task> _DeleteOrder([HttpTrigger(AuthorizationLevel.A } [FunctionName("StoreApi_GetInventory")] - public async Task>> _GetInventory([HttpTrigger(AuthorizationLevel.Anonymous, "Get", Route = "v2store/inventory")]HttpRequest req, ExecutionContext context) + public async Task>> _GetInventory([HttpTrigger(AuthorizationLevel.Anonymous, "Get", Route = "v2store/inventory")]HttpRequest req, ExecutionContext context) { var method = this.GetType().GetMethod("GetInventory"); return method != null - ? (await ((Task>)method.Invoke(this, new object[] { req, context })).ConfigureAwait(false)) + ? (await ((Task>)method.Invoke(this, new object[] { req, context })).ConfigureAwait(false)) : new StatusCodeResult((int)HttpStatusCode.NotImplemented); } [FunctionName("StoreApi_GetOrderById")] - public async Task> _GetOrderById([HttpTrigger(AuthorizationLevel.Anonymous, "Get", Route = "v2store/order/{orderId}")]HttpRequest req, ExecutionContext context, [Range(1, 5)]long orderId) + public async Task> _GetOrderById([HttpTrigger(AuthorizationLevel.Anonymous, "Get", Route = "v2store/order/{orderId}")]HttpRequest req, ExecutionContext context, [Range(1, 5)]long? orderId) { var method = this.GetType().GetMethod("GetOrderById"); return method != null diff --git a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/ApiResponse.cs b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/ApiResponse.cs index 88e45fce388b..8cb6cfa61475 100644 --- a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/ApiResponse.cs +++ b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/ApiResponse.cs @@ -30,7 +30,7 @@ public partial class ApiResponse : IEquatable /// Gets or Sets Code /// [DataMember(Name="code", EmitDefaultValue=false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -93,7 +93,7 @@ public bool Equals(ApiResponse other) return ( Code == other.Code || - + Code != null && Code.Equals(other.Code) ) && ( @@ -118,7 +118,7 @@ public override int GetHashCode() { var hashCode = 41; // Suitable nullity checks etc, of course :) - + if (Code != null) hashCode = hashCode * 59 + Code.GetHashCode(); if (Type != null) hashCode = hashCode * 59 + Type.GetHashCode(); diff --git a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Category.cs b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Category.cs index 8b9fd03a240e..b6e1884bffde 100644 --- a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Category.cs +++ b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Category.cs @@ -30,7 +30,7 @@ public partial class Category : IEquatable /// Gets or Sets Id /// [DataMember(Name="id", EmitDefaultValue=false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -87,7 +87,7 @@ public bool Equals(Category other) return ( Id == other.Id || - + Id != null && Id.Equals(other.Id) ) && ( @@ -107,7 +107,7 @@ public override int GetHashCode() { var hashCode = 41; // Suitable nullity checks etc, of course :) - + if (Id != null) hashCode = hashCode * 59 + Id.GetHashCode(); if (Name != null) hashCode = hashCode * 59 + Name.GetHashCode(); diff --git a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Order.cs b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Order.cs index e9013f0ed0df..039eaafba7d9 100644 --- a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Order.cs +++ b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Order.cs @@ -30,25 +30,25 @@ public partial class Order : IEquatable /// Gets or Sets Id /// [DataMember(Name="id", EmitDefaultValue=false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name="petId", EmitDefaultValue=false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name="quantity", EmitDefaultValue=false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate /// [DataMember(Name="shipDate", EmitDefaultValue=false)] - public DateTime ShipDate { get; set; } + public DateTime? ShipDate { get; set; } /// @@ -90,7 +90,7 @@ public enum StatusEnum /// Gets or Sets Complete /// [DataMember(Name="complete", EmitDefaultValue=false)] - public bool Complete { get; set; } = false; + public bool? Complete { get; set; } = false; /// /// Returns the string presentation of the object @@ -144,17 +144,17 @@ public bool Equals(Order other) return ( Id == other.Id || - + Id != null && Id.Equals(other.Id) ) && ( PetId == other.PetId || - + PetId != null && PetId.Equals(other.PetId) ) && ( Quantity == other.Quantity || - + Quantity != null && Quantity.Equals(other.Quantity) ) && ( @@ -169,7 +169,7 @@ public bool Equals(Order other) ) && ( Complete == other.Complete || - + Complete != null && Complete.Equals(other.Complete) ); } @@ -184,17 +184,17 @@ public override int GetHashCode() { var hashCode = 41; // Suitable nullity checks etc, of course :) - + if (Id != null) hashCode = hashCode * 59 + Id.GetHashCode(); - + if (PetId != null) hashCode = hashCode * 59 + PetId.GetHashCode(); - + if (Quantity != null) hashCode = hashCode * 59 + Quantity.GetHashCode(); if (ShipDate != null) hashCode = hashCode * 59 + ShipDate.GetHashCode(); hashCode = hashCode * 59 + Status.GetHashCode(); - + if (Complete != null) hashCode = hashCode * 59 + Complete.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Pet.cs b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Pet.cs index d5a816cd5ee1..07ab1da11661 100644 --- a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Pet.cs +++ b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Pet.cs @@ -30,7 +30,7 @@ public partial class Pet : IEquatable /// Gets or Sets Id /// [DataMember(Name="id", EmitDefaultValue=false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -146,7 +146,7 @@ public bool Equals(Pet other) return ( Id == other.Id || - + Id != null && Id.Equals(other.Id) ) && ( @@ -188,7 +188,7 @@ public override int GetHashCode() { var hashCode = 41; // Suitable nullity checks etc, of course :) - + if (Id != null) hashCode = hashCode * 59 + Id.GetHashCode(); if (Category != null) hashCode = hashCode * 59 + Category.GetHashCode(); diff --git a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Tag.cs b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Tag.cs index 090f95cc494f..74adb0f2b268 100644 --- a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Tag.cs +++ b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/Tag.cs @@ -30,7 +30,7 @@ public partial class Tag : IEquatable /// Gets or Sets Id /// [DataMember(Name="id", EmitDefaultValue=false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -86,7 +86,7 @@ public bool Equals(Tag other) return ( Id == other.Id || - + Id != null && Id.Equals(other.Id) ) && ( @@ -106,7 +106,7 @@ public override int GetHashCode() { var hashCode = 41; // Suitable nullity checks etc, of course :) - + if (Id != null) hashCode = hashCode * 59 + Id.GetHashCode(); if (Name != null) hashCode = hashCode * 59 + Name.GetHashCode(); diff --git a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/User.cs b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/User.cs index 4c6d96d08c50..9d62be5b7f2b 100644 --- a/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/User.cs +++ b/samples/client/petstore/csharp-functions/src/Org.OpenAPITools/Models/User.cs @@ -30,7 +30,7 @@ public partial class User : IEquatable /// Gets or Sets Id /// [DataMember(Name="id", EmitDefaultValue=false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -73,7 +73,7 @@ public partial class User : IEquatable /// /// User Status [DataMember(Name="userStatus", EmitDefaultValue=false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// Returns the string presentation of the object @@ -129,7 +129,7 @@ public bool Equals(User other) return ( Id == other.Id || - + Id != null && Id.Equals(other.Id) ) && ( @@ -164,7 +164,7 @@ public bool Equals(User other) ) && ( UserStatus == other.UserStatus || - + UserStatus != null && UserStatus.Equals(other.UserStatus) ); } @@ -179,7 +179,7 @@ public override int GetHashCode() { var hashCode = 41; // Suitable nullity checks etc, of course :) - + if (Id != null) hashCode = hashCode * 59 + Id.GetHashCode(); if (Username != null) hashCode = hashCode * 59 + Username.GetHashCode(); @@ -193,7 +193,7 @@ public override int GetHashCode() hashCode = hashCode * 59 + Password.GetHashCode(); if (Phone != null) hashCode = hashCode * 59 + Phone.GetHashCode(); - + if (UserStatus != null) hashCode = hashCode * 59 + UserStatus.GetHashCode(); return hashCode; } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ApiResponse.md index bb723d2baa13..faacf536f173 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/AppleReq.md index 005b8f8058a4..bb7b7576dc2e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md index 4764c0ff80c5..fb113074d3f2 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayArrayNumber** | **List<List<decimal>>** | | [optional] +**ArrayArrayNumber** | **List<List<decimal?>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayOfNumberOnly.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayOfNumberOnly.md index d93717103b8b..30e148e05489 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayNumber** | **List<decimal>** | | [optional] +**ArrayNumber** | **List<decimal?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayTest.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayTest.md index d74d11bae77d..89094d5e895c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayTest.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ArrayTest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ArrayOfString** | **List<string>** | | [optional] -**ArrayArrayOfInteger** | **List<List<long>>** | | [optional] +**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional] **ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Banana.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Banana.md index 226952d1cecb..72cbdcf0af0b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/BananaReq.md index f99aab99e387..2bf39b773a66 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Cat.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Cat.md index aa1ac17604eb..d41c6ec6eb65 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Category.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Category.md index 032a1faeb3ff..bdbe5ac5a483 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/DateOnlyClass.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/DateOnlyClass.md index d0912d2ac415..258d6673e120 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/DateOnlyClass.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/DateOnlyClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateOnlyProperty** | **DateTime** | | [optional] +**DateOnlyProperty** | **DateTime?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/DefaultApi.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/DefaultApi.md index 13db7cec8ee1..5998f2b161db 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/DefaultApi.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/DefaultApi.md @@ -185,7 +185,7 @@ No authorization required # **Hello** -> List<Guid> Hello () +> List<Guid?> Hello () Hello @@ -216,7 +216,7 @@ namespace Example try { // Hello - List result = apiInstance.Hello(); + List result = apiInstance.Hello(); Debug.WriteLine(result); } catch (ApiException e) @@ -237,7 +237,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Hello - ApiResponse> response = apiInstance.HelloWithHttpInfo(); + ApiResponse> response = apiInstance.HelloWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -254,7 +254,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**List** +**List** ### Authorization diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/EnumTest.md index 5ce3c4addd9b..66cc8c6d245e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FakeApi.md index bedc98a6492a..092fc45e57e7 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FakeApi.md @@ -115,7 +115,7 @@ No authorization required # **FakeOuterBooleanSerialize** -> bool FakeOuterBooleanSerialize (bool? body = null) +> bool? FakeOuterBooleanSerialize (bool? body = null) @@ -146,7 +146,7 @@ namespace Example try { - bool result = apiInstance.FakeOuterBooleanSerialize(body); + bool? result = apiInstance.FakeOuterBooleanSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -166,7 +166,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -187,7 +187,7 @@ catch (ApiException e) ### Return type -**bool** +**bool?** ### Authorization @@ -301,7 +301,7 @@ No authorization required # **FakeOuterNumberSerialize** -> decimal FakeOuterNumberSerialize (decimal? body = null) +> decimal? FakeOuterNumberSerialize (decimal? body = null) @@ -332,7 +332,7 @@ namespace Example try { - decimal result = apiInstance.FakeOuterNumberSerialize(body); + decimal? result = apiInstance.FakeOuterNumberSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -352,7 +352,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -373,7 +373,7 @@ catch (ApiException e) ### Return type -**decimal** +**decimal?** ### Authorization @@ -394,7 +394,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid? requiredStringUuid, string body = null) @@ -421,7 +421,7 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new FakeApi(httpClient, config, httpClientHandler); - var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String + var requiredStringUuid = "requiredStringUuid_example"; // Guid? | Required UUID String var body = "body_example"; // string | Input string as post body (optional) try @@ -463,7 +463,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringUuid** | **Guid** | Required UUID String | | +| **requiredStringUuid** | **Guid?** | Required UUID String | | | **body** | **string** | Input string as post body | [optional] | ### Return type @@ -1115,7 +1115,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, FileParameter binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, FileParameter binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1146,8 +1146,8 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new FakeApi(httpClient, config, httpClientHandler); - var number = 8.14D; // decimal | None - var varDouble = 1.2D; // double | None + var number = 8.14D; // decimal? | None + var varDouble = 1.2D; // double? | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) @@ -1198,8 +1198,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **number** | **decimal** | None | | -| **varDouble** | **double** | None | | +| **number** | **decimal?** | None | | +| **varDouble** | **double?** | None | | | **patternWithoutDelimiter** | **string** | None | | | **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | @@ -1343,7 +1343,7 @@ No authorization required # **TestGroupParameters** -> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) +> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) Fake endpoint to test group parameters (optional) @@ -1373,9 +1373,9 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new FakeApi(httpClient, config, httpClientHandler); - var requiredStringGroup = 56; // int | Required String in group parameters - var requiredBooleanGroup = true; // bool | Required Boolean in group parameters - var requiredInt64Group = 789L; // long | Required Integer in group parameters + var requiredStringGroup = 56; // int? | Required String in group parameters + var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters + var requiredInt64Group = 789L; // long? | Required Integer in group parameters var stringGroup = 56; // int? | String in group parameters (optional) var booleanGroup = true; // bool? | Boolean in group parameters (optional) var int64Group = 789L; // long? | Integer in group parameters (optional) @@ -1417,9 +1417,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringGroup** | **int** | Required String in group parameters | | -| **requiredBooleanGroup** | **bool** | Required Boolean in group parameters | | -| **requiredInt64Group** | **long** | Required Integer in group parameters | | +| **requiredStringGroup** | **int?** | Required String in group parameters | | +| **requiredBooleanGroup** | **bool?** | Required Boolean in group parameters | | +| **requiredInt64Group** | **long?** | Required Integer in group parameters | | | **stringGroup** | **int?** | String in group parameters | [optional] | | **booleanGroup** | **bool?** | Boolean in group parameters | [optional] | | **int64Group** | **long?** | Integer in group parameters | [optional] | diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FormatTest.md index c028ca739018..b7de5076a781 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FormatTest.md @@ -4,26 +4,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**Int32Range** | **int** | | [optional] -**Int64Positive** | **long** | | [optional] -**Int64Negative** | **long** | | [optional] -**Int64PositiveExclusive** | **long** | | [optional] -**Int64NegativeExclusive** | **long** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**Int32Range** | **int?** | | [optional] +**Int64Positive** | **int?** | | [optional] +**Int64Negative** | **int?** | | [optional] +**Int64PositiveExclusive** | **int?** | | [optional] +**Int64NegativeExclusive** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | [**FileParameter**](FileParameter.md) | | [optional] **Date** | **DateTime** | | -**DateTime** | **DateTime** | | [optional] -**Uuid** | **Guid** | | [optional] +**DateTime** | **DateTime?** | | [optional] +**Uuid** | **Guid?** | | [optional] **Password** | **string** | | **PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] **PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Fruit.md index 40df92d7c9b1..05aed3a2642b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FruitReq.md index 5db6b0e2d1d8..8f072a324cb0 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/GmFruit.md index da7b3a6ccf9f..265348eca479 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Mammal.md index aab8f4db9c75..75172cd3d506 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MapTest.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MapTest.md index 516f9d4fd37e..07c245718f12 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MapTest.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MapTest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional] **MapOfEnumString** | **Dictionary<string, MapTest.InnerEnum>** | | [optional] -**DirectMap** | **Dictionary<string, bool>** | | [optional] -**IndirectMap** | **Dictionary<string, bool>** | | [optional] +**DirectMap** | **Dictionary<string, bool?>** | | [optional] +**IndirectMap** | **Dictionary<string, bool?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixLog.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixLog.md index 1872e30daaa3..59943e8898e5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixLog.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixLog.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **Guid** | | **Description** | **string** | | **MixDate** | **DateTime** | | -**ShopId** | **Guid** | | [optional] +**ShopId** | **Guid?** | | [optional] **TotalPrice** | **float?** | | [optional] **TotalRecalculations** | **int** | | **TotalOverPoors** | **int** | | @@ -35,7 +35,7 @@ Name | Type | Description | Notes **PrimerProductId** | **string** | | [optional] **ProductId** | **string** | ProductId is only required for color mixes | [optional] **ProductName** | **string** | ProductName is only required for color mixes | [optional] -**SelectedVersionIndex** | **int** | | [optional] +**SelectedVersionIndex** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 050210a3e371..81d4a847dbe2 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UuidWithPattern** | **Guid** | | [optional] -**Uuid** | **Guid** | | [optional] -**DateTime** | **DateTime** | | [optional] +**UuidWithPattern** | **Guid?** | | [optional] +**Uuid** | **Guid?** | | [optional] +**DateTime** | **DateTime?** | | [optional] **Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Model200Response.md index 31f4d86fe43d..820f058bf221 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Name.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Name.md index 3e19db154a80..e440a45f0ae1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NumberOnly.md index 14a7c0f1071b..1af131f829ec 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b..20391539c912 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Order.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Order.md index 66c55c3b4737..1202b46b44ce 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Order.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] **Status** | **string** | Order Status | [optional] -**Complete** | **bool** | | [optional] [default to false] +**Complete** | **bool?** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/OuterComposite.md index eb42bcc1aaa4..71ca9b879223 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Pet.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Pet.md index c7224764e2d4..a54829f9a8e2 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/PetApi.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/PetApi.md index 7e996cb99b9c..1cee6d7bc2df 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/PetApi.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/PetApi.md @@ -108,7 +108,7 @@ void (empty response body) # **DeletePet** -> void DeletePet (long petId, string apiKey = null) +> void DeletePet (long? petId, string apiKey = null) Deletes a pet @@ -136,7 +136,7 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new PetApi(httpClient, config, httpClientHandler); - var petId = 789L; // long | Pet id to delete + var petId = 789L; // long? | Pet id to delete var apiKey = "apiKey_example"; // string | (optional) try @@ -176,7 +176,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | Pet id to delete | | +| **petId** | **long?** | Pet id to delete | | | **apiKey** | **string** | | [optional] | ### Return type @@ -402,7 +402,7 @@ catch (ApiException e) # **GetPetById** -> Pet GetPetById (long petId) +> Pet GetPetById (long? petId) Find pet by ID @@ -438,7 +438,7 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new PetApi(httpClient, config, httpClientHandler); - var petId = 789L; // long | ID of pet to return + var petId = 789L; // long? | ID of pet to return try { @@ -481,7 +481,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to return | | +| **petId** | **long?** | ID of pet to return | | ### Return type @@ -602,7 +602,7 @@ void (empty response body) # **UpdatePetWithForm** -> void UpdatePetWithForm (long petId, string name = null, string status = null) +> void UpdatePetWithForm (long? petId, string name = null, string status = null) Updates a pet in the store with form data @@ -630,7 +630,7 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new PetApi(httpClient, config, httpClientHandler); - var petId = 789L; // long | ID of pet that needs to be updated + var petId = 789L; // long? | ID of pet that needs to be updated var name = "name_example"; // string | Updated name of the pet (optional) var status = "status_example"; // string | Updated status of the pet (optional) @@ -671,7 +671,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet that needs to be updated | | +| **petId** | **long?** | ID of pet that needs to be updated | | | **name** | **string** | Updated name of the pet | [optional] | | **status** | **string** | Updated status of the pet | [optional] | @@ -698,7 +698,7 @@ void (empty response body) # **UploadFile** -> ApiResponse UploadFile (long petId, string additionalMetadata = null, FileParameter file = null) +> ApiResponse UploadFile (long? petId, string additionalMetadata = null, FileParameter file = null) uploads an image @@ -726,7 +726,7 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new PetApi(httpClient, config, httpClientHandler); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // FileParameter | file to upload (optional) @@ -771,7 +771,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | | **file** | **FileParameter****FileParameter** | file to upload | [optional] | @@ -798,7 +798,7 @@ catch (ApiException e) # **UploadFileWithRequiredFile** -> ApiResponse UploadFileWithRequiredFile (long petId, FileParameter requiredFile, string additionalMetadata = null) +> ApiResponse UploadFileWithRequiredFile (long? petId, FileParameter requiredFile, string additionalMetadata = null) uploads an image (required) @@ -826,7 +826,7 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new PetApi(httpClient, config, httpClientHandler); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var requiredFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // FileParameter | file to upload var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) @@ -871,7 +871,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **requiredFile** | **FileParameter****FileParameter** | file to upload | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RequiredClass.md index 07b6f018f6c1..018f2a832832 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,23 +15,23 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] -**NotRequiredNotnullableDateProp** | **DateTime** | | [optional] +**NotRequiredNotnullableDateProp** | **DateTime?** | | [optional] **RequiredNotnullableDatetimeProp** | **DateTime** | | **RequiredNullableDatetimeProp** | **DateTime?** | | **NotrequiredNullableDatetimeProp** | **DateTime?** | | [optional] -**NotrequiredNotnullableDatetimeProp** | **DateTime** | | [optional] +**NotrequiredNotnullableDatetimeProp** | **DateTime?** | | [optional] **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] @@ -43,7 +43,7 @@ Name | Type | Description | Notes **RequiredNullableUuid** | **Guid?** | | **RequiredNotnullableUuid** | **Guid** | | **NotrequiredNullableUuid** | **Guid?** | | [optional] -**NotrequiredNotnullableUuid** | **Guid** | | [optional] +**NotrequiredNotnullableUuid** | **Guid?** | | [optional] **RequiredNullableArrayOfString** | **List<string>** | | **RequiredNotnullableArrayOfString** | **List<string>** | | **NotrequiredNullableArrayOfString** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Return.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Return.md index a10daf95cf1d..d554c7612cbe 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] **Lock** | **string** | | **Abstract** | **string** | | **Unsafe** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RolesReportsHash.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RolesReportsHash.md index 309b0c02615c..52bb81a7dab6 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RolesReportsHash.md @@ -5,7 +5,7 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] +**RoleUuid** | **Guid?** | | [optional] **Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1..6d9805d03479 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/StoreApi.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/StoreApi.md index f9552813fa38..5ff4a691022f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/StoreApi.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/StoreApi.md @@ -103,7 +103,7 @@ No authorization required # **GetInventory** -> Dictionary<string, int> GetInventory () +> Dictionary<string, int?> GetInventory () Returns pet inventories by status @@ -139,7 +139,7 @@ namespace Example try { // Returns pet inventories by status - Dictionary result = apiInstance.GetInventory(); + Dictionary result = apiInstance.GetInventory(); Debug.WriteLine(result); } catch (ApiException e) @@ -160,7 +160,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Returns pet inventories by status - ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); + ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -177,7 +177,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**Dictionary** +**Dictionary** ### Authorization @@ -198,7 +198,7 @@ This endpoint does not need any parameter. # **GetOrderById** -> Order GetOrderById (long orderId) +> Order GetOrderById (long? orderId) Find purchase order by ID @@ -225,7 +225,7 @@ namespace Example HttpClient httpClient = new HttpClient(); HttpClientHandler httpClientHandler = new HttpClientHandler(); var apiInstance = new StoreApi(httpClient, config, httpClientHandler); - var orderId = 789L; // long | ID of pet that needs to be fetched + var orderId = 789L; // long? | ID of pet that needs to be fetched try { @@ -268,7 +268,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **orderId** | **long** | ID of pet that needs to be fetched | | +| **orderId** | **long?** | ID of pet that needs to be fetched | | ### Return type diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Tag.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Tag.md index fdd22eb31fdd..f86abfc26e02 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/User.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/User.md index b0cd4dc042bf..da9b34219d84 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Whale.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Whale.md index 5fc3dc7f85c2..a1512d751e8e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 82d443f3b6dd..6cb8c8585ac1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -68,8 +68,8 @@ public interface IDefaultApiSync : IApiAccessor /// Hello /// /// Thrown when fails to make API call - /// List<Guid> - List Hello(); + /// List<Guid?> + List Hello(); /// /// Hello @@ -78,8 +78,8 @@ public interface IDefaultApiSync : IApiAccessor /// Hello /// /// Thrown when fails to make API call - /// ApiResponse of List<Guid> - ApiResponse> HelloWithHttpInfo(); + /// ApiResponse of List<Guid?> + ApiResponse> HelloWithHttpInfo(); /// /// /// @@ -173,8 +173,8 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of List<Guid> - System.Threading.Tasks.Task> HelloAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<Guid?> + System.Threading.Tasks.Task> HelloAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hello @@ -184,8 +184,8 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<Guid?>) + System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -659,10 +659,10 @@ public Org.OpenAPITools.Client.ApiResponse GetCountryWithHttpInfo(string /// Hello Hello /// /// Thrown when fails to make API call - /// List<Guid> - public List Hello() + /// List<Guid?> + public List Hello() { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); return localVarResponse.Data; } @@ -670,8 +670,8 @@ public List Hello() /// Hello Hello /// /// Thrown when fails to make API call - /// ApiResponse of List<Guid> - public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() + /// ApiResponse of List<Guid?> + public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -692,7 +692,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() // make the HTTP request - var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -708,10 +708,10 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of List<Guid> - public async System.Threading.Tasks.Task> HelloAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<Guid?> + public async System.Threading.Tasks.Task> HelloAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -720,8 +720,8 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<Guid?>) + public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -745,7 +745,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 23a1a1809ba2..d4ac42a7b3f5 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -51,8 +51,8 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?)); + /// bool? + bool? FakeOuterBooleanSerialize(bool? body = default(bool?)); /// /// @@ -62,8 +62,8 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)); + /// ApiResponse of bool? + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)); /// /// /// @@ -93,8 +93,8 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)); + /// decimal? + decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?)); /// /// @@ -104,8 +104,8 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)); + /// ApiResponse of decimal? + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)); /// /// /// @@ -116,7 +116,7 @@ public interface IFakeApiSync : IApiAccessor /// Required UUID String /// Input string as post body (optional) /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string)); + string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string)); /// /// @@ -128,7 +128,7 @@ public interface IFakeApiSync : IApiAccessor /// Required UUID String /// Input string as post body (optional) /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string)); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string)); /// /// Array of Enums /// @@ -279,7 +279,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// None (optional) /// - void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -303,7 +303,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// None (optional) /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); /// /// To test enum parameters /// @@ -353,7 +353,7 @@ public interface IFakeApiSync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); /// /// Fake endpoint to test group parameters (optional) @@ -369,7 +369,7 @@ public interface IFakeApiSync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); /// /// test inline additionalProperties /// @@ -520,8 +520,8 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. - /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of bool? + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -532,8 +532,8 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (bool?) + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -566,8 +566,8 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. - /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of decimal? + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -578,8 +578,8 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (decimal?) + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -591,7 +591,7 @@ public interface IFakeApiAsync : IApiAccessor /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -604,7 +604,7 @@ public interface IFakeApiAsync : IApiAccessor /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Array of Enums /// @@ -785,7 +785,7 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -810,7 +810,7 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -863,7 +863,7 @@ public interface IFakeApiAsync : IApiAccessor /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint to test group parameters (optional) @@ -880,7 +880,7 @@ public interface IFakeApiAsync : IApiAccessor /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// test inline additionalProperties /// @@ -1333,10 +1333,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?)) + /// bool? + public bool? FakeOuterBooleanSerialize(bool? body = default(bool?)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1345,8 +1345,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)) + /// ApiResponse of bool? + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1369,7 +1369,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1386,10 +1386,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. - /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of bool? + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1399,8 +1399,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (bool?) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1426,7 +1426,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1551,10 +1551,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)) + /// decimal? + public decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1563,8 +1563,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)) + /// ApiResponse of decimal? + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1587,7 +1587,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1604,10 +1604,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. - /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of decimal? + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1617,8 +1617,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (decimal?) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1644,7 +1644,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1662,7 +1662,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Required UUID String /// Input string as post body (optional) /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string)) + public string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); return localVarResponse.Data; @@ -1675,8 +1675,12 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Required UUID String /// Input string as post body (optional) /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string)) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1718,7 +1722,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1732,8 +1736,12 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2562,7 +2570,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// - public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) { TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } @@ -2586,8 +2594,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) { + // verify the required parameter 'number' is set + if (number == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); @@ -2696,7 +2712,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, cancellationToken).ConfigureAwait(false); } @@ -2721,8 +2737,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), FileParameter binary = default(FileParameter), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'number' is set + if (number == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); @@ -3020,7 +3044,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) { TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -3036,8 +3060,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -3100,7 +3136,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken).ConfigureAwait(false); } @@ -3117,8 +3153,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index b019ba4c713a..afaeaa74e53d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -52,7 +52,7 @@ public interface IPetApiSync : IApiAccessor /// Pet id to delete /// (optional) /// - void DeletePet(long petId, string apiKey = default(string)); + void DeletePet(long? petId, string apiKey = default(string)); /// /// Deletes a pet @@ -64,7 +64,7 @@ public interface IPetApiSync : IApiAccessor /// Pet id to delete /// (optional) /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)); + ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string)); /// /// Finds Pets by status /// @@ -118,7 +118,7 @@ public interface IPetApiSync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Pet - Pet GetPetById(long petId); + Pet GetPetById(long? petId); /// /// Find pet by ID @@ -129,7 +129,7 @@ public interface IPetApiSync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId); + ApiResponse GetPetByIdWithHttpInfo(long? petId); /// /// Update an existing pet /// @@ -156,7 +156,7 @@ public interface IPetApiSync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)); + void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string)); /// /// Updates a pet in the store with form data @@ -169,7 +169,7 @@ public interface IPetApiSync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)); + ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string)); /// /// uploads an image /// @@ -178,7 +178,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter)); + ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter)); /// /// uploads an image @@ -191,7 +191,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter)); + ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter)); /// /// uploads an image (required) /// @@ -200,7 +200,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, FileParameter requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFile(long? petId, FileParameter requiredFile, string additionalMetadata = default(string)); /// /// uploads an image (required) @@ -213,7 +213,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, FileParameter requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, FileParameter requiredFile, string additionalMetadata = default(string)); #endregion Synchronous Operations } @@ -257,7 +257,7 @@ public interface IPetApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Deletes a pet @@ -270,7 +270,7 @@ public interface IPetApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Finds Pets by status /// @@ -329,7 +329,7 @@ public interface IPetApiAsync : IApiAccessor /// ID of pet to return /// Cancellation Token to cancel the request. /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long? petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find pet by ID @@ -341,7 +341,7 @@ public interface IPetApiAsync : IApiAccessor /// ID of pet to return /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an existing pet /// @@ -377,7 +377,7 @@ public interface IPetApiAsync : IApiAccessor /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Updates a pet in the store with form data @@ -391,7 +391,7 @@ public interface IPetApiAsync : IApiAccessor /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image /// @@ -404,7 +404,7 @@ public interface IPetApiAsync : IApiAccessor /// file to upload (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image @@ -418,7 +418,7 @@ public interface IPetApiAsync : IApiAccessor /// file to upload (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) /// @@ -431,7 +431,7 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, FileParameter requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, FileParameter requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) @@ -445,7 +445,7 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, FileParameter requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, FileParameter requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -825,7 +825,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// - public void DeletePet(long petId, string apiKey = default(string)) + public void DeletePet(long? petId, string apiKey = default(string)) { DeletePetWithHttpInfo(petId, apiKey); } @@ -837,8 +837,12 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -887,7 +891,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken).ConfigureAwait(false); } @@ -900,8 +904,12 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1277,7 +1285,7 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// ID of pet to return /// Pet - public Pet GetPetById(long petId) + public Pet GetPetById(long? petId) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); return localVarResponse.Data; @@ -1289,8 +1297,12 @@ public Pet GetPetById(long petId) /// Thrown when fails to make API call /// ID of pet to return /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long? petId) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1340,7 +1352,7 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// ID of pet to return /// Cancellation Token to cancel the request. /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long? petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1353,8 +1365,12 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// ID of pet to return /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1567,7 +1583,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)) + public void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string)) { UpdatePetWithFormWithHttpInfo(petId, name, status); } @@ -1580,8 +1596,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1636,7 +1656,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken).ConfigureAwait(false); } @@ -1650,8 +1670,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1708,7 +1732,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter)) + public ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); return localVarResponse.Data; @@ -1722,8 +1746,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1779,7 +1807,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1794,8 +1822,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), FileParameter file = default(FileParameter), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1853,7 +1885,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, FileParameter requiredFile, string additionalMetadata = default(string)) + public ApiResponse UploadFileWithRequiredFile(long? petId, FileParameter requiredFile, string additionalMetadata = default(string)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResponse.Data; @@ -1867,8 +1899,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, FileParameter requiredFile, string additionalMetadata = default(string)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, FileParameter requiredFile, string additionalMetadata = default(string)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + // verify the required parameter 'requiredFile' is set if (requiredFile == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile"); @@ -1926,7 +1962,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, FileParameter requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, FileParameter requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1941,8 +1977,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, FileParameter requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, FileParameter requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + // verify the required parameter 'requiredFile' is set if (requiredFile == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile"); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index fe9f83b0867b..6f907cfc7407 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -55,8 +55,8 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call - /// Dictionary<string, int> - Dictionary GetInventory(); + /// Dictionary<string, int?> + Dictionary GetInventory(); /// /// Returns pet inventories by status @@ -65,8 +65,8 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call - /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(); + /// ApiResponse of Dictionary<string, int?> + ApiResponse> GetInventoryWithHttpInfo(); /// /// Find purchase order by ID /// @@ -76,7 +76,7 @@ public interface IStoreApiSync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Order - Order GetOrderById(long orderId); + Order GetOrderById(long? orderId); /// /// Find purchase order by ID @@ -87,7 +87,7 @@ public interface IStoreApiSync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId); + ApiResponse GetOrderByIdWithHttpInfo(long? orderId); /// /// Place an order for a pet /// @@ -146,8 +146,8 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of Dictionary<string, int?> + System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Returns pet inventories by status @@ -157,8 +157,8 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (Dictionary<string, int?>) + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID /// @@ -169,7 +169,7 @@ public interface IStoreApiAsync : IApiAccessor /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID @@ -181,7 +181,7 @@ public interface IStoreApiAsync : IApiAccessor /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Place an order for a pet /// @@ -533,10 +533,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call - /// Dictionary<string, int> - public Dictionary GetInventory() + /// Dictionary<string, int?> + public Dictionary GetInventory() { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); return localVarResponse.Data; } @@ -544,8 +544,8 @@ public Dictionary GetInventory() /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call - /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo() + /// ApiResponse of Dictionary<string, int?> + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo() { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -571,7 +571,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -587,10 +587,10 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of Dictionary<string, int?> + public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -599,8 +599,8 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (Dictionary<string, int?>) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -629,7 +629,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -646,7 +646,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Order - public Order GetOrderById(long orderId) + public Order GetOrderById(long? orderId) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); return localVarResponse.Data; @@ -658,8 +658,12 @@ public Order GetOrderById(long orderId) /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long? orderId) { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -699,7 +703,7 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -712,8 +716,12 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 296753574edc..77fdfa24ca8b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -39,7 +39,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// code. /// type. /// message. - public ApiResponse(int code = default(int), string type = default(string), string message = default(string)) + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; this.Type = type; @@ -51,7 +51,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -125,7 +125,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 85ba742ea8ed..e13804792650 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -43,7 +43,7 @@ protected AppleReq() { } /// /// cultivar (required). /// mealy. - public AppleReq(string cultivar = default(string), bool mealy = default(bool)) + public AppleReq(string cultivar = default(string), bool? mealy = default(bool?)) { // to ensure "cultivar" is required (not null) if (cultivar == null) @@ -64,7 +64,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -122,7 +122,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 158143cec188..57db8dcce470 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -37,7 +37,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// arrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { this.ArrayArrayNumber = arrayArrayNumber; this.AdditionalProperties = new Dictionary(); @@ -47,7 +47,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable [DataMember(Name = "ArrayArrayNumber", EmitDefaultValue = false)] - public List> ArrayArrayNumber { get; set; } + public List> ArrayArrayNumber { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index a103c5b9f766..bbd9a602bfc1 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -37,7 +37,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Initializes a new instance of the class. /// /// arrayNumber. - public ArrayOfNumberOnly(List arrayNumber = default(List)) + public ArrayOfNumberOnly(List arrayNumber = default(List)) { this.ArrayNumber = arrayNumber; this.AdditionalProperties = new Dictionary(); @@ -47,7 +47,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Gets or Sets ArrayNumber /// [DataMember(Name = "ArrayNumber", EmitDefaultValue = false)] - public List ArrayNumber { get; set; } + public List ArrayNumber { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 521f6e10d68d..65e90abf7127 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -39,7 +39,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// arrayOfString. /// arrayArrayOfInteger. /// arrayArrayOfModel. - public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; this.ArrayArrayOfInteger = arrayArrayOfInteger; @@ -57,7 +57,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// Gets or Sets ArrayArrayOfInteger /// [DataMember(Name = "array_array_of_integer", EmitDefaultValue = false)] - public List> ArrayArrayOfInteger { get; set; } + public List> ArrayArrayOfInteger { get; set; } /// /// Gets or Sets ArrayArrayOfModel diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 55a7b982dfdf..f9b9d4483119 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -37,7 +37,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// lengthCm. - public Banana(decimal lengthCm = default(decimal)) + public Banana(decimal? lengthCm = default(decimal?)) { this.LengthCm = lengthCm; this.AdditionalProperties = new Dictionary(); @@ -47,7 +47,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Gets or Sets additional properties @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 7afbe08ac126..bebd6a44ab71 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -43,7 +43,7 @@ protected BananaReq() { } /// /// lengthCm (required). /// sweet. - public BananaReq(decimal lengthCm = default(decimal), bool sweet = default(bool)) + public BananaReq(decimal lengthCm = default(decimal), bool? sweet = default(bool?)) { this.LengthCm = lengthCm; this.Sweet = sweet; @@ -59,7 +59,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -114,7 +114,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index cec47afe1f2a..5018f486fe22 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -49,7 +49,7 @@ protected Cat() /// declawed. /// className (required) (default to "Cat"). /// color (default to "red"). - public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color) + public Cat(bool? declawed = default(bool?), string className = @"Cat", string color = @"red") : base(className, color) { this.Declawed = declawed; this.AdditionalProperties = new Dictionary(); @@ -59,7 +59,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Gets or Sets additional properties @@ -120,7 +120,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index 0057441d8857..cc2a44d300bb 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -46,7 +46,7 @@ protected Category() /// /// id. /// name (required) (default to "default-name"). - public Category(long id = default(long), string name = @"default-name") + public Category(long? id = default(long?), string name = @"default-name") { // to ensure "name" is required (not null) if (name == null) @@ -62,7 +62,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -129,7 +129,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 92a3adc8c27b..5be7972dc8b3 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -37,7 +37,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje /// Initializes a new instance of the class. /// /// dateOnlyProperty. - public DateOnlyClass(DateTime dateOnlyProperty = default(DateTime)) + public DateOnlyClass(DateTime? dateOnlyProperty = default(DateTime?)) { this.DateOnlyProperty = dateOnlyProperty; this.AdditionalProperties = new Dictionary(); @@ -49,7 +49,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje /// Fri Jul 21 00:00:00 UTC 2017 [DataMember(Name = "dateOnlyProperty", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime DateOnlyProperty { get; set; } + public DateTime? DateOnlyProperty { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 3309623635ca..ea65faac8b65 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -180,6 +180,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 87fac8c15b66..306201f930ce 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -68,7 +68,7 @@ protected FormatTest() /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), FileParameter binary = default(FileParameter), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int? integer = default(int?), int? int32 = default(int?), int? int32Range = default(int?), int? int64Positive = default(int?), int? int64Negative = default(int?), int? int64PositiveExclusive = default(int?), int? int64NegativeExclusive = default(int?), uint? unsignedInteger = default(uint?), long? int64 = default(long?), ulong? unsignedLong = default(ulong?), decimal number = default(decimal), float? varFloat = default(float?), double? varDouble = default(double?), decimal? varDecimal = default(decimal?), string varString = default(string), byte[] varByte = default(byte[]), FileParameter binary = default(FileParameter), DateTime date = default(DateTime), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; // to ensure "varByte" is required (not null) @@ -111,61 +111,61 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets Int32Range /// [DataMember(Name = "int32Range", EmitDefaultValue = false)] - public int Int32Range { get; set; } + public int? Int32Range { get; set; } /// /// Gets or Sets Int64Positive /// [DataMember(Name = "int64Positive", EmitDefaultValue = false)] - public long Int64Positive { get; set; } + public int? Int64Positive { get; set; } /// /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative { get; set; } + public int? Int64Negative { get; set; } /// /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive { get; set; } + public int? Int64PositiveExclusive { get; set; } /// /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive { get; set; } + public int? Int64NegativeExclusive { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -177,19 +177,19 @@ protected FormatTest() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -222,14 +222,14 @@ protected FormatTest() /// /// 2007-12-03T10:15:30+01:00 [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Uuid /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets Password @@ -339,20 +339,59 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.Int32Range != null) + { + hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); + } + if (this.Int64Positive != null) + { + hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); + } + if (this.Int64Negative != null) + { + hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); + } + if (this.Int64PositiveExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); + } + if (this.Int64NegativeExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -408,74 +447,74 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // Int32Range (int) maximum - if (this.Int32Range > (int)2147483647) + // Int32Range (int?) maximum + if (this.Int32Range > (int?)2147483647) { yield return new ValidationResult("Invalid value for Int32Range, must be a value less than or equal to 2147483647.", new [] { "Int32Range" }); } - // Int32Range (int) minimum - if (this.Int32Range < (int)-2147483648) + // Int32Range (int?) minimum + if (this.Int32Range < (int?)-2147483648) { yield return new ValidationResult("Invalid value for Int32Range, must be a value greater than or equal to -2147483648.", new [] { "Int32Range" }); } - // Int64Positive (long) minimum - if (this.Int64Positive < (long)2147483648) + // Int64Positive (int?) minimum + if (this.Int64Positive < (int?)2147483648) { yield return new ValidationResult("Invalid value for Int64Positive, must be a value greater than or equal to 2147483648.", new [] { "Int64Positive" }); } - // Int64Negative (long) maximum - if (this.Int64Negative > (long)-2147483649) + // Int64Negative (int?) maximum + if (this.Int64Negative > (int?)-2147483649) { yield return new ValidationResult("Invalid value for Int64Negative, must be a value less than or equal to -2147483649.", new [] { "Int64Negative" }); } - // Int64PositiveExclusive (long) minimum - if (this.Int64PositiveExclusive < (long)2147483647) + // Int64PositiveExclusive (int?) minimum + if (this.Int64PositiveExclusive < (int?)2147483647) { yield return new ValidationResult("Invalid value for Int64PositiveExclusive, must be a value greater than 2147483647.", new [] { "Int64PositiveExclusive" }); } - // Int64NegativeExclusive (long) maximum - if (this.Int64NegativeExclusive <= (long)-2147483648) + // Int64NegativeExclusive (int?) maximum + if (this.Int64NegativeExclusive <= (int?)-2147483648) { yield return new ValidationResult("Invalid value for Int64NegativeExclusive, must be a value less than -2147483648.", new [] { "Int64NegativeExclusive" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -492,26 +531,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 5255a249aba3..e9632057d75b 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -59,7 +59,7 @@ public enum InnerEnum /// mapOfEnumString. /// directMap. /// indirectMap. - public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) { this.MapMapOfString = mapMapOfString; this.MapOfEnumString = mapOfEnumString; @@ -84,13 +84,13 @@ public enum InnerEnum /// Gets or Sets DirectMap /// [DataMember(Name = "direct_map", EmitDefaultValue = false)] - public Dictionary DirectMap { get; set; } + public Dictionary DirectMap { get; set; } /// /// Gets or Sets IndirectMap /// [DataMember(Name = "indirect_map", EmitDefaultValue = false)] - public Dictionary IndirectMap { get; set; } + public Dictionary IndirectMap { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index 31e0e4e46e3a..b1651f9e1947 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -76,7 +76,7 @@ protected MixLog() /// ProductId is only required for color mixes. /// ProductName is only required for color mixes. /// selectedVersionIndex. - public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int)) + public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid? shopId = default(Guid?), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int? selectedVersionIndex = default(int?)) { this.Id = id; // to ensure "description" is required (not null) @@ -140,7 +140,7 @@ protected MixLog() /// Gets or Sets ShopId /// [DataMember(Name = "shopId", EmitDefaultValue = false)] - public Guid ShopId { get; set; } + public Guid? ShopId { get; set; } /// /// Gets or Sets TotalPrice @@ -317,7 +317,7 @@ protected MixLog() /// Gets or Sets SelectedVersionIndex /// [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)] - public int SelectedVersionIndex { get; set; } + public int? SelectedVersionIndex { get; set; } /// /// Gets or Sets additional properties @@ -520,7 +520,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ProductName.GetHashCode(); } - hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + if (this.SelectedVersionIndex != null) + { + hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index b8d4fffa4b50..6aff4a9b296e 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -49,10 +49,10 @@ public MixedAnyOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedAnyOfContent(bool actualInstance) + /// An instance of bool?. + public MixedAnyOfContent(bool? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -61,10 +61,10 @@ public MixedAnyOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedAnyOfContent(int actualInstance) + /// An instance of int?. + public MixedAnyOfContent(int? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -73,10 +73,10 @@ public MixedAnyOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedAnyOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedAnyOfContent(decimal? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -113,15 +113,15 @@ public override Object ActualInstance { _actualInstance = value; } - else if (value.GetType() == typeof(bool)) + else if (value.GetType() == typeof(bool?)) { _actualInstance = value; } - else if (value.GetType() == typeof(decimal)) + else if (value.GetType() == typeof(decimal?)) { _actualInstance = value; } - else if (value.GetType() == typeof(int)) + else if (value.GetType() == typeof(int?)) { _actualInstance = value; } @@ -131,7 +131,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -147,33 +147,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)ActualInstance; + return (bool?)ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)ActualInstance; + return (int?)ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)ActualInstance; + return (decimal?)ActualInstance; } /// @@ -236,38 +236,38 @@ public static MixedAnyOfContent FromJson(string jsonString) try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 241a53bfbe4a..b6a3a2ddf3ee 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -49,10 +49,10 @@ public MixedOneOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedOneOfContent(bool actualInstance) + /// An instance of bool?. + public MixedOneOfContent(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -61,10 +61,10 @@ public MixedOneOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedOneOfContent(int actualInstance) + /// An instance of int?. + public MixedOneOfContent(int? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -73,10 +73,10 @@ public MixedOneOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedOneOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedOneOfContent(decimal? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -113,15 +113,15 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } - else if (value.GetType() == typeof(decimal) || value is decimal) + else if (value.GetType() == typeof(decimal?) || value is decimal?) { this._actualInstance = value; } - else if (value.GetType() == typeof(int) || value is int) + else if (value.GetType() == typeof(int?) || value is int?) { this._actualInstance = value; } @@ -131,7 +131,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -147,33 +147,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)this.ActualInstance; + return (int?)this.ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)this.ActualInstance; + return (decimal?)this.ActualInstance; } /// @@ -247,61 +247,61 @@ public static MixedOneOfContent FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(decimal).GetProperty("AdditionalProperties") == null) + if (typeof(decimal?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("decimal"); + matchedTypes.Add("decimal?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(int).GetProperty("AdditionalProperties") == null) + if (typeof(int?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("int"); + matchedTypes.Add("int?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 254ccb20d125..68e8da3ce812 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -40,7 +40,7 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableuuid. /// dateTime. /// map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid uuidWithPattern = default(Guid), Guid uuid = default(Guid), DateTime dateTime = default(DateTime), Dictionary map = default(Dictionary)) + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuidWithPattern = default(Guid?), Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.UuidWithPattern = uuidWithPattern; this.Uuid = uuid; @@ -53,19 +53,19 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable [DataMember(Name = "uuid_with_pattern", EmitDefaultValue = false)] - public Guid UuidWithPattern { get; set; } + public Guid? UuidWithPattern { get; set; } /// /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets DateTime /// [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Map @@ -166,7 +166,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.UuidWithPattern != null) { - // UuidWithPattern (Guid) pattern + // UuidWithPattern (Guid?) pattern Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) { diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 34aee45d4c8c..c7b491b33b3f 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -38,7 +38,7 @@ public partial class Model200Response : IEquatable, IValidatab /// /// name. /// varClass. - public Model200Response(int name = default(int), string varClass = default(string)) + public Model200Response(int? name = default(int?), string varClass = default(string)) { this.Name = name; this.Class = varClass; @@ -49,7 +49,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -116,7 +116,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index 47c0de878119..6f1e77aaf97a 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -63,7 +63,7 @@ protected Name() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -83,7 +83,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -155,12 +155,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index a287358b015c..cf56d72b5ff4 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -40,7 +40,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// justNumber. - public NumberOnly(decimal justNumber = default(decimal)) + public NumberOnly(decimal? justNumber = default(decimal?)) { this.JustNumber = justNumber; this.AdditionalProperties = new Dictionary(); @@ -50,7 +50,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Gets or Sets additional properties @@ -110,7 +110,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index db530572625a..acb80cc82051 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -40,7 +40,7 @@ public partial class ObjectWithDeprecatedFields : IEquatableid. /// deprecatedRef. /// bars. - public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) + public ObjectWithDeprecatedFields(string uuid = default(string), decimal? id = default(decimal?), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) { this.Uuid = uuid; this.Id = id; @@ -60,7 +60,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -141,7 +141,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index c995bf5d39bf..4fe7ba05058c 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -75,14 +75,15 @@ public enum StatusEnum /// shipDate. /// Order Status. /// complete (default to false). - public Order(long id = default(long), long petId = default(long), int quantity = default(int), DateTime shipDate = default(DateTime), StatusEnum? status = default(StatusEnum?), bool complete = false) + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { this.Id = id; this.PetId = petId; this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - this.Complete = complete; + // use default value if no "complete" provided + this.Complete = complete ?? false; this.AdditionalProperties = new Dictionary(); } @@ -90,32 +91,32 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate /// /// 2020-02-02T20:20:20.000222Z [DataMember(Name = "shipDate", EmitDefaultValue = false)] - public DateTime ShipDate { get; set; } + public DateTime? ShipDate { get; set; } /// /// Gets or Sets Complete /// [DataMember(Name = "complete", EmitDefaultValue = true)] - public bool Complete { get; set; } + public bool? Complete { get; set; } /// /// Gets or Sets additional properties @@ -180,15 +181,27 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); } hashCode = (hashCode * 59) + this.Status.GetHashCode(); - hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + if (this.Complete != null) + { + hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 91a61870eea7..e296b9442323 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -39,7 +39,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// myNumber. /// myString. /// myBoolean. - public OuterComposite(decimal myNumber = default(decimal), string myString = default(string), bool myBoolean = default(bool)) + public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?)) { this.MyNumber = myNumber; this.MyString = myString; @@ -51,7 +51,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -63,7 +63,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Gets or Sets additional properties @@ -125,12 +125,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 2d13379fd74b..bb3f40c81d70 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -83,7 +83,7 @@ protected Pet() /// photoUrls (required). /// tags. /// pet status in the store. - public Pet(long id = default(long), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { // to ensure "name" is required (not null) if (name == null) @@ -108,7 +108,7 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -198,7 +198,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 8315c6ddb7ba..5d9745446ce6 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -37,10 +37,10 @@ public partial class PolymorphicProperty : AbstractOpenAPISchema, IEquatable /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public PolymorphicProperty(bool actualInstance) + /// An instance of bool?. + public PolymorphicProperty(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -105,7 +105,7 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } @@ -115,19 +115,19 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool?, string"); } } } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// @@ -241,21 +241,21 @@ public static PolymorphicProperty FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); } else { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 3d5eaf99a7d5..c6197f5079fe 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -58,7 +58,7 @@ public enum RequiredNullableEnumIntegerEnum /// /// Defines RequiredNotnullableEnumInteger /// - public enum RequiredNotnullableEnumIntegerEnum + public enum RequiredNotnullableEnumIntegerEnu { /// /// Enum NUMBER_1 for value: 1 @@ -76,7 +76,7 @@ public enum RequiredNotnullableEnumIntegerEnum /// Gets or Sets RequiredNotnullableEnumInteger /// [DataMember(Name = "required_notnullable_enum_integer", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerEnum RequiredNotnullableEnumInteger { get; set; } + public RequiredNotnullableEnumIntegerEnu RequiredNotnullableEnumInteger { get; set; } /// /// Defines NotrequiredNullableEnumInteger /// @@ -147,7 +147,7 @@ public enum RequiredNullableEnumIntegerOnlyEnum /// /// Defines RequiredNotnullableEnumIntegerOnly /// - public enum RequiredNotnullableEnumIntegerOnlyEnum + public enum RequiredNotnullableEnumIntegerOnlyEnu { /// /// Enum NUMBER_2 for value: 2 @@ -165,7 +165,7 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// [DataMember(Name = "required_notnullable_enum_integer_only", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerOnlyEnum RequiredNotnullableEnumIntegerOnly { get; set; } + public RequiredNotnullableEnumIntegerOnlyEnu RequiredNotnullableEnumIntegerOnly { get; set; } /// /// Defines NotrequiredNullableEnumIntegerOnly /// @@ -192,6 +192,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -534,7 +535,7 @@ protected RequiredClass() /// requiredNotnullableArrayOfString (required). /// notrequiredNullableArrayOfString. /// notrequiredNotnullableArrayOfString. - public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int notRequiredNotnullableintegerProp = default(int), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool notrequiredNotnullableBooleanProp = default(bool), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime notRequiredNotnullableDateProp = default(DateTime), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime notrequiredNotnullableDatetimeProp = default(DateTime), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnum requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnum), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnum requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnum), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid notrequiredNotnullableUuid = default(Guid), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) + public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int? notRequiredNotnullableintegerProp = default(int?), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool? notrequiredNotnullableBooleanProp = default(bool?), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime? notRequiredNotnullableDateProp = default(DateTime?), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNotnullableDatetimeProp = default(DateTime?), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnu requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnu), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnu requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnu), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid? notrequiredNotnullableUuid = default(Guid?), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) { // to ensure "requiredNullableIntegerProp" is required (not null) if (requiredNullableIntegerProp == null) @@ -650,7 +651,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -698,7 +699,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -726,7 +727,7 @@ protected RequiredClass() /// [DataMember(Name = "not_required_notnullable_date_prop", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime NotRequiredNotnullableDateProp { get; set; } + public DateTime? NotRequiredNotnullableDateProp { get; set; } /// /// Gets or Sets RequiredNotnullableDatetimeProp @@ -750,7 +751,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [DataMember(Name = "notrequired_notnullable_datetime_prop", EmitDefaultValue = false)] - public DateTime NotrequiredNotnullableDatetimeProp { get; set; } + public DateTime? NotrequiredNotnullableDatetimeProp { get; set; } /// /// Gets or Sets RequiredNullableUuid @@ -778,7 +779,7 @@ protected RequiredClass() /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "notrequired_notnullable_uuid", EmitDefaultValue = false)] - public Guid NotrequiredNotnullableUuid { get; set; } + public Guid? NotrequiredNotnullableUuid { get; set; } /// /// Gets or Sets RequiredNullableArrayOfString @@ -914,7 +915,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -940,7 +944,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6a9590cc8f40..613b7226dad9 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -48,7 +48,7 @@ protected Return() /// varLock (required). /// varAbstract (required). /// varUnsafe. - public Return(int varReturn = default(int), string varLock = default(string), string varAbstract = default(string), string varUnsafe = default(string)) + public Return(int? varReturn = default(int?), string varLock = default(string), string varAbstract = default(string), string varUnsafe = default(string)) { // to ensure "varLock" is required (not null) if (varLock == null) @@ -71,7 +71,7 @@ protected Return() /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets Lock @@ -152,7 +152,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.Lock != null) { hashCode = (hashCode * 59) + this.Lock.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 43f205a0529d..6d21f483b5ed 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -38,7 +38,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// /// roleUuid. /// role. - public RolesReportsHash(Guid roleUuid = default(Guid), RolesReportsHashRole role = default(RolesReportsHashRole)) + public RolesReportsHash(Guid? roleUuid = default(Guid?), RolesReportsHashRole role = default(RolesReportsHashRole)) { this.RoleUuid = roleUuid; this.Role = role; @@ -49,7 +49,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// Gets or Sets RoleUuid /// [DataMember(Name = "role_uuid", EmitDefaultValue = false)] - public Guid RoleUuid { get; set; } + public Guid? RoleUuid { get; set; } /// /// Gets or Sets Role diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index e1e27974a67b..f7008d601613 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -38,7 +38,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// /// specialPropertyName. /// varSpecialModelName. - public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) + public SpecialModelName(long? specialPropertyName = default(long?), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; this.VarSpecialModelName = varSpecialModelName; @@ -49,7 +49,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -116,7 +116,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index ab8f5e0db099..11bd55f92f25 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -38,7 +38,7 @@ public partial class Tag : IEquatable, IValidatableObject /// /// id. /// name. - public Tag(long id = default(long), string name = default(string)) + public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; this.Name = name; @@ -49,7 +49,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -116,7 +116,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index 2356f9020cc8..8dada6a3433d 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -48,7 +48,7 @@ public partial class User : IEquatable, IValidatableObject /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value.. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values.. - public User(long id = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int userStatus = default(int), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) { this.Id = id; this.Username = username; @@ -69,7 +69,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -112,7 +112,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -211,7 +211,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -236,7 +239,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 1a6e079fdab0..3eb60d25d776 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -47,7 +47,7 @@ protected Whale() /// hasBaleen. /// hasTeeth. /// className (required). - public Whale(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string)) + public Whale(bool? hasBaleen = default(bool?), bool? hasTeeth = default(bool?), string className = default(string)) { // to ensure "className" is required (not null) if (className == null) @@ -64,13 +64,13 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -138,8 +138,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/ApiResponse.md index 50869c0d913e..6908a8d1779b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/ApiResponse.md @@ -5,7 +5,7 @@ Describes the result of uploading an image resource Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Category.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Category.md index 64e7948bbc7c..37660cc4471e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Category.md @@ -5,7 +5,7 @@ A category for a pet Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Order.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Order.md index c28989a0b8cf..794a9690dd3f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Order.md @@ -5,12 +5,12 @@ An order for a pets from the pet store Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] **Status** | **string** | Order Status | [optional] -**Complete** | **bool** | | [optional] [default to false] +**Complete** | **bool?** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Pet.md index 914a070b2200..7c3f3099d352 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Pet.md @@ -5,7 +5,7 @@ A pet for sale in the pet store Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/PetApi.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/PetApi.md index e812ce5ff93a..43d71d1e2948 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/PetApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/PetApi.md @@ -108,7 +108,7 @@ catch (ApiException e) # **DeletePet** -> void DeletePet (long petId, string apiKey = null) +> void DeletePet (long? petId, string apiKey = null) Deletes a pet @@ -132,7 +132,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | Pet id to delete + var petId = 789L; // long? | Pet id to delete var apiKey = "apiKey_example"; // string | (optional) try @@ -172,7 +172,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | Pet id to delete | | +| **petId** | **long?** | Pet id to delete | | | **apiKey** | **string** | | [optional] | ### Return type @@ -388,7 +388,7 @@ catch (ApiException e) # **GetPetById** -> Pet GetPetById (long petId) +> Pet GetPetById (long? petId) Find pet by ID @@ -416,7 +416,7 @@ namespace Example // config.AddApiKeyPrefix("api_key", "Bearer"); var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to return + var petId = 789L; // long? | ID of pet to return try { @@ -459,7 +459,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to return | | +| **petId** | **long?** | ID of pet to return | | ### Return type @@ -581,7 +581,7 @@ catch (ApiException e) # **UpdatePetWithForm** -> void UpdatePetWithForm (long petId, string name = null, string status = null) +> void UpdatePetWithForm (long? petId, string name = null, string status = null) Updates a pet in the store with form data @@ -605,7 +605,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet that needs to be updated + var petId = 789L; // long? | ID of pet that needs to be updated var name = "name_example"; // string | Updated name of the pet (optional) var status = "status_example"; // string | Updated status of the pet (optional) @@ -646,7 +646,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet that needs to be updated | | +| **petId** | **long?** | ID of pet that needs to be updated | | | **name** | **string** | Updated name of the pet | [optional] | | **status** | **string** | Updated status of the pet | [optional] | @@ -673,7 +673,7 @@ void (empty response body) # **UploadFile** -> ApiResponse UploadFile (long petId, string additionalMetadata = null, System.IO.Stream file = null) +> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null) uploads an image @@ -697,7 +697,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload (optional) @@ -742,7 +742,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | | **file** | **System.IO.Stream****System.IO.Stream** | file to upload | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/StoreApi.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/StoreApi.md index 510ff903494c..f1c109d152a1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/StoreApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/StoreApi.md @@ -99,7 +99,7 @@ No authorization required # **GetInventory** -> Dictionary<string, int> GetInventory () +> Dictionary<string, int?> GetInventory () Returns pet inventories by status @@ -131,7 +131,7 @@ namespace Example try { // Returns pet inventories by status - Dictionary result = apiInstance.GetInventory(); + Dictionary result = apiInstance.GetInventory(); Debug.WriteLine(result); } catch (ApiException e) @@ -152,7 +152,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Returns pet inventories by status - ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); + ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -169,7 +169,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**Dictionary** +**Dictionary** ### Authorization @@ -190,7 +190,7 @@ This endpoint does not need any parameter. # **GetOrderById** -> Order GetOrderById (long orderId) +> Order GetOrderById (long? orderId) Find purchase order by ID @@ -213,7 +213,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io/v2"; var apiInstance = new StoreApi(config); - var orderId = 789L; // long | ID of pet that needs to be fetched + var orderId = 789L; // long? | ID of pet that needs to be fetched try { @@ -256,7 +256,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **orderId** | **long** | ID of pet that needs to be fetched | | +| **orderId** | **long?** | ID of pet that needs to be fetched | | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Tag.md index 14e602a9c11b..91db2dd74ebf 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/Tag.md @@ -5,7 +5,7 @@ A tag for a pet Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/User.md b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/User.md index c9ee356c8fc4..7be39bd559ce 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/docs/User.md @@ -5,14 +5,14 @@ A User who is purchasing from the pet store Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Api/PetApi.cs index a268ca3af4d6..d2f089ee626a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Api/PetApi.cs @@ -55,7 +55,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// - void DeletePet(long petId, string apiKey = default(string), int operationIndex = 0); + void DeletePet(long? petId, string apiKey = default(string), int operationIndex = 0); /// /// Deletes a pet @@ -68,7 +68,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), int operationIndex = 0); + ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string), int operationIndex = 0); /// /// Finds Pets by status /// @@ -127,7 +127,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// Pet - Pet GetPetById(long petId, int operationIndex = 0); + Pet GetPetById(long? petId, int operationIndex = 0); /// /// Find pet by ID @@ -139,7 +139,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0); + ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0); /// /// Update an existing pet /// @@ -169,7 +169,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), int operationIndex = 0); + void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string), int operationIndex = 0); /// /// Updates a pet in the store with form data @@ -183,7 +183,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), int operationIndex = 0); + ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string), int operationIndex = 0); /// /// uploads an image /// @@ -193,7 +193,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); + ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); /// /// uploads an image @@ -207,7 +207,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); + ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); #endregion Synchronous Operations } @@ -254,7 +254,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Deletes a pet @@ -268,7 +268,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Finds Pets by status /// @@ -332,7 +332,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find pet by ID @@ -345,7 +345,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an existing pet /// @@ -384,7 +384,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Updates a pet in the store with form data @@ -399,7 +399,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image /// @@ -413,7 +413,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image @@ -428,7 +428,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -739,7 +739,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, int /// (optional) /// Index associated with the operation. /// - public void DeletePet(long petId, string apiKey = default(string), int operationIndex = 0) + public void DeletePet(long? petId, string apiKey = default(string), int operationIndex = 0) { DeletePetWithHttpInfo(petId, apiKey); } @@ -752,8 +752,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, int /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -824,7 +830,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeletePetWithHttpInfoAsync(petId, apiKey, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -838,8 +844,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, int /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1270,7 +1282,7 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// ID of pet to return /// Index associated with the operation. /// Pet - public Pet GetPetById(long petId, int operationIndex = 0) + public Pet GetPetById(long? petId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); return localVarResponse.Data; @@ -1283,8 +1295,14 @@ public Pet GetPetById(long petId, int operationIndex = 0) /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1341,7 +1359,7 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1355,8 +1373,14 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1598,7 +1622,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, i /// Updated status of the pet (optional) /// Index associated with the operation. /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), int operationIndex = 0) + public void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string), int operationIndex = 0) { UpdatePetWithFormWithHttpInfo(petId, name, status); } @@ -1612,8 +1636,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, i /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1690,7 +1720,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1705,8 +1735,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1784,7 +1820,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, i /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) + public ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); return localVarResponse.Data; @@ -1799,8 +1835,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, i /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1878,7 +1920,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1894,8 +1936,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Api/StoreApi.cs index 27d50bc9bdc8..2c8bb4e16d9a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Api/StoreApi.cs @@ -58,8 +58,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - Dictionary GetInventory(int operationIndex = 0); + /// Dictionary<string, int?> + Dictionary GetInventory(int operationIndex = 0); /// /// Returns pet inventories by status @@ -69,8 +69,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); + /// ApiResponse of Dictionary<string, int?> + ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); /// /// Find purchase order by ID /// @@ -81,7 +81,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - Order GetOrderById(long orderId, int operationIndex = 0); + Order GetOrderById(long? orderId, int operationIndex = 0); /// /// Find purchase order by ID @@ -93,7 +93,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0); + ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0); /// /// Place an order for a pet /// @@ -157,8 +157,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of Dictionary<string, int?> + System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Returns pet inventories by status @@ -169,8 +169,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (Dictionary<string, int?>) + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID /// @@ -182,7 +182,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID @@ -195,7 +195,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Place an order for a pet /// @@ -486,10 +486,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - public Dictionary GetInventory(int operationIndex = 0) + /// Dictionary<string, int?> + public Dictionary GetInventory(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); return localVarResponse.Data; } @@ -498,8 +498,8 @@ public Dictionary GetInventory(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) + /// ApiResponse of Dictionary<string, int?> + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -534,7 +534,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse); @@ -553,10 +553,10 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of Dictionary<string, int?> + public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -566,8 +566,8 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (Dictionary<string, int?>) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -603,7 +603,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -624,7 +624,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - public Order GetOrderById(long orderId, int operationIndex = 0) + public Order GetOrderById(long? orderId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); return localVarResponse.Data; @@ -637,8 +637,14 @@ public Order GetOrderById(long orderId, int operationIndex = 0) /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -690,7 +696,7 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -704,8 +710,14 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs index ef964fd4e870..138efb0199e3 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -38,7 +38,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// code. /// type. /// message. - public ApiResponse(int code = default(int), string type = default(string), string message = default(string)) + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; this.Type = type; @@ -49,7 +49,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -116,7 +116,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs index 663e49f1b1c1..e8db5a79910a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Category.cs @@ -37,7 +37,7 @@ public partial class Category : IEquatable, IValidatableObject /// /// id. /// name. - public Category(long id = default(long), string name = default(string)) + public Category(long? id = default(long?), string name = default(string)) { this.Id = id; this.Name = name; @@ -47,7 +47,7 @@ public partial class Category : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs index 4c049227f843..53d87f910f4f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Order.cs @@ -74,45 +74,46 @@ public enum StatusEnum /// shipDate. /// Order Status. /// complete (default to false). - public Order(long id = default(long), long petId = default(long), int quantity = default(int), DateTime shipDate = default(DateTime), StatusEnum? status = default(StatusEnum?), bool complete = false) + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { this.Id = id; this.PetId = petId; this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - this.Complete = complete; + // use default value if no "complete" provided + this.Complete = complete ?? false; } /// /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate /// [DataMember(Name = "shipDate", EmitDefaultValue = false)] - public DateTime ShipDate { get; set; } + public DateTime? ShipDate { get; set; } /// /// Gets or Sets Complete /// [DataMember(Name = "complete", EmitDefaultValue = true)] - public bool Complete { get; set; } + public bool? Complete { get; set; } /// /// Returns the string presentation of the object @@ -170,15 +171,27 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); } hashCode = (hashCode * 59) + this.Status.GetHashCode(); - hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + if (this.Complete != null) + { + hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs index f42bc15e4555..de32c1c95001 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Pet.cs @@ -80,7 +80,7 @@ protected Pet() { } /// photoUrls (required). /// tags. /// pet status in the store. - public Pet(long id = default(long), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { // to ensure "name" is required (not null) if (name == null) @@ -104,7 +104,7 @@ protected Pet() { } /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -187,7 +187,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs index 8ac7c07be0ac..37f82b359221 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/Tag.cs @@ -37,7 +37,7 @@ public partial class Tag : IEquatable, IValidatableObject /// /// id. /// name. - public Tag(long id = default(long), string name = default(string)) + public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; this.Name = name; @@ -47,7 +47,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs index 91ba71b2274c..651f783bc08b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/User.cs @@ -43,7 +43,7 @@ public partial class User : IEquatable, IValidatableObject /// password. /// phone. /// User Status. - public User(long id = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int userStatus = default(int)) + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?)) { this.Id = id; this.Username = username; @@ -59,7 +59,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -102,7 +102,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// Returns the string presentation of the object @@ -162,7 +162,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -187,7 +190,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ApiResponse.md index bb723d2baa13..faacf536f173 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/AppleReq.md index 005b8f8058a4..bb7b7576dc2e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayOfArrayOfNumberOnly.md index 4764c0ff80c5..fb113074d3f2 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayArrayNumber** | **List<List<decimal>>** | | [optional] +**ArrayArrayNumber** | **List<List<decimal?>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayOfNumberOnly.md index d93717103b8b..30e148e05489 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayNumber** | **List<decimal>** | | [optional] +**ArrayNumber** | **List<decimal?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayTest.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayTest.md index d74d11bae77d..89094d5e895c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ArrayTest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ArrayOfString** | **List<string>** | | [optional] -**ArrayArrayOfInteger** | **List<List<long>>** | | [optional] +**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional] **ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Banana.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Banana.md index 226952d1cecb..72cbdcf0af0b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/BananaReq.md index f99aab99e387..2bf39b773a66 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Cat.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Cat.md index aa1ac17604eb..d41c6ec6eb65 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Category.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Category.md index 032a1faeb3ff..bdbe5ac5a483 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/DateOnlyClass.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/DateOnlyClass.md index d0912d2ac415..258d6673e120 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/DateOnlyClass.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/DateOnlyClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateOnlyProperty** | **DateTime** | | [optional] +**DateOnlyProperty** | **DateTime?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/DefaultApi.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/DefaultApi.md index d9d4abc6ebbc..775590ae8779 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/DefaultApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/DefaultApi.md @@ -177,7 +177,7 @@ No authorization required # **Hello** -> List<Guid> Hello () +> List<Guid?> Hello () Hello @@ -204,7 +204,7 @@ namespace Example try { // Hello - List result = apiInstance.Hello(); + List result = apiInstance.Hello(); Debug.WriteLine(result); } catch (ApiException e) @@ -225,7 +225,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Hello - ApiResponse> response = apiInstance.HelloWithHttpInfo(); + ApiResponse> response = apiInstance.HelloWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -242,7 +242,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**List** +**List** ### Authorization diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/EnumTest.md index 5ce3c4addd9b..66cc8c6d245e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FakeApi.md index 06309f31e8a5..936da43e5a99 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FakeApi.md @@ -111,7 +111,7 @@ No authorization required # **FakeOuterBooleanSerialize** -> bool FakeOuterBooleanSerialize (bool? body = null) +> bool? FakeOuterBooleanSerialize (bool? body = null) @@ -138,7 +138,7 @@ namespace Example try { - bool result = apiInstance.FakeOuterBooleanSerialize(body); + bool? result = apiInstance.FakeOuterBooleanSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -158,7 +158,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -179,7 +179,7 @@ catch (ApiException e) ### Return type -**bool** +**bool?** ### Authorization @@ -289,7 +289,7 @@ No authorization required # **FakeOuterNumberSerialize** -> decimal FakeOuterNumberSerialize (decimal? body = null) +> decimal? FakeOuterNumberSerialize (decimal? body = null) @@ -316,7 +316,7 @@ namespace Example try { - decimal result = apiInstance.FakeOuterNumberSerialize(body); + decimal? result = apiInstance.FakeOuterNumberSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -336,7 +336,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -357,7 +357,7 @@ catch (ApiException e) ### Return type -**decimal** +**decimal?** ### Authorization @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid? requiredStringUuid, string body = null) @@ -401,7 +401,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); - var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String + var requiredStringUuid = "requiredStringUuid_example"; // Guid? | Required UUID String var body = "body_example"; // string | Input string as post body (optional) try @@ -443,7 +443,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringUuid** | **Guid** | Required UUID String | | +| **requiredStringUuid** | **Guid?** | Required UUID String | | | **body** | **string** | Input string as post body | [optional] | ### Return type @@ -1067,7 +1067,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1094,8 +1094,8 @@ namespace Example config.Password = "YOUR_PASSWORD"; var apiInstance = new FakeApi(config); - var number = 8.14D; // decimal | None - var varDouble = 1.2D; // double | None + var number = 8.14D; // decimal? | None + var varDouble = 1.2D; // double? | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) @@ -1146,8 +1146,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **number** | **decimal** | None | | -| **varDouble** | **double** | None | | +| **number** | **decimal?** | None | | +| **varDouble** | **double?** | None | | | **patternWithoutDelimiter** | **string** | None | | | **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | @@ -1287,7 +1287,7 @@ No authorization required # **TestGroupParameters** -> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) +> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) Fake endpoint to test group parameters (optional) @@ -1313,9 +1313,9 @@ namespace Example config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FakeApi(config); - var requiredStringGroup = 56; // int | Required String in group parameters - var requiredBooleanGroup = true; // bool | Required Boolean in group parameters - var requiredInt64Group = 789L; // long | Required Integer in group parameters + var requiredStringGroup = 56; // int? | Required String in group parameters + var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters + var requiredInt64Group = 789L; // long? | Required Integer in group parameters var stringGroup = 56; // int? | String in group parameters (optional) var booleanGroup = true; // bool? | Boolean in group parameters (optional) var int64Group = 789L; // long? | Integer in group parameters (optional) @@ -1357,9 +1357,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringGroup** | **int** | Required String in group parameters | | -| **requiredBooleanGroup** | **bool** | Required Boolean in group parameters | | -| **requiredInt64Group** | **long** | Required Integer in group parameters | | +| **requiredStringGroup** | **int?** | Required String in group parameters | | +| **requiredBooleanGroup** | **bool?** | Required Boolean in group parameters | | +| **requiredInt64Group** | **long?** | Required Integer in group parameters | | | **stringGroup** | **int?** | String in group parameters | [optional] | | **booleanGroup** | **bool?** | Boolean in group parameters | [optional] | | **int64Group** | **long?** | Integer in group parameters | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FormatTest.md index c2144b5e3cf6..9c47daec76bb 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FormatTest.md @@ -4,21 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | -**DateTime** | **DateTime** | | [optional] -**Uuid** | **Guid** | | [optional] +**DateTime** | **DateTime?** | | [optional] +**Uuid** | **Guid?** | | [optional] **Password** | **string** | | **PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] **PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Fruit.md index 40df92d7c9b1..05aed3a2642b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FruitReq.md index 5db6b0e2d1d8..8f072a324cb0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/GmFruit.md index da7b3a6ccf9f..265348eca479 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Mammal.md index aab8f4db9c75..75172cd3d506 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/MapTest.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/MapTest.md index 516f9d4fd37e..07c245718f12 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/MapTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/MapTest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional] **MapOfEnumString** | **Dictionary<string, MapTest.InnerEnum>** | | [optional] -**DirectMap** | **Dictionary<string, bool>** | | [optional] -**IndirectMap** | **Dictionary<string, bool>** | | [optional] +**DirectMap** | **Dictionary<string, bool?>** | | [optional] +**IndirectMap** | **Dictionary<string, bool?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 050210a3e371..81d4a847dbe2 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UuidWithPattern** | **Guid** | | [optional] -**Uuid** | **Guid** | | [optional] -**DateTime** | **DateTime** | | [optional] +**UuidWithPattern** | **Guid?** | | [optional] +**Uuid** | **Guid?** | | [optional] +**DateTime** | **DateTime?** | | [optional] **Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Model200Response.md index 31f4d86fe43d..820f058bf221 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Name.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Name.md index 3e19db154a80..e440a45f0ae1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NumberOnly.md index 14a7c0f1071b..1af131f829ec 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b..20391539c912 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Order.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Order.md index 66c55c3b4737..1202b46b44ce 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Order.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] **Status** | **string** | Order Status | [optional] -**Complete** | **bool** | | [optional] [default to false] +**Complete** | **bool?** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/OuterComposite.md index eb42bcc1aaa4..71ca9b879223 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Pet.md index c7224764e2d4..a54829f9a8e2 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/PetApi.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/PetApi.md index 220b1ae30105..c8b18ee1626d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/PetApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/PetApi.md @@ -104,7 +104,7 @@ void (empty response body) # **DeletePet** -> void DeletePet (long petId, string apiKey = null) +> void DeletePet (long? petId, string apiKey = null) Deletes a pet @@ -128,7 +128,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | Pet id to delete + var petId = 789L; // long? | Pet id to delete var apiKey = "apiKey_example"; // string | (optional) try @@ -168,7 +168,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | Pet id to delete | | +| **petId** | **long?** | Pet id to delete | | | **apiKey** | **string** | | [optional] | ### Return type @@ -384,7 +384,7 @@ catch (ApiException e) # **GetPetById** -> Pet GetPetById (long petId) +> Pet GetPetById (long? petId) Find pet by ID @@ -416,7 +416,7 @@ namespace Example // config.AddApiKeyPrefix("api_key_query", "Bearer"); var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to return + var petId = 789L; // long? | ID of pet to return try { @@ -459,7 +459,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to return | | +| **petId** | **long?** | ID of pet to return | | ### Return type @@ -576,7 +576,7 @@ void (empty response body) # **UpdatePetWithForm** -> void UpdatePetWithForm (long petId, string name = null, string status = null) +> void UpdatePetWithForm (long? petId, string name = null, string status = null) Updates a pet in the store with form data @@ -600,7 +600,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet that needs to be updated + var petId = 789L; // long? | ID of pet that needs to be updated var name = "name_example"; // string | Updated name of the pet (optional) var status = "status_example"; // string | Updated status of the pet (optional) @@ -641,7 +641,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet that needs to be updated | | +| **petId** | **long?** | ID of pet that needs to be updated | | | **name** | **string** | Updated name of the pet | [optional] | | **status** | **string** | Updated status of the pet | [optional] | @@ -668,7 +668,7 @@ void (empty response body) # **UploadFile** -> ApiResponse UploadFile (long petId, string additionalMetadata = null, System.IO.Stream file = null) +> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null) uploads an image @@ -692,7 +692,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload (optional) @@ -737,7 +737,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | | **file** | **System.IO.Stream****System.IO.Stream** | file to upload | [optional] | @@ -764,7 +764,7 @@ catch (ApiException e) # **UploadFileWithRequiredFile** -> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = null) +> ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null) uploads an image (required) @@ -788,7 +788,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var requiredFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) @@ -833,7 +833,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **requiredFile** | **System.IO.Stream****System.IO.Stream** | file to upload | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RequiredClass.md index 07b6f018f6c1..018f2a832832 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,23 +15,23 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] -**NotRequiredNotnullableDateProp** | **DateTime** | | [optional] +**NotRequiredNotnullableDateProp** | **DateTime?** | | [optional] **RequiredNotnullableDatetimeProp** | **DateTime** | | **RequiredNullableDatetimeProp** | **DateTime?** | | **NotrequiredNullableDatetimeProp** | **DateTime?** | | [optional] -**NotrequiredNotnullableDatetimeProp** | **DateTime** | | [optional] +**NotrequiredNotnullableDatetimeProp** | **DateTime?** | | [optional] **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] @@ -43,7 +43,7 @@ Name | Type | Description | Notes **RequiredNullableUuid** | **Guid?** | | **RequiredNotnullableUuid** | **Guid** | | **NotrequiredNullableUuid** | **Guid?** | | [optional] -**NotrequiredNotnullableUuid** | **Guid** | | [optional] +**NotrequiredNotnullableUuid** | **Guid?** | | [optional] **RequiredNullableArrayOfString** | **List<string>** | | **RequiredNotnullableArrayOfString** | **List<string>** | | **NotrequiredNullableArrayOfString** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Return.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Return.md index 052ac9190068..8eec64177930 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RolesReportsHash.md index 309b0c02615c..52bb81a7dab6 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RolesReportsHash.md @@ -5,7 +5,7 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] +**RoleUuid** | **Guid?** | | [optional] **Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1..6d9805d03479 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/StoreApi.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/StoreApi.md index 179da0ff637e..2d557c4cfa81 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/StoreApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/StoreApi.md @@ -99,7 +99,7 @@ No authorization required # **GetInventory** -> Dictionary<string, int> GetInventory () +> Dictionary<string, int?> GetInventory () Returns pet inventories by status @@ -131,7 +131,7 @@ namespace Example try { // Returns pet inventories by status - Dictionary result = apiInstance.GetInventory(); + Dictionary result = apiInstance.GetInventory(); Debug.WriteLine(result); } catch (ApiException e) @@ -152,7 +152,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Returns pet inventories by status - ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); + ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -169,7 +169,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**Dictionary** +**Dictionary** ### Authorization @@ -190,7 +190,7 @@ This endpoint does not need any parameter. # **GetOrderById** -> Order GetOrderById (long orderId) +> Order GetOrderById (long? orderId) Find purchase order by ID @@ -213,7 +213,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new StoreApi(config); - var orderId = 789L; // long | ID of pet that needs to be fetched + var orderId = 789L; // long? | ID of pet that needs to be fetched try { @@ -256,7 +256,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **orderId** | **long** | ID of pet that needs to be fetched | | +| **orderId** | **long?** | ID of pet that needs to be fetched | | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Tag.md index fdd22eb31fdd..f86abfc26e02 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/User.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/User.md index b0cd4dc042bf..da9b34219d84 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Whale.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Whale.md index 5fc3dc7f85c2..a1512d751e8e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 54f3d2e41a93..2e22006cf95b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -73,8 +73,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - List Hello(int operationIndex = 0); + /// List<Guid?> + List Hello(int operationIndex = 0); /// /// Hello @@ -84,8 +84,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - ApiResponse> HelloWithHttpInfo(int operationIndex = 0); + /// ApiResponse of List<Guid?> + ApiResponse> HelloWithHttpInfo(int operationIndex = 0); /// /// /// @@ -188,8 +188,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<Guid?> + System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hello @@ -200,8 +200,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<Guid?>) + System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -641,10 +641,10 @@ public Org.OpenAPITools.Client.ApiResponse GetCountryWithHttpInfo(string /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - public List Hello(int operationIndex = 0) + /// List<Guid?> + public List Hello(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); return localVarResponse.Data; } @@ -653,8 +653,8 @@ public List Hello(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) + /// ApiResponse of List<Guid?> + public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -684,7 +684,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("Hello", localVarResponse); @@ -703,10 +703,10 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<Guid?> + public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -716,8 +716,8 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<Guid?>) + public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -748,7 +748,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index a61c5d240e23..29d75013441d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -54,8 +54,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); + /// bool? + bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); /// /// @@ -66,8 +66,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); + /// ApiResponse of bool? + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); /// /// /// @@ -100,8 +100,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); + /// decimal? + decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); /// /// @@ -112,8 +112,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); + /// ApiResponse of decimal? + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); /// /// /// @@ -125,7 +125,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string), int operationIndex = 0); + string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0); /// /// @@ -138,7 +138,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string), int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0); /// /// Array of Enums /// @@ -304,7 +304,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -329,7 +329,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// To test enum parameters /// @@ -382,7 +382,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// Fake endpoint to test group parameters (optional) @@ -399,7 +399,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// test inline additionalProperties /// @@ -563,8 +563,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of bool? + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -576,8 +576,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (bool?) + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -613,8 +613,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of decimal? + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -626,8 +626,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (decimal?) + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -640,7 +640,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -654,7 +654,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Array of Enums /// @@ -850,7 +850,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -876,7 +876,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -932,7 +932,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint to test group parameters (optional) @@ -950,7 +950,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// test inline additionalProperties /// @@ -1346,10 +1346,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) + /// bool? + public bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1359,8 +1359,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) + /// ApiResponse of bool? + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1392,7 +1392,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterBooleanSerialize", localVarResponse); @@ -1412,10 +1412,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of bool? + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1426,8 +1426,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (bool?) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1460,7 +1460,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1614,10 +1614,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) + /// decimal? + public decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1627,8 +1627,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) + /// ApiResponse of decimal? + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1660,7 +1660,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterNumberSerialize", localVarResponse); @@ -1680,10 +1680,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of decimal? + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1694,8 +1694,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (decimal?) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1728,7 +1728,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1750,7 +1750,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string), int operationIndex = 0) + public string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); return localVarResponse.Data; @@ -1764,8 +1764,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1819,7 +1825,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1834,8 +1840,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2870,7 +2882,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } @@ -2895,8 +2907,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3021,7 +3045,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3047,8 +3071,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3386,7 +3422,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -3403,8 +3439,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -3479,7 +3533,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3497,8 +3551,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index 8db5fd36849d..3f214ffb4c5f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -55,7 +55,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// - void DeletePet(long petId, string apiKey = default(string), int operationIndex = 0); + void DeletePet(long? petId, string apiKey = default(string), int operationIndex = 0); /// /// Deletes a pet @@ -68,7 +68,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), int operationIndex = 0); + ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string), int operationIndex = 0); /// /// Finds Pets by status /// @@ -127,7 +127,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// Pet - Pet GetPetById(long petId, int operationIndex = 0); + Pet GetPetById(long? petId, int operationIndex = 0); /// /// Find pet by ID @@ -139,7 +139,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0); + ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0); /// /// Update an existing pet /// @@ -169,7 +169,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), int operationIndex = 0); + void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string), int operationIndex = 0); /// /// Updates a pet in the store with form data @@ -183,7 +183,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), int operationIndex = 0); + ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string), int operationIndex = 0); /// /// uploads an image /// @@ -193,7 +193,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); + ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); /// /// uploads an image @@ -207,7 +207,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); + ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); /// /// uploads an image (required) /// @@ -217,7 +217,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); /// /// uploads an image (required) @@ -231,7 +231,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); #endregion Synchronous Operations } @@ -278,7 +278,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Deletes a pet @@ -292,7 +292,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Finds Pets by status /// @@ -356,7 +356,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find pet by ID @@ -369,7 +369,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an existing pet /// @@ -408,7 +408,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Updates a pet in the store with form data @@ -423,7 +423,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image /// @@ -437,7 +437,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image @@ -452,7 +452,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) /// @@ -466,7 +466,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) @@ -481,7 +481,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -818,7 +818,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// - public void DeletePet(long petId, string apiKey = default(string), int operationIndex = 0) + public void DeletePet(long? petId, string apiKey = default(string), int operationIndex = 0) { DeletePetWithHttpInfo(petId, apiKey); } @@ -831,8 +831,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -903,7 +909,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeletePetWithHttpInfoAsync(petId, apiKey, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -917,8 +923,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1413,7 +1425,7 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// ID of pet to return /// Index associated with the operation. /// Pet - public Pet GetPetById(long petId, int operationIndex = 0) + public Pet GetPetById(long? petId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); return localVarResponse.Data; @@ -1426,8 +1438,14 @@ public Pet GetPetById(long petId, int operationIndex = 0) /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1489,7 +1507,7 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1503,8 +1521,14 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1777,7 +1801,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), int operationIndex = 0) + public void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string), int operationIndex = 0) { UpdatePetWithFormWithHttpInfo(petId, name, status); } @@ -1791,8 +1815,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1869,7 +1899,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1884,8 +1914,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1963,7 +1999,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) + public ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); return localVarResponse.Data; @@ -1978,8 +2014,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -2057,7 +2099,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2073,8 +2115,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2153,7 +2201,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) + public ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResponse.Data; @@ -2168,8 +2216,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { @@ -2251,7 +2305,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2267,8 +2321,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index e8882b0fc2e4..d70c41ee64bf 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -58,8 +58,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - Dictionary GetInventory(int operationIndex = 0); + /// Dictionary<string, int?> + Dictionary GetInventory(int operationIndex = 0); /// /// Returns pet inventories by status @@ -69,8 +69,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); + /// ApiResponse of Dictionary<string, int?> + ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); /// /// Find purchase order by ID /// @@ -81,7 +81,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - Order GetOrderById(long orderId, int operationIndex = 0); + Order GetOrderById(long? orderId, int operationIndex = 0); /// /// Find purchase order by ID @@ -93,7 +93,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0); + ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0); /// /// Place an order for a pet /// @@ -157,8 +157,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of Dictionary<string, int?> + System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Returns pet inventories by status @@ -169,8 +169,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (Dictionary<string, int?>) + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID /// @@ -182,7 +182,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID @@ -195,7 +195,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Place an order for a pet /// @@ -486,10 +486,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - public Dictionary GetInventory(int operationIndex = 0) + /// Dictionary<string, int?> + public Dictionary GetInventory(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); return localVarResponse.Data; } @@ -498,8 +498,8 @@ public Dictionary GetInventory(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) + /// ApiResponse of Dictionary<string, int?> + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -534,7 +534,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse); @@ -553,10 +553,10 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of Dictionary<string, int?> + public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -566,8 +566,8 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (Dictionary<string, int?>) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -603,7 +603,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -624,7 +624,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - public Order GetOrderById(long orderId, int operationIndex = 0) + public Order GetOrderById(long? orderId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); return localVarResponse.Data; @@ -637,8 +637,14 @@ public Order GetOrderById(long orderId, int operationIndex = 0) /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -690,7 +696,7 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -704,8 +710,14 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1f..2fe81b88e769 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -38,7 +38,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// code. /// type. /// message. - public ApiResponse(int code = default(int), string type = default(string), string message = default(string)) + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; this.Type = type; @@ -50,7 +50,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -124,7 +124,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e3..97e5fd1574b4 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ protected AppleReq() { } /// /// cultivar (required). /// mealy. - public AppleReq(string cultivar = default(string), bool mealy = default(bool)) + public AppleReq(string cultivar = default(string), bool? mealy = default(bool?)) { // to ensure "cultivar" is required (not null) if (cultivar == null) @@ -63,7 +63,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -121,7 +121,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 3e1666ca90f8..c360a39a785e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// arrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { this.ArrayArrayNumber = arrayArrayNumber; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable [DataMember(Name = "ArrayArrayNumber", EmitDefaultValue = false)] - public List> ArrayArrayNumber { get; set; } + public List> ArrayArrayNumber { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index f2946f435b53..738d58a1fc98 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Initializes a new instance of the class. /// /// arrayNumber. - public ArrayOfNumberOnly(List arrayNumber = default(List)) + public ArrayOfNumberOnly(List arrayNumber = default(List)) { this.ArrayNumber = arrayNumber; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Gets or Sets ArrayNumber /// [DataMember(Name = "ArrayNumber", EmitDefaultValue = false)] - public List ArrayNumber { get; set; } + public List ArrayNumber { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 343e486f6575..17f688b2d87f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -38,7 +38,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// arrayOfString. /// arrayArrayOfInteger. /// arrayArrayOfModel. - public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; this.ArrayArrayOfInteger = arrayArrayOfInteger; @@ -56,7 +56,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// Gets or Sets ArrayArrayOfInteger /// [DataMember(Name = "array_array_of_integer", EmitDefaultValue = false)] - public List> ArrayArrayOfInteger { get; set; } + public List> ArrayArrayOfInteger { get; set; } /// /// Gets or Sets ArrayArrayOfModel diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..661739ae18e5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -36,7 +36,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// lengthCm. - public Banana(decimal lengthCm = default(decimal)) + public Banana(decimal? lengthCm = default(decimal?)) { this.LengthCm = lengthCm; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80..6901cc0d18e3 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ protected BananaReq() { } /// /// lengthCm (required). /// sweet. - public BananaReq(decimal lengthCm = default(decimal), bool sweet = default(bool)) + public BananaReq(decimal lengthCm = default(decimal), bool? sweet = default(bool?)) { this.LengthCm = lengthCm; this.Sweet = sweet; @@ -58,7 +58,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -113,7 +113,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs index a427b55727d7..ff6135f34289 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -48,7 +48,7 @@ protected Cat() /// declawed. /// className (required) (default to "Cat"). /// color (default to "red"). - public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color) + public Cat(bool? declawed = default(bool?), string className = @"Cat", string color = @"red") : base(className, color) { this.Declawed = declawed; this.AdditionalProperties = new Dictionary(); @@ -58,7 +58,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Gets or Sets additional properties @@ -119,7 +119,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4a..ceab7f116b8e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -45,7 +45,7 @@ protected Category() /// /// id. /// name (required) (default to "default-name"). - public Category(long id = default(long), string name = @"default-name") + public Category(long? id = default(long?), string name = @"default-name") { // to ensure "name" is required (not null) if (name == null) @@ -61,7 +61,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -128,7 +128,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 9933ec57ea9e..cd661c3cd755 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -36,7 +36,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje /// Initializes a new instance of the class. /// /// dateOnlyProperty. - public DateOnlyClass(DateTime dateOnlyProperty = default(DateTime)) + public DateOnlyClass(DateTime? dateOnlyProperty = default(DateTime?)) { this.DateOnlyProperty = dateOnlyProperty; this.AdditionalProperties = new Dictionary(); @@ -48,7 +48,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje /// Fri Jul 21 00:00:00 UTC 2017 [DataMember(Name = "dateOnlyProperty", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime DateOnlyProperty { get; set; } + public DateTime? DateOnlyProperty { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954ea..e7eef0d94a37 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -179,6 +179,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 7158640c24e2..4bec4463326b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -62,7 +62,7 @@ protected FormatTest() /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int? integer = default(int?), int? int32 = default(int?), uint? unsignedInteger = default(uint?), long? int64 = default(long?), ulong? unsignedLong = default(ulong?), decimal number = default(decimal), float? varFloat = default(float?), double? varDouble = default(double?), decimal? varDecimal = default(decimal?), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; // to ensure "varByte" is required (not null) @@ -100,31 +100,31 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -136,19 +136,19 @@ protected FormatTest() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -181,14 +181,14 @@ protected FormatTest() /// /// 2007-12-03T10:15:30+01:00 [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Uuid /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets Password @@ -293,15 +293,39 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -357,38 +381,38 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -405,26 +429,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 691f128ea5fb..a67ae46eed35 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -58,7 +58,7 @@ public enum InnerEnum /// mapOfEnumString. /// directMap. /// indirectMap. - public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) { this.MapMapOfString = mapMapOfString; this.MapOfEnumString = mapOfEnumString; @@ -83,13 +83,13 @@ public enum InnerEnum /// Gets or Sets DirectMap /// [DataMember(Name = "direct_map", EmitDefaultValue = false)] - public Dictionary DirectMap { get; set; } + public Dictionary DirectMap { get; set; } /// /// Gets or Sets IndirectMap /// [DataMember(Name = "indirect_map", EmitDefaultValue = false)] - public Dictionary IndirectMap { get; set; } + public Dictionary IndirectMap { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 49e94cc5e5db..0c1e37574cf0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -48,10 +48,10 @@ public MixedAnyOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedAnyOfContent(bool actualInstance) + /// An instance of bool?. + public MixedAnyOfContent(bool? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -60,10 +60,10 @@ public MixedAnyOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedAnyOfContent(int actualInstance) + /// An instance of int?. + public MixedAnyOfContent(int? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -72,10 +72,10 @@ public MixedAnyOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedAnyOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedAnyOfContent(decimal? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { _actualInstance = value; } - else if (value.GetType() == typeof(bool)) + else if (value.GetType() == typeof(bool?)) { _actualInstance = value; } - else if (value.GetType() == typeof(decimal)) + else if (value.GetType() == typeof(decimal?)) { _actualInstance = value; } - else if (value.GetType() == typeof(int)) + else if (value.GetType() == typeof(int?)) { _actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)ActualInstance; + return (bool?)ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)ActualInstance; + return (int?)ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)ActualInstance; + return (decimal?)ActualInstance; } /// @@ -235,38 +235,38 @@ public static MixedAnyOfContent FromJson(string jsonString) try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index e2527cc3c315..9ef03c99ae1f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -48,10 +48,10 @@ public MixedOneOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedOneOfContent(bool actualInstance) + /// An instance of bool?. + public MixedOneOfContent(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -60,10 +60,10 @@ public MixedOneOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedOneOfContent(int actualInstance) + /// An instance of int?. + public MixedOneOfContent(int? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -72,10 +72,10 @@ public MixedOneOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedOneOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedOneOfContent(decimal? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } - else if (value.GetType() == typeof(decimal) || value is decimal) + else if (value.GetType() == typeof(decimal?) || value is decimal?) { this._actualInstance = value; } - else if (value.GetType() == typeof(int) || value is int) + else if (value.GetType() == typeof(int?) || value is int?) { this._actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)this.ActualInstance; + return (int?)this.ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)this.ActualInstance; + return (decimal?)this.ActualInstance; } /// @@ -246,61 +246,61 @@ public static MixedOneOfContent FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(decimal).GetProperty("AdditionalProperties") == null) + if (typeof(decimal?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("decimal"); + matchedTypes.Add("decimal?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(int).GetProperty("AdditionalProperties") == null) + if (typeof(int?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("int"); + matchedTypes.Add("int?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 5f51e31aa034..2d6665a3fd5c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -39,7 +39,7 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableuuid. /// dateTime. /// map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid uuidWithPattern = default(Guid), Guid uuid = default(Guid), DateTime dateTime = default(DateTime), Dictionary map = default(Dictionary)) + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuidWithPattern = default(Guid?), Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.UuidWithPattern = uuidWithPattern; this.Uuid = uuid; @@ -52,19 +52,19 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable [DataMember(Name = "uuid_with_pattern", EmitDefaultValue = false)] - public Guid UuidWithPattern { get; set; } + public Guid? UuidWithPattern { get; set; } /// /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets DateTime /// [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Map @@ -165,7 +165,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.UuidWithPattern != null) { - // UuidWithPattern (Guid) pattern + // UuidWithPattern (Guid?) pattern Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e754..ee546305b2f2 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -37,7 +37,7 @@ public partial class Model200Response : IEquatable, IValidatab /// /// name. /// varClass. - public Model200Response(int name = default(int), string varClass = default(string)) + public Model200Response(int? name = default(int?), string varClass = default(string)) { this.Name = name; this.Class = varClass; @@ -48,7 +48,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c..69938e7b7c61 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -62,7 +62,7 @@ protected Name() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -82,7 +82,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -154,12 +154,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb0..3bccec432a60 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -39,7 +39,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// justNumber. - public NumberOnly(decimal justNumber = default(decimal)) + public NumberOnly(decimal? justNumber = default(decimal?)) { this.JustNumber = justNumber; this.AdditionalProperties = new Dictionary(); @@ -49,7 +49,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Gets or Sets additional properties @@ -109,7 +109,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86..867e47627c1a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -39,7 +39,7 @@ public partial class ObjectWithDeprecatedFields : IEquatableid. /// deprecatedRef. /// bars. - public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) + public ObjectWithDeprecatedFields(string uuid = default(string), decimal? id = default(decimal?), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) { this.Uuid = uuid; this.Id = id; @@ -59,7 +59,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -140,7 +140,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs index e9471d3ba022..c2dd7fb1d098 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -74,14 +74,15 @@ public enum StatusEnum /// shipDate. /// Order Status. /// complete (default to false). - public Order(long id = default(long), long petId = default(long), int quantity = default(int), DateTime shipDate = default(DateTime), StatusEnum? status = default(StatusEnum?), bool complete = false) + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { this.Id = id; this.PetId = petId; this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - this.Complete = complete; + // use default value if no "complete" provided + this.Complete = complete ?? false; this.AdditionalProperties = new Dictionary(); } @@ -89,32 +90,32 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate /// /// 2020-02-02T20:20:20.000222Z [DataMember(Name = "shipDate", EmitDefaultValue = false)] - public DateTime ShipDate { get; set; } + public DateTime? ShipDate { get; set; } /// /// Gets or Sets Complete /// [DataMember(Name = "complete", EmitDefaultValue = true)] - public bool Complete { get; set; } + public bool? Complete { get; set; } /// /// Gets or Sets additional properties @@ -179,15 +180,27 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); } hashCode = (hashCode * 59) + this.Status.GetHashCode(); - hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + if (this.Complete != null) + { + hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f..35dfdce59861 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -38,7 +38,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// myNumber. /// myString. /// myBoolean. - public OuterComposite(decimal myNumber = default(decimal), string myString = default(string), bool myBoolean = default(bool)) + public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?)) { this.MyNumber = myNumber; this.MyString = myString; @@ -50,7 +50,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -62,7 +62,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Gets or Sets additional properties @@ -124,12 +124,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e4722f4a5379..55b6fbe49e98 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -82,7 +82,7 @@ protected Pet() /// photoUrls (required). /// tags. /// pet status in the store. - public Pet(long id = default(long), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { // to ensure "name" is required (not null) if (name == null) @@ -107,7 +107,7 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -197,7 +197,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 5e4472118140..09dd24285e98 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -36,10 +36,10 @@ public partial class PolymorphicProperty : AbstractOpenAPISchema, IEquatable /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public PolymorphicProperty(bool actualInstance) + /// An instance of bool?. + public PolymorphicProperty(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -104,7 +104,7 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } @@ -114,19 +114,19 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool?, string"); } } } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// @@ -240,21 +240,21 @@ public static PolymorphicProperty FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); } else { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index d040204ece33..0893b7d98624 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -57,7 +57,7 @@ public enum RequiredNullableEnumIntegerEnum /// /// Defines RequiredNotnullableEnumInteger /// - public enum RequiredNotnullableEnumIntegerEnum + public enum RequiredNotnullableEnumIntegerEnu { /// /// Enum NUMBER_1 for value: 1 @@ -75,7 +75,7 @@ public enum RequiredNotnullableEnumIntegerEnum /// Gets or Sets RequiredNotnullableEnumInteger /// [DataMember(Name = "required_notnullable_enum_integer", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerEnum RequiredNotnullableEnumInteger { get; set; } + public RequiredNotnullableEnumIntegerEnu RequiredNotnullableEnumInteger { get; set; } /// /// Defines NotrequiredNullableEnumInteger /// @@ -146,7 +146,7 @@ public enum RequiredNullableEnumIntegerOnlyEnum /// /// Defines RequiredNotnullableEnumIntegerOnly /// - public enum RequiredNotnullableEnumIntegerOnlyEnum + public enum RequiredNotnullableEnumIntegerOnlyEnu { /// /// Enum NUMBER_2 for value: 2 @@ -164,7 +164,7 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// [DataMember(Name = "required_notnullable_enum_integer_only", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerOnlyEnum RequiredNotnullableEnumIntegerOnly { get; set; } + public RequiredNotnullableEnumIntegerOnlyEnu RequiredNotnullableEnumIntegerOnly { get; set; } /// /// Defines NotrequiredNullableEnumIntegerOnly /// @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -533,7 +534,7 @@ protected RequiredClass() /// requiredNotnullableArrayOfString (required). /// notrequiredNullableArrayOfString. /// notrequiredNotnullableArrayOfString. - public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int notRequiredNotnullableintegerProp = default(int), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool notrequiredNotnullableBooleanProp = default(bool), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime notRequiredNotnullableDateProp = default(DateTime), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime notrequiredNotnullableDatetimeProp = default(DateTime), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnum requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnum), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnum requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnum), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid notrequiredNotnullableUuid = default(Guid), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) + public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int? notRequiredNotnullableintegerProp = default(int?), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool? notrequiredNotnullableBooleanProp = default(bool?), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime? notRequiredNotnullableDateProp = default(DateTime?), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNotnullableDatetimeProp = default(DateTime?), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnu requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnu), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnu requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnu), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid? notrequiredNotnullableUuid = default(Guid?), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) { // to ensure "requiredNullableIntegerProp" is required (not null) if (requiredNullableIntegerProp == null) @@ -649,7 +650,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -697,7 +698,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -725,7 +726,7 @@ protected RequiredClass() /// [DataMember(Name = "not_required_notnullable_date_prop", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime NotRequiredNotnullableDateProp { get; set; } + public DateTime? NotRequiredNotnullableDateProp { get; set; } /// /// Gets or Sets RequiredNotnullableDatetimeProp @@ -749,7 +750,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [DataMember(Name = "notrequired_notnullable_datetime_prop", EmitDefaultValue = false)] - public DateTime NotrequiredNotnullableDatetimeProp { get; set; } + public DateTime? NotrequiredNotnullableDatetimeProp { get; set; } /// /// Gets or Sets RequiredNullableUuid @@ -777,7 +778,7 @@ protected RequiredClass() /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "notrequired_notnullable_uuid", EmitDefaultValue = false)] - public Guid NotrequiredNotnullableUuid { get; set; } + public Guid? NotrequiredNotnullableUuid { get; set; } /// /// Gets or Sets RequiredNullableArrayOfString @@ -913,7 +914,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -939,7 +943,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82..cd5db81f763f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -36,7 +36,7 @@ public partial class Return : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// varReturn. - public Return(int varReturn = default(int)) + public Return(int? varReturn = default(int?)) { this.VarReturn = varReturn; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class Return : IEquatable, IValidatableObject /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 4523238ad385..87943e6b750c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -37,7 +37,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// /// roleUuid. /// role. - public RolesReportsHash(Guid roleUuid = default(Guid), RolesReportsHashRole role = default(RolesReportsHashRole)) + public RolesReportsHash(Guid? roleUuid = default(Guid?), RolesReportsHashRole role = default(RolesReportsHashRole)) { this.RoleUuid = roleUuid; this.Role = role; @@ -48,7 +48,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// Gets or Sets RoleUuid /// [DataMember(Name = "role_uuid", EmitDefaultValue = false)] - public Guid RoleUuid { get; set; } + public Guid? RoleUuid { get; set; } /// /// Gets or Sets Role diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f..6210c3f1e1f5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -37,7 +37,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// /// specialPropertyName. /// varSpecialModelName. - public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) + public SpecialModelName(long? specialPropertyName = default(long?), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; this.VarSpecialModelName = varSpecialModelName; @@ -48,7 +48,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15..4e6fd30d63c4 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -37,7 +37,7 @@ public partial class Tag : IEquatable, IValidatableObject /// /// id. /// name. - public Tag(long id = default(long), string name = default(string)) + public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; this.Name = name; @@ -48,7 +48,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs index b7911507a704..486d09dd9180 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -47,7 +47,7 @@ public partial class User : IEquatable, IValidatableObject /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value.. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values.. - public User(long id = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int userStatus = default(int), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) { this.Id = id; this.Username = username; @@ -68,7 +68,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -111,7 +111,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -210,7 +210,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -235,7 +238,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e76..fc488c4ca229 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -46,7 +46,7 @@ protected Whale() /// hasBaleen. /// hasTeeth. /// className (required). - public Whale(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string)) + public Whale(bool? hasBaleen = default(bool?), bool? hasTeeth = default(bool?), string className = default(string)) { // to ensure "className" is required (not null) if (className == null) @@ -63,13 +63,13 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -137,8 +137,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ApiResponse.md index bb723d2baa13..faacf536f173 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/AppleReq.md index 005b8f8058a4..bb7b7576dc2e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayOfArrayOfNumberOnly.md index 4764c0ff80c5..fb113074d3f2 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayArrayNumber** | **List<List<decimal>>** | | [optional] +**ArrayArrayNumber** | **List<List<decimal?>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayOfNumberOnly.md index d93717103b8b..30e148e05489 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayNumber** | **List<decimal>** | | [optional] +**ArrayNumber** | **List<decimal?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayTest.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayTest.md index d74d11bae77d..89094d5e895c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ArrayTest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ArrayOfString** | **List<string>** | | [optional] -**ArrayArrayOfInteger** | **List<List<long>>** | | [optional] +**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional] **ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Banana.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Banana.md index 226952d1cecb..72cbdcf0af0b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/BananaReq.md index f99aab99e387..2bf39b773a66 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Cat.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Cat.md index aa1ac17604eb..d41c6ec6eb65 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Category.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Category.md index 032a1faeb3ff..bdbe5ac5a483 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/DateOnlyClass.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/DateOnlyClass.md index d0912d2ac415..258d6673e120 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/DateOnlyClass.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/DateOnlyClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateOnlyProperty** | **DateTime** | | [optional] +**DateOnlyProperty** | **DateTime?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/DefaultApi.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/DefaultApi.md index d9d4abc6ebbc..775590ae8779 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/DefaultApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/DefaultApi.md @@ -177,7 +177,7 @@ No authorization required # **Hello** -> List<Guid> Hello () +> List<Guid?> Hello () Hello @@ -204,7 +204,7 @@ namespace Example try { // Hello - List result = apiInstance.Hello(); + List result = apiInstance.Hello(); Debug.WriteLine(result); } catch (ApiException e) @@ -225,7 +225,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Hello - ApiResponse> response = apiInstance.HelloWithHttpInfo(); + ApiResponse> response = apiInstance.HelloWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -242,7 +242,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**List** +**List** ### Authorization diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/EnumTest.md index 5ce3c4addd9b..66cc8c6d245e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FakeApi.md index 06309f31e8a5..936da43e5a99 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FakeApi.md @@ -111,7 +111,7 @@ No authorization required # **FakeOuterBooleanSerialize** -> bool FakeOuterBooleanSerialize (bool? body = null) +> bool? FakeOuterBooleanSerialize (bool? body = null) @@ -138,7 +138,7 @@ namespace Example try { - bool result = apiInstance.FakeOuterBooleanSerialize(body); + bool? result = apiInstance.FakeOuterBooleanSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -158,7 +158,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -179,7 +179,7 @@ catch (ApiException e) ### Return type -**bool** +**bool?** ### Authorization @@ -289,7 +289,7 @@ No authorization required # **FakeOuterNumberSerialize** -> decimal FakeOuterNumberSerialize (decimal? body = null) +> decimal? FakeOuterNumberSerialize (decimal? body = null) @@ -316,7 +316,7 @@ namespace Example try { - decimal result = apiInstance.FakeOuterNumberSerialize(body); + decimal? result = apiInstance.FakeOuterNumberSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -336,7 +336,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -357,7 +357,7 @@ catch (ApiException e) ### Return type -**decimal** +**decimal?** ### Authorization @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid? requiredStringUuid, string body = null) @@ -401,7 +401,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); - var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String + var requiredStringUuid = "requiredStringUuid_example"; // Guid? | Required UUID String var body = "body_example"; // string | Input string as post body (optional) try @@ -443,7 +443,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringUuid** | **Guid** | Required UUID String | | +| **requiredStringUuid** | **Guid?** | Required UUID String | | | **body** | **string** | Input string as post body | [optional] | ### Return type @@ -1067,7 +1067,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1094,8 +1094,8 @@ namespace Example config.Password = "YOUR_PASSWORD"; var apiInstance = new FakeApi(config); - var number = 8.14D; // decimal | None - var varDouble = 1.2D; // double | None + var number = 8.14D; // decimal? | None + var varDouble = 1.2D; // double? | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) @@ -1146,8 +1146,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **number** | **decimal** | None | | -| **varDouble** | **double** | None | | +| **number** | **decimal?** | None | | +| **varDouble** | **double?** | None | | | **patternWithoutDelimiter** | **string** | None | | | **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | @@ -1287,7 +1287,7 @@ No authorization required # **TestGroupParameters** -> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) +> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) Fake endpoint to test group parameters (optional) @@ -1313,9 +1313,9 @@ namespace Example config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FakeApi(config); - var requiredStringGroup = 56; // int | Required String in group parameters - var requiredBooleanGroup = true; // bool | Required Boolean in group parameters - var requiredInt64Group = 789L; // long | Required Integer in group parameters + var requiredStringGroup = 56; // int? | Required String in group parameters + var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters + var requiredInt64Group = 789L; // long? | Required Integer in group parameters var stringGroup = 56; // int? | String in group parameters (optional) var booleanGroup = true; // bool? | Boolean in group parameters (optional) var int64Group = 789L; // long? | Integer in group parameters (optional) @@ -1357,9 +1357,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringGroup** | **int** | Required String in group parameters | | -| **requiredBooleanGroup** | **bool** | Required Boolean in group parameters | | -| **requiredInt64Group** | **long** | Required Integer in group parameters | | +| **requiredStringGroup** | **int?** | Required String in group parameters | | +| **requiredBooleanGroup** | **bool?** | Required Boolean in group parameters | | +| **requiredInt64Group** | **long?** | Required Integer in group parameters | | | **stringGroup** | **int?** | String in group parameters | [optional] | | **booleanGroup** | **bool?** | Boolean in group parameters | [optional] | | **int64Group** | **long?** | Integer in group parameters | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FormatTest.md index c2144b5e3cf6..9c47daec76bb 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FormatTest.md @@ -4,21 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | -**DateTime** | **DateTime** | | [optional] -**Uuid** | **Guid** | | [optional] +**DateTime** | **DateTime?** | | [optional] +**Uuid** | **Guid?** | | [optional] **Password** | **string** | | **PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] **PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Fruit.md index 40df92d7c9b1..05aed3a2642b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FruitReq.md index 5db6b0e2d1d8..8f072a324cb0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/GmFruit.md index da7b3a6ccf9f..265348eca479 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Mammal.md index aab8f4db9c75..75172cd3d506 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/MapTest.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/MapTest.md index 516f9d4fd37e..07c245718f12 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/MapTest.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/MapTest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional] **MapOfEnumString** | **Dictionary<string, MapTest.InnerEnum>** | | [optional] -**DirectMap** | **Dictionary<string, bool>** | | [optional] -**IndirectMap** | **Dictionary<string, bool>** | | [optional] +**DirectMap** | **Dictionary<string, bool?>** | | [optional] +**IndirectMap** | **Dictionary<string, bool?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 050210a3e371..81d4a847dbe2 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UuidWithPattern** | **Guid** | | [optional] -**Uuid** | **Guid** | | [optional] -**DateTime** | **DateTime** | | [optional] +**UuidWithPattern** | **Guid?** | | [optional] +**Uuid** | **Guid?** | | [optional] +**DateTime** | **DateTime?** | | [optional] **Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Model200Response.md index 31f4d86fe43d..820f058bf221 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Name.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Name.md index 3e19db154a80..e440a45f0ae1 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NumberOnly.md index 14a7c0f1071b..1af131f829ec 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b..20391539c912 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Order.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Order.md index 66c55c3b4737..1202b46b44ce 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Order.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] **Status** | **string** | Order Status | [optional] -**Complete** | **bool** | | [optional] [default to false] +**Complete** | **bool?** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/OuterComposite.md index eb42bcc1aaa4..71ca9b879223 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Pet.md index c7224764e2d4..a54829f9a8e2 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/PetApi.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/PetApi.md index 220b1ae30105..c8b18ee1626d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/PetApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/PetApi.md @@ -104,7 +104,7 @@ void (empty response body) # **DeletePet** -> void DeletePet (long petId, string apiKey = null) +> void DeletePet (long? petId, string apiKey = null) Deletes a pet @@ -128,7 +128,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | Pet id to delete + var petId = 789L; // long? | Pet id to delete var apiKey = "apiKey_example"; // string | (optional) try @@ -168,7 +168,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | Pet id to delete | | +| **petId** | **long?** | Pet id to delete | | | **apiKey** | **string** | | [optional] | ### Return type @@ -384,7 +384,7 @@ catch (ApiException e) # **GetPetById** -> Pet GetPetById (long petId) +> Pet GetPetById (long? petId) Find pet by ID @@ -416,7 +416,7 @@ namespace Example // config.AddApiKeyPrefix("api_key_query", "Bearer"); var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to return + var petId = 789L; // long? | ID of pet to return try { @@ -459,7 +459,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to return | | +| **petId** | **long?** | ID of pet to return | | ### Return type @@ -576,7 +576,7 @@ void (empty response body) # **UpdatePetWithForm** -> void UpdatePetWithForm (long petId, string name = null, string status = null) +> void UpdatePetWithForm (long? petId, string name = null, string status = null) Updates a pet in the store with form data @@ -600,7 +600,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet that needs to be updated + var petId = 789L; // long? | ID of pet that needs to be updated var name = "name_example"; // string | Updated name of the pet (optional) var status = "status_example"; // string | Updated status of the pet (optional) @@ -641,7 +641,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet that needs to be updated | | +| **petId** | **long?** | ID of pet that needs to be updated | | | **name** | **string** | Updated name of the pet | [optional] | | **status** | **string** | Updated status of the pet | [optional] | @@ -668,7 +668,7 @@ void (empty response body) # **UploadFile** -> ApiResponse UploadFile (long petId, string additionalMetadata = null, System.IO.Stream file = null) +> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null) uploads an image @@ -692,7 +692,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload (optional) @@ -737,7 +737,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | | **file** | **System.IO.Stream****System.IO.Stream** | file to upload | [optional] | @@ -764,7 +764,7 @@ catch (ApiException e) # **UploadFileWithRequiredFile** -> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = null) +> ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null) uploads an image (required) @@ -788,7 +788,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var requiredFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) @@ -833,7 +833,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **requiredFile** | **System.IO.Stream****System.IO.Stream** | file to upload | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RequiredClass.md index 07b6f018f6c1..018f2a832832 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,23 +15,23 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] -**NotRequiredNotnullableDateProp** | **DateTime** | | [optional] +**NotRequiredNotnullableDateProp** | **DateTime?** | | [optional] **RequiredNotnullableDatetimeProp** | **DateTime** | | **RequiredNullableDatetimeProp** | **DateTime?** | | **NotrequiredNullableDatetimeProp** | **DateTime?** | | [optional] -**NotrequiredNotnullableDatetimeProp** | **DateTime** | | [optional] +**NotrequiredNotnullableDatetimeProp** | **DateTime?** | | [optional] **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] @@ -43,7 +43,7 @@ Name | Type | Description | Notes **RequiredNullableUuid** | **Guid?** | | **RequiredNotnullableUuid** | **Guid** | | **NotrequiredNullableUuid** | **Guid?** | | [optional] -**NotrequiredNotnullableUuid** | **Guid** | | [optional] +**NotrequiredNotnullableUuid** | **Guid?** | | [optional] **RequiredNullableArrayOfString** | **List<string>** | | **RequiredNotnullableArrayOfString** | **List<string>** | | **NotrequiredNullableArrayOfString** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Return.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Return.md index 052ac9190068..8eec64177930 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RolesReportsHash.md index 309b0c02615c..52bb81a7dab6 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RolesReportsHash.md @@ -5,7 +5,7 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] +**RoleUuid** | **Guid?** | | [optional] **Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1..6d9805d03479 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/StoreApi.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/StoreApi.md index 179da0ff637e..2d557c4cfa81 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/StoreApi.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/StoreApi.md @@ -99,7 +99,7 @@ No authorization required # **GetInventory** -> Dictionary<string, int> GetInventory () +> Dictionary<string, int?> GetInventory () Returns pet inventories by status @@ -131,7 +131,7 @@ namespace Example try { // Returns pet inventories by status - Dictionary result = apiInstance.GetInventory(); + Dictionary result = apiInstance.GetInventory(); Debug.WriteLine(result); } catch (ApiException e) @@ -152,7 +152,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Returns pet inventories by status - ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); + ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -169,7 +169,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**Dictionary** +**Dictionary** ### Authorization @@ -190,7 +190,7 @@ This endpoint does not need any parameter. # **GetOrderById** -> Order GetOrderById (long orderId) +> Order GetOrderById (long? orderId) Find purchase order by ID @@ -213,7 +213,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new StoreApi(config); - var orderId = 789L; // long | ID of pet that needs to be fetched + var orderId = 789L; // long? | ID of pet that needs to be fetched try { @@ -256,7 +256,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **orderId** | **long** | ID of pet that needs to be fetched | | +| **orderId** | **long?** | ID of pet that needs to be fetched | | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Tag.md index fdd22eb31fdd..f86abfc26e02 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/User.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/User.md index b0cd4dc042bf..da9b34219d84 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Whale.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Whale.md index 5fc3dc7f85c2..a1512d751e8e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 54f3d2e41a93..2e22006cf95b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -73,8 +73,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - List Hello(int operationIndex = 0); + /// List<Guid?> + List Hello(int operationIndex = 0); /// /// Hello @@ -84,8 +84,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - ApiResponse> HelloWithHttpInfo(int operationIndex = 0); + /// ApiResponse of List<Guid?> + ApiResponse> HelloWithHttpInfo(int operationIndex = 0); /// /// /// @@ -188,8 +188,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<Guid?> + System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hello @@ -200,8 +200,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<Guid?>) + System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -641,10 +641,10 @@ public Org.OpenAPITools.Client.ApiResponse GetCountryWithHttpInfo(string /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - public List Hello(int operationIndex = 0) + /// List<Guid?> + public List Hello(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); return localVarResponse.Data; } @@ -653,8 +653,8 @@ public List Hello(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) + /// ApiResponse of List<Guid?> + public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -684,7 +684,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("Hello", localVarResponse); @@ -703,10 +703,10 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<Guid?> + public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -716,8 +716,8 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<Guid?>) + public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -748,7 +748,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index a61c5d240e23..29d75013441d 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -54,8 +54,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); + /// bool? + bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); /// /// @@ -66,8 +66,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); + /// ApiResponse of bool? + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); /// /// /// @@ -100,8 +100,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); + /// decimal? + decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); /// /// @@ -112,8 +112,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); + /// ApiResponse of decimal? + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); /// /// /// @@ -125,7 +125,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string), int operationIndex = 0); + string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0); /// /// @@ -138,7 +138,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string), int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0); /// /// Array of Enums /// @@ -304,7 +304,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -329,7 +329,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// To test enum parameters /// @@ -382,7 +382,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// Fake endpoint to test group parameters (optional) @@ -399,7 +399,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// test inline additionalProperties /// @@ -563,8 +563,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of bool? + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -576,8 +576,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (bool?) + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -613,8 +613,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of decimal? + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -626,8 +626,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (decimal?) + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -640,7 +640,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -654,7 +654,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Array of Enums /// @@ -850,7 +850,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -876,7 +876,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -932,7 +932,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint to test group parameters (optional) @@ -950,7 +950,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// test inline additionalProperties /// @@ -1346,10 +1346,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) + /// bool? + public bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1359,8 +1359,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) + /// ApiResponse of bool? + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1392,7 +1392,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterBooleanSerialize", localVarResponse); @@ -1412,10 +1412,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of bool? + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1426,8 +1426,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (bool?) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1460,7 +1460,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1614,10 +1614,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) + /// decimal? + public decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1627,8 +1627,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) + /// ApiResponse of decimal? + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1660,7 +1660,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterNumberSerialize", localVarResponse); @@ -1680,10 +1680,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of decimal? + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1694,8 +1694,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (decimal?) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1728,7 +1728,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1750,7 +1750,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string), int operationIndex = 0) + public string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); return localVarResponse.Data; @@ -1764,8 +1764,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1819,7 +1825,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1834,8 +1840,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2870,7 +2882,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } @@ -2895,8 +2907,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3021,7 +3045,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3047,8 +3071,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3386,7 +3422,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -3403,8 +3439,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -3479,7 +3533,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3497,8 +3551,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index 8db5fd36849d..3f214ffb4c5f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -55,7 +55,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// - void DeletePet(long petId, string apiKey = default(string), int operationIndex = 0); + void DeletePet(long? petId, string apiKey = default(string), int operationIndex = 0); /// /// Deletes a pet @@ -68,7 +68,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), int operationIndex = 0); + ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string), int operationIndex = 0); /// /// Finds Pets by status /// @@ -127,7 +127,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// Pet - Pet GetPetById(long petId, int operationIndex = 0); + Pet GetPetById(long? petId, int operationIndex = 0); /// /// Find pet by ID @@ -139,7 +139,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0); + ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0); /// /// Update an existing pet /// @@ -169,7 +169,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), int operationIndex = 0); + void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string), int operationIndex = 0); /// /// Updates a pet in the store with form data @@ -183,7 +183,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), int operationIndex = 0); + ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string), int operationIndex = 0); /// /// uploads an image /// @@ -193,7 +193,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); + ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); /// /// uploads an image @@ -207,7 +207,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); + ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); /// /// uploads an image (required) /// @@ -217,7 +217,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); /// /// uploads an image (required) @@ -231,7 +231,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); #endregion Synchronous Operations } @@ -278,7 +278,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Deletes a pet @@ -292,7 +292,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Finds Pets by status /// @@ -356,7 +356,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find pet by ID @@ -369,7 +369,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an existing pet /// @@ -408,7 +408,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Updates a pet in the store with form data @@ -423,7 +423,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image /// @@ -437,7 +437,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image @@ -452,7 +452,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) /// @@ -466,7 +466,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) @@ -481,7 +481,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -818,7 +818,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// - public void DeletePet(long petId, string apiKey = default(string), int operationIndex = 0) + public void DeletePet(long? petId, string apiKey = default(string), int operationIndex = 0) { DeletePetWithHttpInfo(petId, apiKey); } @@ -831,8 +831,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -903,7 +909,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeletePetWithHttpInfoAsync(petId, apiKey, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -917,8 +923,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1413,7 +1425,7 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// ID of pet to return /// Index associated with the operation. /// Pet - public Pet GetPetById(long petId, int operationIndex = 0) + public Pet GetPetById(long? petId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); return localVarResponse.Data; @@ -1426,8 +1438,14 @@ public Pet GetPetById(long petId, int operationIndex = 0) /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1489,7 +1507,7 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1503,8 +1521,14 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1777,7 +1801,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), int operationIndex = 0) + public void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string), int operationIndex = 0) { UpdatePetWithFormWithHttpInfo(petId, name, status); } @@ -1791,8 +1815,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1869,7 +1899,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1884,8 +1914,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1963,7 +1999,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) + public ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); return localVarResponse.Data; @@ -1978,8 +2014,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -2057,7 +2099,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2073,8 +2115,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2153,7 +2201,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) + public ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResponse.Data; @@ -2168,8 +2216,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { @@ -2251,7 +2305,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2267,8 +2321,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index e8882b0fc2e4..d70c41ee64bf 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -58,8 +58,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - Dictionary GetInventory(int operationIndex = 0); + /// Dictionary<string, int?> + Dictionary GetInventory(int operationIndex = 0); /// /// Returns pet inventories by status @@ -69,8 +69,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); + /// ApiResponse of Dictionary<string, int?> + ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); /// /// Find purchase order by ID /// @@ -81,7 +81,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - Order GetOrderById(long orderId, int operationIndex = 0); + Order GetOrderById(long? orderId, int operationIndex = 0); /// /// Find purchase order by ID @@ -93,7 +93,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0); + ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0); /// /// Place an order for a pet /// @@ -157,8 +157,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of Dictionary<string, int?> + System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Returns pet inventories by status @@ -169,8 +169,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (Dictionary<string, int?>) + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID /// @@ -182,7 +182,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID @@ -195,7 +195,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Place an order for a pet /// @@ -486,10 +486,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - public Dictionary GetInventory(int operationIndex = 0) + /// Dictionary<string, int?> + public Dictionary GetInventory(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); return localVarResponse.Data; } @@ -498,8 +498,8 @@ public Dictionary GetInventory(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) + /// ApiResponse of Dictionary<string, int?> + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -534,7 +534,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse); @@ -553,10 +553,10 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of Dictionary<string, int?> + public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -566,8 +566,8 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (Dictionary<string, int?>) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -603,7 +603,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -624,7 +624,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - public Order GetOrderById(long orderId, int operationIndex = 0) + public Order GetOrderById(long? orderId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); return localVarResponse.Data; @@ -637,8 +637,14 @@ public Order GetOrderById(long orderId, int operationIndex = 0) /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -690,7 +696,7 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -704,8 +710,14 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1f..2fe81b88e769 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -38,7 +38,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// code. /// type. /// message. - public ApiResponse(int code = default(int), string type = default(string), string message = default(string)) + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; this.Type = type; @@ -50,7 +50,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -124,7 +124,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e3..97e5fd1574b4 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ protected AppleReq() { } /// /// cultivar (required). /// mealy. - public AppleReq(string cultivar = default(string), bool mealy = default(bool)) + public AppleReq(string cultivar = default(string), bool? mealy = default(bool?)) { // to ensure "cultivar" is required (not null) if (cultivar == null) @@ -63,7 +63,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -121,7 +121,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 3e1666ca90f8..c360a39a785e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// arrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { this.ArrayArrayNumber = arrayArrayNumber; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable [DataMember(Name = "ArrayArrayNumber", EmitDefaultValue = false)] - public List> ArrayArrayNumber { get; set; } + public List> ArrayArrayNumber { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index f2946f435b53..738d58a1fc98 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Initializes a new instance of the class. /// /// arrayNumber. - public ArrayOfNumberOnly(List arrayNumber = default(List)) + public ArrayOfNumberOnly(List arrayNumber = default(List)) { this.ArrayNumber = arrayNumber; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Gets or Sets ArrayNumber /// [DataMember(Name = "ArrayNumber", EmitDefaultValue = false)] - public List ArrayNumber { get; set; } + public List ArrayNumber { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 343e486f6575..17f688b2d87f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -38,7 +38,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// arrayOfString. /// arrayArrayOfInteger. /// arrayArrayOfModel. - public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; this.ArrayArrayOfInteger = arrayArrayOfInteger; @@ -56,7 +56,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// Gets or Sets ArrayArrayOfInteger /// [DataMember(Name = "array_array_of_integer", EmitDefaultValue = false)] - public List> ArrayArrayOfInteger { get; set; } + public List> ArrayArrayOfInteger { get; set; } /// /// Gets or Sets ArrayArrayOfModel diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..661739ae18e5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -36,7 +36,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// lengthCm. - public Banana(decimal lengthCm = default(decimal)) + public Banana(decimal? lengthCm = default(decimal?)) { this.LengthCm = lengthCm; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80..6901cc0d18e3 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ protected BananaReq() { } /// /// lengthCm (required). /// sweet. - public BananaReq(decimal lengthCm = default(decimal), bool sweet = default(bool)) + public BananaReq(decimal lengthCm = default(decimal), bool? sweet = default(bool?)) { this.LengthCm = lengthCm; this.Sweet = sweet; @@ -58,7 +58,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -113,7 +113,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index a427b55727d7..ff6135f34289 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -48,7 +48,7 @@ protected Cat() /// declawed. /// className (required) (default to "Cat"). /// color (default to "red"). - public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color) + public Cat(bool? declawed = default(bool?), string className = @"Cat", string color = @"red") : base(className, color) { this.Declawed = declawed; this.AdditionalProperties = new Dictionary(); @@ -58,7 +58,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Gets or Sets additional properties @@ -119,7 +119,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4a..ceab7f116b8e 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -45,7 +45,7 @@ protected Category() /// /// id. /// name (required) (default to "default-name"). - public Category(long id = default(long), string name = @"default-name") + public Category(long? id = default(long?), string name = @"default-name") { // to ensure "name" is required (not null) if (name == null) @@ -61,7 +61,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -128,7 +128,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 9933ec57ea9e..cd661c3cd755 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -36,7 +36,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje /// Initializes a new instance of the class. /// /// dateOnlyProperty. - public DateOnlyClass(DateTime dateOnlyProperty = default(DateTime)) + public DateOnlyClass(DateTime? dateOnlyProperty = default(DateTime?)) { this.DateOnlyProperty = dateOnlyProperty; this.AdditionalProperties = new Dictionary(); @@ -48,7 +48,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje /// Fri Jul 21 00:00:00 UTC 2017 [DataMember(Name = "dateOnlyProperty", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime DateOnlyProperty { get; set; } + public DateTime? DateOnlyProperty { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954ea..e7eef0d94a37 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -179,6 +179,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 7158640c24e2..4bec4463326b 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -62,7 +62,7 @@ protected FormatTest() /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int? integer = default(int?), int? int32 = default(int?), uint? unsignedInteger = default(uint?), long? int64 = default(long?), ulong? unsignedLong = default(ulong?), decimal number = default(decimal), float? varFloat = default(float?), double? varDouble = default(double?), decimal? varDecimal = default(decimal?), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; // to ensure "varByte" is required (not null) @@ -100,31 +100,31 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -136,19 +136,19 @@ protected FormatTest() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -181,14 +181,14 @@ protected FormatTest() /// /// 2007-12-03T10:15:30+01:00 [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Uuid /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets Password @@ -293,15 +293,39 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -357,38 +381,38 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -405,26 +429,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 691f128ea5fb..a67ae46eed35 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -58,7 +58,7 @@ public enum InnerEnum /// mapOfEnumString. /// directMap. /// indirectMap. - public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) { this.MapMapOfString = mapMapOfString; this.MapOfEnumString = mapOfEnumString; @@ -83,13 +83,13 @@ public enum InnerEnum /// Gets or Sets DirectMap /// [DataMember(Name = "direct_map", EmitDefaultValue = false)] - public Dictionary DirectMap { get; set; } + public Dictionary DirectMap { get; set; } /// /// Gets or Sets IndirectMap /// [DataMember(Name = "indirect_map", EmitDefaultValue = false)] - public Dictionary IndirectMap { get; set; } + public Dictionary IndirectMap { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 49e94cc5e5db..0c1e37574cf0 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -48,10 +48,10 @@ public MixedAnyOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedAnyOfContent(bool actualInstance) + /// An instance of bool?. + public MixedAnyOfContent(bool? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -60,10 +60,10 @@ public MixedAnyOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedAnyOfContent(int actualInstance) + /// An instance of int?. + public MixedAnyOfContent(int? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -72,10 +72,10 @@ public MixedAnyOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedAnyOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedAnyOfContent(decimal? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { _actualInstance = value; } - else if (value.GetType() == typeof(bool)) + else if (value.GetType() == typeof(bool?)) { _actualInstance = value; } - else if (value.GetType() == typeof(decimal)) + else if (value.GetType() == typeof(decimal?)) { _actualInstance = value; } - else if (value.GetType() == typeof(int)) + else if (value.GetType() == typeof(int?)) { _actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)ActualInstance; + return (bool?)ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)ActualInstance; + return (int?)ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)ActualInstance; + return (decimal?)ActualInstance; } /// @@ -235,38 +235,38 @@ public static MixedAnyOfContent FromJson(string jsonString) try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index e2527cc3c315..9ef03c99ae1f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -48,10 +48,10 @@ public MixedOneOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedOneOfContent(bool actualInstance) + /// An instance of bool?. + public MixedOneOfContent(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -60,10 +60,10 @@ public MixedOneOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedOneOfContent(int actualInstance) + /// An instance of int?. + public MixedOneOfContent(int? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -72,10 +72,10 @@ public MixedOneOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedOneOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedOneOfContent(decimal? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } - else if (value.GetType() == typeof(decimal) || value is decimal) + else if (value.GetType() == typeof(decimal?) || value is decimal?) { this._actualInstance = value; } - else if (value.GetType() == typeof(int) || value is int) + else if (value.GetType() == typeof(int?) || value is int?) { this._actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)this.ActualInstance; + return (int?)this.ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)this.ActualInstance; + return (decimal?)this.ActualInstance; } /// @@ -246,61 +246,61 @@ public static MixedOneOfContent FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(decimal).GetProperty("AdditionalProperties") == null) + if (typeof(decimal?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("decimal"); + matchedTypes.Add("decimal?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(int).GetProperty("AdditionalProperties") == null) + if (typeof(int?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("int"); + matchedTypes.Add("int?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 5f51e31aa034..2d6665a3fd5c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -39,7 +39,7 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableuuid. /// dateTime. /// map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid uuidWithPattern = default(Guid), Guid uuid = default(Guid), DateTime dateTime = default(DateTime), Dictionary map = default(Dictionary)) + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuidWithPattern = default(Guid?), Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.UuidWithPattern = uuidWithPattern; this.Uuid = uuid; @@ -52,19 +52,19 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable [DataMember(Name = "uuid_with_pattern", EmitDefaultValue = false)] - public Guid UuidWithPattern { get; set; } + public Guid? UuidWithPattern { get; set; } /// /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets DateTime /// [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Map @@ -165,7 +165,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.UuidWithPattern != null) { - // UuidWithPattern (Guid) pattern + // UuidWithPattern (Guid?) pattern Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e754..ee546305b2f2 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -37,7 +37,7 @@ public partial class Model200Response : IEquatable, IValidatab /// /// name. /// varClass. - public Model200Response(int name = default(int), string varClass = default(string)) + public Model200Response(int? name = default(int?), string varClass = default(string)) { this.Name = name; this.Class = varClass; @@ -48,7 +48,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c..69938e7b7c61 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -62,7 +62,7 @@ protected Name() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -82,7 +82,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -154,12 +154,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb0..3bccec432a60 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -39,7 +39,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// justNumber. - public NumberOnly(decimal justNumber = default(decimal)) + public NumberOnly(decimal? justNumber = default(decimal?)) { this.JustNumber = justNumber; this.AdditionalProperties = new Dictionary(); @@ -49,7 +49,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Gets or Sets additional properties @@ -109,7 +109,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86..867e47627c1a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -39,7 +39,7 @@ public partial class ObjectWithDeprecatedFields : IEquatableid. /// deprecatedRef. /// bars. - public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) + public ObjectWithDeprecatedFields(string uuid = default(string), decimal? id = default(decimal?), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) { this.Uuid = uuid; this.Id = id; @@ -59,7 +59,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -140,7 +140,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs index e9471d3ba022..c2dd7fb1d098 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -74,14 +74,15 @@ public enum StatusEnum /// shipDate. /// Order Status. /// complete (default to false). - public Order(long id = default(long), long petId = default(long), int quantity = default(int), DateTime shipDate = default(DateTime), StatusEnum? status = default(StatusEnum?), bool complete = false) + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { this.Id = id; this.PetId = petId; this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - this.Complete = complete; + // use default value if no "complete" provided + this.Complete = complete ?? false; this.AdditionalProperties = new Dictionary(); } @@ -89,32 +90,32 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate /// /// 2020-02-02T20:20:20.000222Z [DataMember(Name = "shipDate", EmitDefaultValue = false)] - public DateTime ShipDate { get; set; } + public DateTime? ShipDate { get; set; } /// /// Gets or Sets Complete /// [DataMember(Name = "complete", EmitDefaultValue = true)] - public bool Complete { get; set; } + public bool? Complete { get; set; } /// /// Gets or Sets additional properties @@ -179,15 +180,27 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); } hashCode = (hashCode * 59) + this.Status.GetHashCode(); - hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + if (this.Complete != null) + { + hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f..35dfdce59861 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -38,7 +38,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// myNumber. /// myString. /// myBoolean. - public OuterComposite(decimal myNumber = default(decimal), string myString = default(string), bool myBoolean = default(bool)) + public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?)) { this.MyNumber = myNumber; this.MyString = myString; @@ -50,7 +50,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -62,7 +62,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Gets or Sets additional properties @@ -124,12 +124,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e4722f4a5379..55b6fbe49e98 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -82,7 +82,7 @@ protected Pet() /// photoUrls (required). /// tags. /// pet status in the store. - public Pet(long id = default(long), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { // to ensure "name" is required (not null) if (name == null) @@ -107,7 +107,7 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -197,7 +197,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 5e4472118140..09dd24285e98 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -36,10 +36,10 @@ public partial class PolymorphicProperty : AbstractOpenAPISchema, IEquatable /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public PolymorphicProperty(bool actualInstance) + /// An instance of bool?. + public PolymorphicProperty(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -104,7 +104,7 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } @@ -114,19 +114,19 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool?, string"); } } } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// @@ -240,21 +240,21 @@ public static PolymorphicProperty FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); } else { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index d040204ece33..0893b7d98624 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -57,7 +57,7 @@ public enum RequiredNullableEnumIntegerEnum /// /// Defines RequiredNotnullableEnumInteger /// - public enum RequiredNotnullableEnumIntegerEnum + public enum RequiredNotnullableEnumIntegerEnu { /// /// Enum NUMBER_1 for value: 1 @@ -75,7 +75,7 @@ public enum RequiredNotnullableEnumIntegerEnum /// Gets or Sets RequiredNotnullableEnumInteger /// [DataMember(Name = "required_notnullable_enum_integer", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerEnum RequiredNotnullableEnumInteger { get; set; } + public RequiredNotnullableEnumIntegerEnu RequiredNotnullableEnumInteger { get; set; } /// /// Defines NotrequiredNullableEnumInteger /// @@ -146,7 +146,7 @@ public enum RequiredNullableEnumIntegerOnlyEnum /// /// Defines RequiredNotnullableEnumIntegerOnly /// - public enum RequiredNotnullableEnumIntegerOnlyEnum + public enum RequiredNotnullableEnumIntegerOnlyEnu { /// /// Enum NUMBER_2 for value: 2 @@ -164,7 +164,7 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// [DataMember(Name = "required_notnullable_enum_integer_only", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerOnlyEnum RequiredNotnullableEnumIntegerOnly { get; set; } + public RequiredNotnullableEnumIntegerOnlyEnu RequiredNotnullableEnumIntegerOnly { get; set; } /// /// Defines NotrequiredNullableEnumIntegerOnly /// @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -533,7 +534,7 @@ protected RequiredClass() /// requiredNotnullableArrayOfString (required). /// notrequiredNullableArrayOfString. /// notrequiredNotnullableArrayOfString. - public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int notRequiredNotnullableintegerProp = default(int), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool notrequiredNotnullableBooleanProp = default(bool), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime notRequiredNotnullableDateProp = default(DateTime), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime notrequiredNotnullableDatetimeProp = default(DateTime), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnum requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnum), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnum requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnum), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid notrequiredNotnullableUuid = default(Guid), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) + public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int? notRequiredNotnullableintegerProp = default(int?), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool? notrequiredNotnullableBooleanProp = default(bool?), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime? notRequiredNotnullableDateProp = default(DateTime?), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNotnullableDatetimeProp = default(DateTime?), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnu requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnu), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnu requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnu), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid? notrequiredNotnullableUuid = default(Guid?), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) { // to ensure "requiredNullableIntegerProp" is required (not null) if (requiredNullableIntegerProp == null) @@ -649,7 +650,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -697,7 +698,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -725,7 +726,7 @@ protected RequiredClass() /// [DataMember(Name = "not_required_notnullable_date_prop", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime NotRequiredNotnullableDateProp { get; set; } + public DateTime? NotRequiredNotnullableDateProp { get; set; } /// /// Gets or Sets RequiredNotnullableDatetimeProp @@ -749,7 +750,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [DataMember(Name = "notrequired_notnullable_datetime_prop", EmitDefaultValue = false)] - public DateTime NotrequiredNotnullableDatetimeProp { get; set; } + public DateTime? NotrequiredNotnullableDatetimeProp { get; set; } /// /// Gets or Sets RequiredNullableUuid @@ -777,7 +778,7 @@ protected RequiredClass() /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "notrequired_notnullable_uuid", EmitDefaultValue = false)] - public Guid NotrequiredNotnullableUuid { get; set; } + public Guid? NotrequiredNotnullableUuid { get; set; } /// /// Gets or Sets RequiredNullableArrayOfString @@ -913,7 +914,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -939,7 +943,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82..cd5db81f763f 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -36,7 +36,7 @@ public partial class Return : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// varReturn. - public Return(int varReturn = default(int)) + public Return(int? varReturn = default(int?)) { this.VarReturn = varReturn; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class Return : IEquatable, IValidatableObject /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 4523238ad385..87943e6b750c 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -37,7 +37,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// /// roleUuid. /// role. - public RolesReportsHash(Guid roleUuid = default(Guid), RolesReportsHashRole role = default(RolesReportsHashRole)) + public RolesReportsHash(Guid? roleUuid = default(Guid?), RolesReportsHashRole role = default(RolesReportsHashRole)) { this.RoleUuid = roleUuid; this.Role = role; @@ -48,7 +48,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// Gets or Sets RoleUuid /// [DataMember(Name = "role_uuid", EmitDefaultValue = false)] - public Guid RoleUuid { get; set; } + public Guid? RoleUuid { get; set; } /// /// Gets or Sets Role diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f..6210c3f1e1f5 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -37,7 +37,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// /// specialPropertyName. /// varSpecialModelName. - public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) + public SpecialModelName(long? specialPropertyName = default(long?), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; this.VarSpecialModelName = varSpecialModelName; @@ -48,7 +48,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15..4e6fd30d63c4 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -37,7 +37,7 @@ public partial class Tag : IEquatable, IValidatableObject /// /// id. /// name. - public Tag(long id = default(long), string name = default(string)) + public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; this.Name = name; @@ -48,7 +48,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs index b7911507a704..486d09dd9180 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -47,7 +47,7 @@ public partial class User : IEquatable, IValidatableObject /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value.. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values.. - public User(long id = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int userStatus = default(int), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) { this.Id = id; this.Username = username; @@ -68,7 +68,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -111,7 +111,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -210,7 +210,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -235,7 +238,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e76..fc488c4ca229 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -46,7 +46,7 @@ protected Whale() /// hasBaleen. /// hasTeeth. /// className (required). - public Whale(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string)) + public Whale(bool? hasBaleen = default(bool?), bool? hasTeeth = default(bool?), string className = default(string)) { // to ensure "className" is required (not null) if (className == null) @@ -63,13 +63,13 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -137,8 +137,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/README.md b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/README.md index b9bb7a67e21c..c7155d32b347 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/README.md +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/README.md @@ -87,7 +87,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://localhost"; var apiInstance = new FakeApi(config); - var UnderscoreType = 789L; // long | _type + var UnderscoreType = 789L; // long? | _type var type = "type_example"; // string | type var TypeWithUnderscore = "TypeWithUnderscore_example"; // string | type_ var httpDebugOption = "httpDebugOption_example"; // string | http debug option (to test parameter naming option) diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/FakeApi.md index 38edc53dab9a..897202e97d7d 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/FakeApi.md @@ -8,7 +8,7 @@ All URIs are relative to *http://localhost* # **GetParameterNameMapping** -> Env GetParameterNameMapping (long UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption) +> Env GetParameterNameMapping (long? UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption) parameter name mapping test @@ -29,7 +29,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://localhost"; var apiInstance = new FakeApi(config); - var UnderscoreType = 789L; // long | _type + var UnderscoreType = 789L; // long? | _type var type = "type_example"; // string | type var TypeWithUnderscore = "TypeWithUnderscore_example"; // string | type_ var httpDebugOption = "httpDebugOption_example"; // string | http debug option (to test parameter naming option) @@ -75,7 +75,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **UnderscoreType** | **long** | _type | | +| **UnderscoreType** | **long?** | _type | | | **type** | **string** | type | | | **TypeWithUnderscore** | **string** | type_ | | | **httpDebugOption** | **string** | http debug option (to test parameter naming option) | | diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Api/FakeApi.cs index 38d8dec2a297..947f248f7eb7 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Api/FakeApi.cs @@ -36,7 +36,7 @@ public interface IFakeApiSync : IApiAccessor /// http debug option (to test parameter naming option) /// Index associated with the operation. /// Env - Env GetParameterNameMapping(long UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0); + Env GetParameterNameMapping(long? UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0); /// /// parameter name mapping test @@ -51,7 +51,7 @@ public interface IFakeApiSync : IApiAccessor /// http debug option (to test parameter naming option) /// Index associated with the operation. /// ApiResponse of Env - ApiResponse GetParameterNameMappingWithHttpInfo(long UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0); + ApiResponse GetParameterNameMappingWithHttpInfo(long? UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0); #endregion Synchronous Operations } @@ -75,7 +75,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Env - System.Threading.Tasks.Task GetParameterNameMappingAsync(long UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetParameterNameMappingAsync(long? UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// parameter name mapping test @@ -91,7 +91,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Env) - System.Threading.Tasks.Task> GetParameterNameMappingWithHttpInfoAsync(long UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetParameterNameMappingWithHttpInfoAsync(long? UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -222,7 +222,7 @@ public Org.OpenAPITools.Client.ExceptionFactory ExceptionFactory /// http debug option (to test parameter naming option) /// Index associated with the operation. /// Env - public Env GetParameterNameMapping(long UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0) + public Env GetParameterNameMapping(long? UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetParameterNameMappingWithHttpInfo(UnderscoreType, type, TypeWithUnderscore, httpDebugOption); return localVarResponse.Data; @@ -238,8 +238,14 @@ public Env GetParameterNameMapping(long UnderscoreType, string type, string Type /// http debug option (to test parameter naming option) /// Index associated with the operation. /// ApiResponse of Env - public Org.OpenAPITools.Client.ApiResponse GetParameterNameMappingWithHttpInfo(long UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetParameterNameMappingWithHttpInfo(long? UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0) { + // verify the required parameter 'UnderscoreType' is set + if (UnderscoreType == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'UnderscoreType' when calling FakeApi->GetParameterNameMapping"); + } + // verify the required parameter 'type' is set if (type == null) { @@ -314,7 +320,7 @@ public Org.OpenAPITools.Client.ApiResponse GetParameterNameMappingWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Env - public async System.Threading.Tasks.Task GetParameterNameMappingAsync(long UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetParameterNameMappingAsync(long? UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetParameterNameMappingWithHttpInfoAsync(UnderscoreType, type, TypeWithUnderscore, httpDebugOption, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -331,8 +337,14 @@ public Org.OpenAPITools.Client.ApiResponse GetParameterNameMappingWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Env) - public async System.Threading.Tasks.Task> GetParameterNameMappingWithHttpInfoAsync(long UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetParameterNameMappingWithHttpInfoAsync(long? UnderscoreType, string type, string TypeWithUnderscore, string httpDebugOption, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'UnderscoreType' is set + if (UnderscoreType == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'UnderscoreType' when calling FakeApi->GetParameterNameMapping"); + } + // verify the required parameter 'type' is set if (type == null) { diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ApiResponse.md index bb723d2baa13..faacf536f173 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AppleReq.md index 005b8f8058a4..bb7b7576dc2e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayOfArrayOfNumberOnly.md index 4764c0ff80c5..fb113074d3f2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayArrayNumber** | **List<List<decimal>>** | | [optional] +**ArrayArrayNumber** | **List<List<decimal?>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayOfNumberOnly.md index d93717103b8b..30e148e05489 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayNumber** | **List<decimal>** | | [optional] +**ArrayNumber** | **List<decimal?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayTest.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayTest.md index d74d11bae77d..89094d5e895c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ArrayTest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ArrayOfString** | **List<string>** | | [optional] -**ArrayArrayOfInteger** | **List<List<long>>** | | [optional] +**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional] **ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Banana.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Banana.md index 226952d1cecb..72cbdcf0af0b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/BananaReq.md index f99aab99e387..2bf39b773a66 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Cat.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Cat.md index aa1ac17604eb..d41c6ec6eb65 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Category.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Category.md index 032a1faeb3ff..bdbe5ac5a483 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DefaultApi.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DefaultApi.md index d9d4abc6ebbc..775590ae8779 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DefaultApi.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DefaultApi.md @@ -177,7 +177,7 @@ No authorization required # **Hello** -> List<Guid> Hello () +> List<Guid?> Hello () Hello @@ -204,7 +204,7 @@ namespace Example try { // Hello - List result = apiInstance.Hello(); + List result = apiInstance.Hello(); Debug.WriteLine(result); } catch (ApiException e) @@ -225,7 +225,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Hello - ApiResponse> response = apiInstance.HelloWithHttpInfo(); + ApiResponse> response = apiInstance.HelloWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -242,7 +242,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**List** +**List** ### Authorization diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumTest.md index 5ce3c4addd9b..66cc8c6d245e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FakeApi.md index 933fb1c7cad3..c057828a1f7a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FakeApi.md @@ -111,7 +111,7 @@ No authorization required # **FakeOuterBooleanSerialize** -> bool FakeOuterBooleanSerialize (bool? body = null) +> bool? FakeOuterBooleanSerialize (bool? body = null) @@ -138,7 +138,7 @@ namespace Example try { - bool result = apiInstance.FakeOuterBooleanSerialize(body); + bool? result = apiInstance.FakeOuterBooleanSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -158,7 +158,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -179,7 +179,7 @@ catch (ApiException e) ### Return type -**bool** +**bool?** ### Authorization @@ -289,7 +289,7 @@ No authorization required # **FakeOuterNumberSerialize** -> decimal FakeOuterNumberSerialize (decimal? body = null) +> decimal? FakeOuterNumberSerialize (decimal? body = null) @@ -316,7 +316,7 @@ namespace Example try { - decimal result = apiInstance.FakeOuterNumberSerialize(body); + decimal? result = apiInstance.FakeOuterNumberSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -336,7 +336,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -357,7 +357,7 @@ catch (ApiException e) ### Return type -**decimal** +**decimal?** ### Authorization @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string? body = null) +> string FakeOuterStringSerialize (Guid? requiredStringUuid, string? body = null) @@ -401,7 +401,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); - var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String + var requiredStringUuid = "requiredStringUuid_example"; // Guid? | Required UUID String var body = "body_example"; // string? | Input string as post body (optional) try @@ -443,7 +443,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringUuid** | **Guid** | Required UUID String | | +| **requiredStringUuid** | **Guid?** | Required UUID String | | | **body** | **string?** | Input string as post body | [optional] | ### Return type @@ -1067,7 +1067,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string? varString = null, System.IO.Stream? binary = null, DateOnly? date = null, DateTime? dateTime = null, string? password = null, string? callback = null) +> void TestEndpointParameters (decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string? varString = null, System.IO.Stream? binary = null, DateOnly? date = null, DateTime? dateTime = null, string? password = null, string? callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1094,8 +1094,8 @@ namespace Example config.Password = "YOUR_PASSWORD"; var apiInstance = new FakeApi(config); - var number = 8.14D; // decimal | None - var varDouble = 1.2D; // double | None + var number = 8.14D; // decimal? | None + var varDouble = 1.2D; // double? | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) @@ -1146,8 +1146,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **number** | **decimal** | None | | -| **varDouble** | **double** | None | | +| **number** | **decimal?** | None | | +| **varDouble** | **double?** | None | | | **patternWithoutDelimiter** | **string** | None | | | **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | @@ -1287,7 +1287,7 @@ No authorization required # **TestGroupParameters** -> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) +> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) Fake endpoint to test group parameters (optional) @@ -1313,9 +1313,9 @@ namespace Example config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FakeApi(config); - var requiredStringGroup = 56; // int | Required String in group parameters - var requiredBooleanGroup = true; // bool | Required Boolean in group parameters - var requiredInt64Group = 789L; // long | Required Integer in group parameters + var requiredStringGroup = 56; // int? | Required String in group parameters + var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters + var requiredInt64Group = 789L; // long? | Required Integer in group parameters var stringGroup = 56; // int? | String in group parameters (optional) var booleanGroup = true; // bool? | Boolean in group parameters (optional) var int64Group = 789L; // long? | Integer in group parameters (optional) @@ -1357,9 +1357,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringGroup** | **int** | Required String in group parameters | | -| **requiredBooleanGroup** | **bool** | Required Boolean in group parameters | | -| **requiredInt64Group** | **long** | Required Integer in group parameters | | +| **requiredStringGroup** | **int?** | Required String in group parameters | | +| **requiredBooleanGroup** | **bool?** | Required Boolean in group parameters | | +| **requiredInt64Group** | **long?** | Required Integer in group parameters | | | **stringGroup** | **int?** | String in group parameters | [optional] | | **booleanGroup** | **bool?** | Boolean in group parameters | [optional] | | **int64Group** | **long?** | Integer in group parameters | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FormatTest.md index 14efa7b0f63e..9e843c513a22 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FormatTest.md @@ -4,21 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateOnly** | | -**DateTime** | **DateTime** | | [optional] -**Uuid** | **Guid** | | [optional] +**DateTime** | **DateTime?** | | [optional] +**Uuid** | **Guid?** | | [optional] **Password** | **string** | | **PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] **PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Fruit.md index 40df92d7c9b1..05aed3a2642b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FruitReq.md index 5db6b0e2d1d8..8f072a324cb0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/GmFruit.md index da7b3a6ccf9f..265348eca479 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Mammal.md index aab8f4db9c75..75172cd3d506 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MapTest.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MapTest.md index 516f9d4fd37e..07c245718f12 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MapTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MapTest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional] **MapOfEnumString** | **Dictionary<string, MapTest.InnerEnum>** | | [optional] -**DirectMap** | **Dictionary<string, bool>** | | [optional] -**IndirectMap** | **Dictionary<string, bool>** | | [optional] +**DirectMap** | **Dictionary<string, bool?>** | | [optional] +**IndirectMap** | **Dictionary<string, bool?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 050210a3e371..81d4a847dbe2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UuidWithPattern** | **Guid** | | [optional] -**Uuid** | **Guid** | | [optional] -**DateTime** | **DateTime** | | [optional] +**UuidWithPattern** | **Guid?** | | [optional] +**Uuid** | **Guid?** | | [optional] +**DateTime** | **DateTime?** | | [optional] **Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Model200Response.md index 31f4d86fe43d..820f058bf221 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Name.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Name.md index 3e19db154a80..e440a45f0ae1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NumberOnly.md index 14a7c0f1071b..1af131f829ec 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b..20391539c912 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Order.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Order.md index 66c55c3b4737..1202b46b44ce 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Order.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] **Status** | **string** | Order Status | [optional] -**Complete** | **bool** | | [optional] [default to false] +**Complete** | **bool?** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/OuterComposite.md index eb42bcc1aaa4..71ca9b879223 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Pet.md index c7224764e2d4..a54829f9a8e2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/PetApi.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/PetApi.md index 417e0ab80207..70c413f382de 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/PetApi.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/PetApi.md @@ -104,7 +104,7 @@ void (empty response body) # **DeletePet** -> void DeletePet (long petId, string? apiKey = null) +> void DeletePet (long? petId, string? apiKey = null) Deletes a pet @@ -128,7 +128,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | Pet id to delete + var petId = 789L; // long? | Pet id to delete var apiKey = "apiKey_example"; // string? | (optional) try @@ -168,7 +168,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | Pet id to delete | | +| **petId** | **long?** | Pet id to delete | | | **apiKey** | **string?** | | [optional] | ### Return type @@ -384,7 +384,7 @@ catch (ApiException e) # **GetPetById** -> Pet GetPetById (long petId) +> Pet GetPetById (long? petId) Find pet by ID @@ -416,7 +416,7 @@ namespace Example // config.AddApiKeyPrefix("api_key_query", "Bearer"); var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to return + var petId = 789L; // long? | ID of pet to return try { @@ -459,7 +459,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to return | | +| **petId** | **long?** | ID of pet to return | | ### Return type @@ -576,7 +576,7 @@ void (empty response body) # **UpdatePetWithForm** -> void UpdatePetWithForm (long petId, string? name = null, string? status = null) +> void UpdatePetWithForm (long? petId, string? name = null, string? status = null) Updates a pet in the store with form data @@ -600,7 +600,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet that needs to be updated + var petId = 789L; // long? | ID of pet that needs to be updated var name = "name_example"; // string? | Updated name of the pet (optional) var status = "status_example"; // string? | Updated status of the pet (optional) @@ -641,7 +641,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet that needs to be updated | | +| **petId** | **long?** | ID of pet that needs to be updated | | | **name** | **string?** | Updated name of the pet | [optional] | | **status** | **string?** | Updated status of the pet | [optional] | @@ -668,7 +668,7 @@ void (empty response body) # **UploadFile** -> ApiResponse UploadFile (long petId, string? additionalMetadata = null, System.IO.Stream? file = null) +> ApiResponse UploadFile (long? petId, string? additionalMetadata = null, System.IO.Stream? file = null) uploads an image @@ -692,7 +692,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var additionalMetadata = "additionalMetadata_example"; // string? | Additional data to pass to server (optional) var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | file to upload (optional) @@ -737,7 +737,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **additionalMetadata** | **string?** | Additional data to pass to server | [optional] | | **file** | **System.IO.Stream?****System.IO.Stream?** | file to upload | [optional] | @@ -764,7 +764,7 @@ catch (ApiException e) # **UploadFileWithRequiredFile** -> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string? additionalMetadata = null) +> ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string? additionalMetadata = null) uploads an image (required) @@ -788,7 +788,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var requiredFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload var additionalMetadata = "additionalMetadata_example"; // string? | Additional data to pass to server (optional) @@ -833,7 +833,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **requiredFile** | **System.IO.Stream****System.IO.Stream** | file to upload | | | **additionalMetadata** | **string?** | Additional data to pass to server | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RequiredClass.md index 685c1c51e031..50818ab5e018 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateOnly** | | **RequiredNotNullableDateProp** | **DateOnly** | | **NotRequiredNullableDateProp** | **DateOnly** | | [optional] @@ -23,15 +23,15 @@ Name | Type | Description | Notes **RequiredNotnullableDatetimeProp** | **DateTime** | | **RequiredNullableDatetimeProp** | **DateTime?** | | **NotrequiredNullableDatetimeProp** | **DateTime?** | | [optional] -**NotrequiredNotnullableDatetimeProp** | **DateTime** | | [optional] +**NotrequiredNotnullableDatetimeProp** | **DateTime?** | | [optional] **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] @@ -43,7 +43,7 @@ Name | Type | Description | Notes **RequiredNullableUuid** | **Guid?** | | **RequiredNotnullableUuid** | **Guid** | | **NotrequiredNullableUuid** | **Guid?** | | [optional] -**NotrequiredNotnullableUuid** | **Guid** | | [optional] +**NotrequiredNotnullableUuid** | **Guid?** | | [optional] **RequiredNullableArrayOfString** | **List<string>** | | **RequiredNotnullableArrayOfString** | **List<string>** | | **NotrequiredNullableArrayOfString** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Return.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Return.md index 052ac9190068..8eec64177930 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHash.md index 309b0c02615c..52bb81a7dab6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHash.md @@ -5,7 +5,7 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] +**RoleUuid** | **Guid?** | | [optional] **Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/SpecialModelName.md index 7f8ffca34fa1..6d9805d03479 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/StoreApi.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/StoreApi.md index 179da0ff637e..2d557c4cfa81 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/StoreApi.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/StoreApi.md @@ -99,7 +99,7 @@ No authorization required # **GetInventory** -> Dictionary<string, int> GetInventory () +> Dictionary<string, int?> GetInventory () Returns pet inventories by status @@ -131,7 +131,7 @@ namespace Example try { // Returns pet inventories by status - Dictionary result = apiInstance.GetInventory(); + Dictionary result = apiInstance.GetInventory(); Debug.WriteLine(result); } catch (ApiException e) @@ -152,7 +152,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Returns pet inventories by status - ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); + ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -169,7 +169,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**Dictionary** +**Dictionary** ### Authorization @@ -190,7 +190,7 @@ This endpoint does not need any parameter. # **GetOrderById** -> Order GetOrderById (long orderId) +> Order GetOrderById (long? orderId) Find purchase order by ID @@ -213,7 +213,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new StoreApi(config); - var orderId = 789L; // long | ID of pet that needs to be fetched + var orderId = 789L; // long? | ID of pet that needs to be fetched try { @@ -256,7 +256,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **orderId** | **long** | ID of pet that needs to be fetched | | +| **orderId** | **long?** | ID of pet that needs to be fetched | | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Tag.md index fdd22eb31fdd..f86abfc26e02 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/User.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/User.md index b0cd4dc042bf..da9b34219d84 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Whale.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Whale.md index 5fc3dc7f85c2..a1512d751e8e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/DefaultApi.cs index 54f3d2e41a93..2e22006cf95b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -73,8 +73,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - List Hello(int operationIndex = 0); + /// List<Guid?> + List Hello(int operationIndex = 0); /// /// Hello @@ -84,8 +84,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - ApiResponse> HelloWithHttpInfo(int operationIndex = 0); + /// ApiResponse of List<Guid?> + ApiResponse> HelloWithHttpInfo(int operationIndex = 0); /// /// /// @@ -188,8 +188,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<Guid?> + System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hello @@ -200,8 +200,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<Guid?>) + System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -641,10 +641,10 @@ public Org.OpenAPITools.Client.ApiResponse GetCountryWithHttpInfo(string /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - public List Hello(int operationIndex = 0) + /// List<Guid?> + public List Hello(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); return localVarResponse.Data; } @@ -653,8 +653,8 @@ public List Hello(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) + /// ApiResponse of List<Guid?> + public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -684,7 +684,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("Hello", localVarResponse); @@ -703,10 +703,10 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<Guid?> + public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -716,8 +716,8 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<Guid?>) + public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -748,7 +748,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs index 8fc96497aa05..16b0b565d436 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/FakeApi.cs @@ -54,8 +54,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); + /// bool? + bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); /// /// @@ -66,8 +66,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); + /// ApiResponse of bool? + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); /// /// /// @@ -100,8 +100,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); + /// decimal? + decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); /// /// @@ -112,8 +112,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); + /// ApiResponse of decimal? + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); /// /// /// @@ -125,7 +125,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0); + string FakeOuterStringSerialize(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0); /// /// @@ -138,7 +138,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0); /// /// Array of Enums /// @@ -304,7 +304,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); + void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -329,7 +329,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); /// /// To test enum parameters /// @@ -382,7 +382,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// Fake endpoint to test group parameters (optional) @@ -399,7 +399,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// test inline additionalProperties /// @@ -563,8 +563,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of bool? + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -576,8 +576,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (bool?) + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -613,8 +613,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of decimal? + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -626,8 +626,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (decimal?) + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -640,7 +640,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -654,7 +654,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Array of Enums /// @@ -850,7 +850,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -876,7 +876,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -932,7 +932,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint to test group parameters (optional) @@ -950,7 +950,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// test inline additionalProperties /// @@ -1346,10 +1346,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) + /// bool? + public bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1359,8 +1359,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) + /// ApiResponse of bool? + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1392,7 +1392,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterBooleanSerialize", localVarResponse); @@ -1412,10 +1412,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of bool? + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1426,8 +1426,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (bool?) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1460,7 +1460,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1614,10 +1614,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) + /// decimal? + public decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1627,8 +1627,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) + /// ApiResponse of decimal? + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1660,7 +1660,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterNumberSerialize", localVarResponse); @@ -1680,10 +1680,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of decimal? + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1694,8 +1694,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (decimal?) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1728,7 +1728,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1750,7 +1750,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0) + public string FakeOuterStringSerialize(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); return localVarResponse.Data; @@ -1764,8 +1764,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1819,7 +1825,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1834,8 +1840,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2870,7 +2882,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) + public void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) { TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } @@ -2895,8 +2907,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3021,7 +3045,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3047,8 +3071,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3386,7 +3422,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -3403,8 +3439,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -3479,7 +3533,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3497,8 +3551,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/PetApi.cs index 848cd61975b4..a5e3060f0808 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/PetApi.cs @@ -55,7 +55,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// - void DeletePet(long petId, string? apiKey = default(string?), int operationIndex = 0); + void DeletePet(long? petId, string? apiKey = default(string?), int operationIndex = 0); /// /// Deletes a pet @@ -68,7 +68,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string? apiKey = default(string?), int operationIndex = 0); + ApiResponse DeletePetWithHttpInfo(long? petId, string? apiKey = default(string?), int operationIndex = 0); /// /// Finds Pets by status /// @@ -127,7 +127,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// Pet - Pet GetPetById(long petId, int operationIndex = 0); + Pet GetPetById(long? petId, int operationIndex = 0); /// /// Find pet by ID @@ -139,7 +139,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0); + ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0); /// /// Update an existing pet /// @@ -169,7 +169,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// - void UpdatePetWithForm(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0); + void UpdatePetWithForm(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0); /// /// Updates a pet in the store with form data @@ -183,7 +183,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0); + ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0); /// /// uploads an image /// @@ -193,7 +193,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFile(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0); + ApiResponse UploadFile(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0); /// /// uploads an image @@ -207,7 +207,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0); + ApiResponse UploadFileWithHttpInfo(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0); /// /// uploads an image (required) /// @@ -217,7 +217,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0); /// /// uploads an image (required) @@ -231,7 +231,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -278,7 +278,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long? petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Deletes a pet @@ -292,7 +292,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Finds Pets by status /// @@ -356,7 +356,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find pet by ID @@ -369,7 +369,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an existing pet /// @@ -408,7 +408,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Updates a pet in the store with form data @@ -423,7 +423,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image /// @@ -437,7 +437,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image @@ -452,7 +452,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) /// @@ -466,7 +466,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) @@ -481,7 +481,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -818,7 +818,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// - public void DeletePet(long petId, string? apiKey = default(string?), int operationIndex = 0) + public void DeletePet(long? petId, string? apiKey = default(string?), int operationIndex = 0) { DeletePetWithHttpInfo(petId, apiKey); } @@ -831,8 +831,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string? apiKey = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long? petId, string? apiKey = default(string?), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -903,7 +909,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long? petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeletePetWithHttpInfoAsync(petId, apiKey, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -917,8 +923,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1413,7 +1425,7 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// ID of pet to return /// Index associated with the operation. /// Pet - public Pet GetPetById(long petId, int operationIndex = 0) + public Pet GetPetById(long? petId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); return localVarResponse.Data; @@ -1426,8 +1438,14 @@ public Pet GetPetById(long petId, int operationIndex = 0) /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1489,7 +1507,7 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1503,8 +1521,14 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1777,7 +1801,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// - public void UpdatePetWithForm(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0) + public void UpdatePetWithForm(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0) { UpdatePetWithFormWithHttpInfo(petId, name, status); } @@ -1791,8 +1815,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1869,7 +1899,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1884,8 +1914,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1963,7 +1999,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFile(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0) + public ApiResponse UploadFile(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); return localVarResponse.Data; @@ -1978,8 +2014,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -2057,7 +2099,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2073,8 +2115,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2153,7 +2201,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0) + public ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResponse.Data; @@ -2168,8 +2216,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { @@ -2251,7 +2305,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2267,8 +2321,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/StoreApi.cs index e8882b0fc2e4..d70c41ee64bf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Api/StoreApi.cs @@ -58,8 +58,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - Dictionary GetInventory(int operationIndex = 0); + /// Dictionary<string, int?> + Dictionary GetInventory(int operationIndex = 0); /// /// Returns pet inventories by status @@ -69,8 +69,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); + /// ApiResponse of Dictionary<string, int?> + ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); /// /// Find purchase order by ID /// @@ -81,7 +81,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - Order GetOrderById(long orderId, int operationIndex = 0); + Order GetOrderById(long? orderId, int operationIndex = 0); /// /// Find purchase order by ID @@ -93,7 +93,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0); + ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0); /// /// Place an order for a pet /// @@ -157,8 +157,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of Dictionary<string, int?> + System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Returns pet inventories by status @@ -169,8 +169,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (Dictionary<string, int?>) + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID /// @@ -182,7 +182,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID @@ -195,7 +195,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Place an order for a pet /// @@ -486,10 +486,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - public Dictionary GetInventory(int operationIndex = 0) + /// Dictionary<string, int?> + public Dictionary GetInventory(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); return localVarResponse.Data; } @@ -498,8 +498,8 @@ public Dictionary GetInventory(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) + /// ApiResponse of Dictionary<string, int?> + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -534,7 +534,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse); @@ -553,10 +553,10 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of Dictionary<string, int?> + public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -566,8 +566,8 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (Dictionary<string, int?>) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -603,7 +603,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -624,7 +624,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - public Order GetOrderById(long orderId, int operationIndex = 0) + public Order GetOrderById(long? orderId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); return localVarResponse.Data; @@ -637,8 +637,14 @@ public Order GetOrderById(long orderId, int operationIndex = 0) /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -690,7 +696,7 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -704,8 +710,14 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1f..2fe81b88e769 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -38,7 +38,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// code. /// type. /// message. - public ApiResponse(int code = default(int), string type = default(string), string message = default(string)) + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; this.Type = type; @@ -50,7 +50,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -124,7 +124,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e3..97e5fd1574b4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ protected AppleReq() { } /// /// cultivar (required). /// mealy. - public AppleReq(string cultivar = default(string), bool mealy = default(bool)) + public AppleReq(string cultivar = default(string), bool? mealy = default(bool?)) { // to ensure "cultivar" is required (not null) if (cultivar == null) @@ -63,7 +63,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -121,7 +121,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 3e1666ca90f8..c360a39a785e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// arrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { this.ArrayArrayNumber = arrayArrayNumber; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable [DataMember(Name = "ArrayArrayNumber", EmitDefaultValue = false)] - public List> ArrayArrayNumber { get; set; } + public List> ArrayArrayNumber { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index f2946f435b53..738d58a1fc98 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Initializes a new instance of the class. /// /// arrayNumber. - public ArrayOfNumberOnly(List arrayNumber = default(List)) + public ArrayOfNumberOnly(List arrayNumber = default(List)) { this.ArrayNumber = arrayNumber; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Gets or Sets ArrayNumber /// [DataMember(Name = "ArrayNumber", EmitDefaultValue = false)] - public List ArrayNumber { get; set; } + public List ArrayNumber { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayTest.cs index 343e486f6575..17f688b2d87f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -38,7 +38,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// arrayOfString. /// arrayArrayOfInteger. /// arrayArrayOfModel. - public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; this.ArrayArrayOfInteger = arrayArrayOfInteger; @@ -56,7 +56,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// Gets or Sets ArrayArrayOfInteger /// [DataMember(Name = "array_array_of_integer", EmitDefaultValue = false)] - public List> ArrayArrayOfInteger { get; set; } + public List> ArrayArrayOfInteger { get; set; } /// /// Gets or Sets ArrayArrayOfModel diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..661739ae18e5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs @@ -36,7 +36,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// lengthCm. - public Banana(decimal lengthCm = default(decimal)) + public Banana(decimal? lengthCm = default(decimal?)) { this.LengthCm = lengthCm; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80..6901cc0d18e3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ protected BananaReq() { } /// /// lengthCm (required). /// sweet. - public BananaReq(decimal lengthCm = default(decimal), bool sweet = default(bool)) + public BananaReq(decimal lengthCm = default(decimal), bool? sweet = default(bool?)) { this.LengthCm = lengthCm; this.Sweet = sweet; @@ -58,7 +58,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -113,7 +113,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs index a427b55727d7..ff6135f34289 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Cat.cs @@ -48,7 +48,7 @@ protected Cat() /// declawed. /// className (required) (default to "Cat"). /// color (default to "red"). - public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color) + public Cat(bool? declawed = default(bool?), string className = @"Cat", string color = @"red") : base(className, color) { this.Declawed = declawed; this.AdditionalProperties = new Dictionary(); @@ -58,7 +58,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Gets or Sets additional properties @@ -119,7 +119,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4a..ceab7f116b8e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Category.cs @@ -45,7 +45,7 @@ protected Category() /// /// id. /// name (required) (default to "default-name"). - public Category(long id = default(long), string name = @"default-name") + public Category(long? id = default(long?), string name = @"default-name") { // to ensure "name" is required (not null) if (name == null) @@ -61,7 +61,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -128,7 +128,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954ea..e7eef0d94a37 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/EnumTest.cs @@ -179,6 +179,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs index 8cac7d740ff8..8a54522dadd5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FormatTest.cs @@ -62,7 +62,7 @@ protected FormatTest() /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateOnly date = default(DateOnly), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int? integer = default(int?), int? int32 = default(int?), uint? unsignedInteger = default(uint?), long? int64 = default(long?), ulong? unsignedLong = default(ulong?), decimal number = default(decimal), float? varFloat = default(float?), double? varDouble = default(double?), decimal? varDecimal = default(decimal?), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateOnly date = default(DateOnly), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; // to ensure "varByte" is required (not null) @@ -105,31 +105,31 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -141,19 +141,19 @@ protected FormatTest() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -185,14 +185,14 @@ protected FormatTest() /// /// 2007-12-03T10:15:30+01:00 [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Uuid /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets Password @@ -297,15 +297,39 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -361,38 +385,38 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -409,26 +433,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MapTest.cs index 691f128ea5fb..a67ae46eed35 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MapTest.cs @@ -58,7 +58,7 @@ public enum InnerEnum /// mapOfEnumString. /// directMap. /// indirectMap. - public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) { this.MapMapOfString = mapMapOfString; this.MapOfEnumString = mapOfEnumString; @@ -83,13 +83,13 @@ public enum InnerEnum /// Gets or Sets DirectMap /// [DataMember(Name = "direct_map", EmitDefaultValue = false)] - public Dictionary DirectMap { get; set; } + public Dictionary DirectMap { get; set; } /// /// Gets or Sets IndirectMap /// [DataMember(Name = "indirect_map", EmitDefaultValue = false)] - public Dictionary IndirectMap { get; set; } + public Dictionary IndirectMap { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 49e94cc5e5db..0c1e37574cf0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -48,10 +48,10 @@ public MixedAnyOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedAnyOfContent(bool actualInstance) + /// An instance of bool?. + public MixedAnyOfContent(bool? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -60,10 +60,10 @@ public MixedAnyOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedAnyOfContent(int actualInstance) + /// An instance of int?. + public MixedAnyOfContent(int? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -72,10 +72,10 @@ public MixedAnyOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedAnyOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedAnyOfContent(decimal? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { _actualInstance = value; } - else if (value.GetType() == typeof(bool)) + else if (value.GetType() == typeof(bool?)) { _actualInstance = value; } - else if (value.GetType() == typeof(decimal)) + else if (value.GetType() == typeof(decimal?)) { _actualInstance = value; } - else if (value.GetType() == typeof(int)) + else if (value.GetType() == typeof(int?)) { _actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)ActualInstance; + return (bool?)ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)ActualInstance; + return (int?)ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)ActualInstance; + return (decimal?)ActualInstance; } /// @@ -235,38 +235,38 @@ public static MixedAnyOfContent FromJson(string jsonString) try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index e2527cc3c315..9ef03c99ae1f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -48,10 +48,10 @@ public MixedOneOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedOneOfContent(bool actualInstance) + /// An instance of bool?. + public MixedOneOfContent(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -60,10 +60,10 @@ public MixedOneOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedOneOfContent(int actualInstance) + /// An instance of int?. + public MixedOneOfContent(int? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -72,10 +72,10 @@ public MixedOneOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedOneOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedOneOfContent(decimal? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } - else if (value.GetType() == typeof(decimal) || value is decimal) + else if (value.GetType() == typeof(decimal?) || value is decimal?) { this._actualInstance = value; } - else if (value.GetType() == typeof(int) || value is int) + else if (value.GetType() == typeof(int?) || value is int?) { this._actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)this.ActualInstance; + return (int?)this.ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)this.ActualInstance; + return (decimal?)this.ActualInstance; } /// @@ -246,61 +246,61 @@ public static MixedOneOfContent FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(decimal).GetProperty("AdditionalProperties") == null) + if (typeof(decimal?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("decimal"); + matchedTypes.Add("decimal?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(int).GetProperty("AdditionalProperties") == null) + if (typeof(int?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("int"); + matchedTypes.Add("int?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 5f51e31aa034..2d6665a3fd5c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -39,7 +39,7 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableuuid. /// dateTime. /// map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid uuidWithPattern = default(Guid), Guid uuid = default(Guid), DateTime dateTime = default(DateTime), Dictionary map = default(Dictionary)) + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuidWithPattern = default(Guid?), Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.UuidWithPattern = uuidWithPattern; this.Uuid = uuid; @@ -52,19 +52,19 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable [DataMember(Name = "uuid_with_pattern", EmitDefaultValue = false)] - public Guid UuidWithPattern { get; set; } + public Guid? UuidWithPattern { get; set; } /// /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets DateTime /// [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Map @@ -165,7 +165,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.UuidWithPattern != null) { - // UuidWithPattern (Guid) pattern + // UuidWithPattern (Guid?) pattern Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e754..ee546305b2f2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Model200Response.cs @@ -37,7 +37,7 @@ public partial class Model200Response : IEquatable, IValidatab /// /// name. /// varClass. - public Model200Response(int name = default(int), string varClass = default(string)) + public Model200Response(int? name = default(int?), string varClass = default(string)) { this.Name = name; this.Class = varClass; @@ -48,7 +48,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c..69938e7b7c61 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Name.cs @@ -62,7 +62,7 @@ protected Name() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -82,7 +82,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -154,12 +154,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb0..3bccec432a60 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -39,7 +39,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// justNumber. - public NumberOnly(decimal justNumber = default(decimal)) + public NumberOnly(decimal? justNumber = default(decimal?)) { this.JustNumber = justNumber; this.AdditionalProperties = new Dictionary(); @@ -49,7 +49,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Gets or Sets additional properties @@ -109,7 +109,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86..867e47627c1a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -39,7 +39,7 @@ public partial class ObjectWithDeprecatedFields : IEquatableid. /// deprecatedRef. /// bars. - public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) + public ObjectWithDeprecatedFields(string uuid = default(string), decimal? id = default(decimal?), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) { this.Uuid = uuid; this.Id = id; @@ -59,7 +59,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -140,7 +140,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs index 22c7153ace7b..56466d0ba528 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Order.cs @@ -74,14 +74,15 @@ public enum StatusEnum /// shipDate. /// Order Status. /// complete (default to false). - public Order(long id = default(long), long petId = default(long), int quantity = default(int), DateTime shipDate = default(DateTime), StatusEnum? status = default(StatusEnum?), bool complete = false) + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { this.Id = id; this.PetId = petId; this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - this.Complete = complete; + // use default value if no "complete" provided + this.Complete = complete ?? false; this.AdditionalProperties = new Dictionary(); } @@ -89,32 +90,32 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate /// /// 2020-02-02T20:20:20.000222Z [DataMember(Name = "shipDate", EmitDefaultValue = false)] - public DateTime ShipDate { get; set; } + public DateTime? ShipDate { get; set; } /// /// Gets or Sets Complete /// [DataMember(Name = "complete", EmitDefaultValue = true)] - public bool Complete { get; set; } + public bool? Complete { get; set; } /// /// Gets or Sets additional properties @@ -179,15 +180,27 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); } hashCode = (hashCode * 59) + this.Status.GetHashCode(); - hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + if (this.Complete != null) + { + hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f..35dfdce59861 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -38,7 +38,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// myNumber. /// myString. /// myBoolean. - public OuterComposite(decimal myNumber = default(decimal), string myString = default(string), bool myBoolean = default(bool)) + public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?)) { this.MyNumber = myNumber; this.MyString = myString; @@ -50,7 +50,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -62,7 +62,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Gets or Sets additional properties @@ -124,12 +124,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs index e4722f4a5379..55b6fbe49e98 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Pet.cs @@ -82,7 +82,7 @@ protected Pet() /// photoUrls (required). /// tags. /// pet status in the store. - public Pet(long id = default(long), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { // to ensure "name" is required (not null) if (name == null) @@ -107,7 +107,7 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -197,7 +197,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 5e4472118140..09dd24285e98 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -36,10 +36,10 @@ public partial class PolymorphicProperty : AbstractOpenAPISchema, IEquatable /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public PolymorphicProperty(bool actualInstance) + /// An instance of bool?. + public PolymorphicProperty(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -104,7 +104,7 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } @@ -114,19 +114,19 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool?, string"); } } } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// @@ -240,21 +240,21 @@ public static PolymorphicProperty FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); } else { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs index d8230f423177..54eb06df428a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -57,7 +57,7 @@ public enum RequiredNullableEnumIntegerEnum /// /// Defines RequiredNotnullableEnumInteger /// - public enum RequiredNotnullableEnumIntegerEnum + public enum RequiredNotnullableEnumIntegerEnu { /// /// Enum NUMBER_1 for value: 1 @@ -75,7 +75,7 @@ public enum RequiredNotnullableEnumIntegerEnum /// Gets or Sets RequiredNotnullableEnumInteger /// [DataMember(Name = "required_notnullable_enum_integer", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerEnum RequiredNotnullableEnumInteger { get; set; } + public RequiredNotnullableEnumIntegerEnu RequiredNotnullableEnumInteger { get; set; } /// /// Defines NotrequiredNullableEnumInteger /// @@ -146,7 +146,7 @@ public enum RequiredNullableEnumIntegerOnlyEnum /// /// Defines RequiredNotnullableEnumIntegerOnly /// - public enum RequiredNotnullableEnumIntegerOnlyEnum + public enum RequiredNotnullableEnumIntegerOnlyEnu { /// /// Enum NUMBER_2 for value: 2 @@ -164,7 +164,7 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// [DataMember(Name = "required_notnullable_enum_integer_only", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerOnlyEnum RequiredNotnullableEnumIntegerOnly { get; set; } + public RequiredNotnullableEnumIntegerOnlyEnu RequiredNotnullableEnumIntegerOnly { get; set; } /// /// Defines NotrequiredNullableEnumIntegerOnly /// @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -533,7 +534,7 @@ protected RequiredClass() /// requiredNotnullableArrayOfString (required). /// notrequiredNullableArrayOfString. /// notrequiredNotnullableArrayOfString. - public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int notRequiredNotnullableintegerProp = default(int), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool notrequiredNotnullableBooleanProp = default(bool), DateOnly requiredNullableDateProp = default(DateOnly), DateOnly requiredNotNullableDateProp = default(DateOnly), DateOnly notRequiredNullableDateProp = default(DateOnly), DateOnly notRequiredNotnullableDateProp = default(DateOnly), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime notrequiredNotnullableDatetimeProp = default(DateTime), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnum requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnum), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnum requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnum), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid notrequiredNotnullableUuid = default(Guid), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) + public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int? notRequiredNotnullableintegerProp = default(int?), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool? notrequiredNotnullableBooleanProp = default(bool?), DateOnly requiredNullableDateProp = default(DateOnly), DateOnly requiredNotNullableDateProp = default(DateOnly), DateOnly notRequiredNullableDateProp = default(DateOnly), DateOnly notRequiredNotnullableDateProp = default(DateOnly), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNotnullableDatetimeProp = default(DateTime?), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnu requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnu), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnu requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnu), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid? notrequiredNotnullableUuid = default(Guid?), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) { // to ensure "requiredNullableIntegerProp" is required (not null) if (requiredNullableIntegerProp == null) @@ -654,7 +655,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -702,7 +703,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -750,7 +751,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [DataMember(Name = "notrequired_notnullable_datetime_prop", EmitDefaultValue = false)] - public DateTime NotrequiredNotnullableDatetimeProp { get; set; } + public DateTime? NotrequiredNotnullableDatetimeProp { get; set; } /// /// Gets or Sets RequiredNullableUuid @@ -778,7 +779,7 @@ protected RequiredClass() /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "notrequired_notnullable_uuid", EmitDefaultValue = false)] - public Guid NotrequiredNotnullableUuid { get; set; } + public Guid? NotrequiredNotnullableUuid { get; set; } /// /// Gets or Sets RequiredNullableArrayOfString @@ -914,7 +915,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -940,7 +944,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82..cd5db81f763f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Return.cs @@ -36,7 +36,7 @@ public partial class Return : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// varReturn. - public Return(int varReturn = default(int)) + public Return(int? varReturn = default(int?)) { this.VarReturn = varReturn; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class Return : IEquatable, IValidatableObject /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 4523238ad385..87943e6b750c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -37,7 +37,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// /// roleUuid. /// role. - public RolesReportsHash(Guid roleUuid = default(Guid), RolesReportsHashRole role = default(RolesReportsHashRole)) + public RolesReportsHash(Guid? roleUuid = default(Guid?), RolesReportsHashRole role = default(RolesReportsHashRole)) { this.RoleUuid = roleUuid; this.Role = role; @@ -48,7 +48,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// Gets or Sets RoleUuid /// [DataMember(Name = "role_uuid", EmitDefaultValue = false)] - public Guid RoleUuid { get; set; } + public Guid? RoleUuid { get; set; } /// /// Gets or Sets Role diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f..6210c3f1e1f5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -37,7 +37,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// /// specialPropertyName. /// varSpecialModelName. - public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) + public SpecialModelName(long? specialPropertyName = default(long?), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; this.VarSpecialModelName = varSpecialModelName; @@ -48,7 +48,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15..4e6fd30d63c4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Tag.cs @@ -37,7 +37,7 @@ public partial class Tag : IEquatable, IValidatableObject /// /// id. /// name. - public Tag(long id = default(long), string name = default(string)) + public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; this.Name = name; @@ -48,7 +48,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs index b7911507a704..486d09dd9180 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/User.cs @@ -47,7 +47,7 @@ public partial class User : IEquatable, IValidatableObject /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value.. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values.. - public User(long id = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int userStatus = default(int), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) { this.Id = id; this.Username = username; @@ -68,7 +68,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -111,7 +111,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -210,7 +210,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -235,7 +238,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e76..fc488c4ca229 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Whale.cs @@ -46,7 +46,7 @@ protected Whale() /// hasBaleen. /// hasTeeth. /// className (required). - public Whale(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string)) + public Whale(bool? hasBaleen = default(bool?), bool? hasTeeth = default(bool?), string className = default(string)) { // to ensure "className" is required (not null) if (className == null) @@ -63,13 +63,13 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -137,8 +137,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ApiResponse.md index bb723d2baa13..faacf536f173 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AppleReq.md index 005b8f8058a4..bb7b7576dc2e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayOfArrayOfNumberOnly.md index 4764c0ff80c5..fb113074d3f2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayArrayNumber** | **List<List<decimal>>** | | [optional] +**ArrayArrayNumber** | **List<List<decimal?>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayOfNumberOnly.md index d93717103b8b..30e148e05489 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayNumber** | **List<decimal>** | | [optional] +**ArrayNumber** | **List<decimal?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayTest.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayTest.md index d74d11bae77d..89094d5e895c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ArrayTest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ArrayOfString** | **List<string>** | | [optional] -**ArrayArrayOfInteger** | **List<List<long>>** | | [optional] +**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional] **ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Banana.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Banana.md index 226952d1cecb..72cbdcf0af0b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/BananaReq.md index f99aab99e387..2bf39b773a66 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Cat.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Cat.md index aa1ac17604eb..d41c6ec6eb65 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Category.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Category.md index 032a1faeb3ff..bdbe5ac5a483 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DefaultApi.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DefaultApi.md index d9d4abc6ebbc..775590ae8779 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DefaultApi.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DefaultApi.md @@ -177,7 +177,7 @@ No authorization required # **Hello** -> List<Guid> Hello () +> List<Guid?> Hello () Hello @@ -204,7 +204,7 @@ namespace Example try { // Hello - List result = apiInstance.Hello(); + List result = apiInstance.Hello(); Debug.WriteLine(result); } catch (ApiException e) @@ -225,7 +225,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Hello - ApiResponse> response = apiInstance.HelloWithHttpInfo(); + ApiResponse> response = apiInstance.HelloWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -242,7 +242,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**List** +**List** ### Authorization diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumTest.md index 5ce3c4addd9b..66cc8c6d245e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FakeApi.md index 933fb1c7cad3..c057828a1f7a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FakeApi.md @@ -111,7 +111,7 @@ No authorization required # **FakeOuterBooleanSerialize** -> bool FakeOuterBooleanSerialize (bool? body = null) +> bool? FakeOuterBooleanSerialize (bool? body = null) @@ -138,7 +138,7 @@ namespace Example try { - bool result = apiInstance.FakeOuterBooleanSerialize(body); + bool? result = apiInstance.FakeOuterBooleanSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -158,7 +158,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -179,7 +179,7 @@ catch (ApiException e) ### Return type -**bool** +**bool?** ### Authorization @@ -289,7 +289,7 @@ No authorization required # **FakeOuterNumberSerialize** -> decimal FakeOuterNumberSerialize (decimal? body = null) +> decimal? FakeOuterNumberSerialize (decimal? body = null) @@ -316,7 +316,7 @@ namespace Example try { - decimal result = apiInstance.FakeOuterNumberSerialize(body); + decimal? result = apiInstance.FakeOuterNumberSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -336,7 +336,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -357,7 +357,7 @@ catch (ApiException e) ### Return type -**decimal** +**decimal?** ### Authorization @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string? body = null) +> string FakeOuterStringSerialize (Guid? requiredStringUuid, string? body = null) @@ -401,7 +401,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); - var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String + var requiredStringUuid = "requiredStringUuid_example"; // Guid? | Required UUID String var body = "body_example"; // string? | Input string as post body (optional) try @@ -443,7 +443,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringUuid** | **Guid** | Required UUID String | | +| **requiredStringUuid** | **Guid?** | Required UUID String | | | **body** | **string?** | Input string as post body | [optional] | ### Return type @@ -1067,7 +1067,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string? varString = null, System.IO.Stream? binary = null, DateOnly? date = null, DateTime? dateTime = null, string? password = null, string? callback = null) +> void TestEndpointParameters (decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string? varString = null, System.IO.Stream? binary = null, DateOnly? date = null, DateTime? dateTime = null, string? password = null, string? callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1094,8 +1094,8 @@ namespace Example config.Password = "YOUR_PASSWORD"; var apiInstance = new FakeApi(config); - var number = 8.14D; // decimal | None - var varDouble = 1.2D; // double | None + var number = 8.14D; // decimal? | None + var varDouble = 1.2D; // double? | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) @@ -1146,8 +1146,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **number** | **decimal** | None | | -| **varDouble** | **double** | None | | +| **number** | **decimal?** | None | | +| **varDouble** | **double?** | None | | | **patternWithoutDelimiter** | **string** | None | | | **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | @@ -1287,7 +1287,7 @@ No authorization required # **TestGroupParameters** -> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) +> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) Fake endpoint to test group parameters (optional) @@ -1313,9 +1313,9 @@ namespace Example config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FakeApi(config); - var requiredStringGroup = 56; // int | Required String in group parameters - var requiredBooleanGroup = true; // bool | Required Boolean in group parameters - var requiredInt64Group = 789L; // long | Required Integer in group parameters + var requiredStringGroup = 56; // int? | Required String in group parameters + var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters + var requiredInt64Group = 789L; // long? | Required Integer in group parameters var stringGroup = 56; // int? | String in group parameters (optional) var booleanGroup = true; // bool? | Boolean in group parameters (optional) var int64Group = 789L; // long? | Integer in group parameters (optional) @@ -1357,9 +1357,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringGroup** | **int** | Required String in group parameters | | -| **requiredBooleanGroup** | **bool** | Required Boolean in group parameters | | -| **requiredInt64Group** | **long** | Required Integer in group parameters | | +| **requiredStringGroup** | **int?** | Required String in group parameters | | +| **requiredBooleanGroup** | **bool?** | Required Boolean in group parameters | | +| **requiredInt64Group** | **long?** | Required Integer in group parameters | | | **stringGroup** | **int?** | String in group parameters | [optional] | | **booleanGroup** | **bool?** | Boolean in group parameters | [optional] | | **int64Group** | **long?** | Integer in group parameters | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FormatTest.md index 2fe92b2cac89..7fcc424e20c5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FormatTest.md @@ -4,26 +4,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**Int32Range** | **int** | | [optional] -**Int64Positive** | **long** | | [optional] -**Int64Negative** | **long** | | [optional] -**Int64PositiveExclusive** | **long** | | [optional] -**Int64NegativeExclusive** | **long** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**Int32Range** | **int?** | | [optional] +**Int64Positive** | **int?** | | [optional] +**Int64Negative** | **int?** | | [optional] +**Int64PositiveExclusive** | **int?** | | [optional] +**Int64NegativeExclusive** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateOnly** | | -**DateTime** | **DateTime** | | [optional] -**Uuid** | **Guid** | | [optional] +**DateTime** | **DateTime?** | | [optional] +**Uuid** | **Guid?** | | [optional] **Password** | **string** | | **PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] **PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Fruit.md index 40df92d7c9b1..05aed3a2642b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FruitReq.md index 5db6b0e2d1d8..8f072a324cb0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/GmFruit.md index da7b3a6ccf9f..265348eca479 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Mammal.md index aab8f4db9c75..75172cd3d506 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MapTest.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MapTest.md index 516f9d4fd37e..07c245718f12 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MapTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MapTest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional] **MapOfEnumString** | **Dictionary<string, MapTest.InnerEnum>** | | [optional] -**DirectMap** | **Dictionary<string, bool>** | | [optional] -**IndirectMap** | **Dictionary<string, bool>** | | [optional] +**DirectMap** | **Dictionary<string, bool?>** | | [optional] +**IndirectMap** | **Dictionary<string, bool?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixLog.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixLog.md index 1872e30daaa3..59943e8898e5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixLog.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixLog.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **Guid** | | **Description** | **string** | | **MixDate** | **DateTime** | | -**ShopId** | **Guid** | | [optional] +**ShopId** | **Guid?** | | [optional] **TotalPrice** | **float?** | | [optional] **TotalRecalculations** | **int** | | **TotalOverPoors** | **int** | | @@ -35,7 +35,7 @@ Name | Type | Description | Notes **PrimerProductId** | **string** | | [optional] **ProductId** | **string** | ProductId is only required for color mixes | [optional] **ProductName** | **string** | ProductName is only required for color mixes | [optional] -**SelectedVersionIndex** | **int** | | [optional] +**SelectedVersionIndex** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 050210a3e371..81d4a847dbe2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UuidWithPattern** | **Guid** | | [optional] -**Uuid** | **Guid** | | [optional] -**DateTime** | **DateTime** | | [optional] +**UuidWithPattern** | **Guid?** | | [optional] +**Uuid** | **Guid?** | | [optional] +**DateTime** | **DateTime?** | | [optional] **Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Model200Response.md index 31f4d86fe43d..820f058bf221 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Name.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Name.md index 3e19db154a80..e440a45f0ae1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NumberOnly.md index 14a7c0f1071b..1af131f829ec 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b..20391539c912 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Order.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Order.md index 66c55c3b4737..1202b46b44ce 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Order.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] **Status** | **string** | Order Status | [optional] -**Complete** | **bool** | | [optional] [default to false] +**Complete** | **bool?** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/OuterComposite.md index eb42bcc1aaa4..71ca9b879223 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Pet.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Pet.md index c7224764e2d4..a54829f9a8e2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/PetApi.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/PetApi.md index 249bc72ed0fe..c39f0e6155c9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/PetApi.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/PetApi.md @@ -104,7 +104,7 @@ void (empty response body) # **DeletePet** -> void DeletePet (long petId, string? apiKey = null) +> void DeletePet (long? petId, string? apiKey = null) Deletes a pet @@ -128,7 +128,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | Pet id to delete + var petId = 789L; // long? | Pet id to delete var apiKey = "apiKey_example"; // string? | (optional) try @@ -168,7 +168,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | Pet id to delete | | +| **petId** | **long?** | Pet id to delete | | | **apiKey** | **string?** | | [optional] | ### Return type @@ -386,7 +386,7 @@ catch (ApiException e) # **GetPetById** -> Pet GetPetById (long petId) +> Pet GetPetById (long? petId) Find pet by ID @@ -418,7 +418,7 @@ namespace Example // config.AddApiKeyPrefix("api_key_query", "Bearer"); var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to return + var petId = 789L; // long? | ID of pet to return try { @@ -461,7 +461,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to return | | +| **petId** | **long?** | ID of pet to return | | ### Return type @@ -578,7 +578,7 @@ void (empty response body) # **UpdatePetWithForm** -> void UpdatePetWithForm (long petId, string? name = null, string? status = null) +> void UpdatePetWithForm (long? petId, string? name = null, string? status = null) Updates a pet in the store with form data @@ -602,7 +602,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet that needs to be updated + var petId = 789L; // long? | ID of pet that needs to be updated var name = "name_example"; // string? | Updated name of the pet (optional) var status = "status_example"; // string? | Updated status of the pet (optional) @@ -643,7 +643,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet that needs to be updated | | +| **petId** | **long?** | ID of pet that needs to be updated | | | **name** | **string?** | Updated name of the pet | [optional] | | **status** | **string?** | Updated status of the pet | [optional] | @@ -670,7 +670,7 @@ void (empty response body) # **UploadFile** -> ApiResponse UploadFile (long petId, string? additionalMetadata = null, System.IO.Stream? file = null) +> ApiResponse UploadFile (long? petId, string? additionalMetadata = null, System.IO.Stream? file = null) uploads an image @@ -694,7 +694,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var additionalMetadata = "additionalMetadata_example"; // string? | Additional data to pass to server (optional) var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream? | file to upload (optional) @@ -739,7 +739,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **additionalMetadata** | **string?** | Additional data to pass to server | [optional] | | **file** | **System.IO.Stream?****System.IO.Stream?** | file to upload | [optional] | @@ -766,7 +766,7 @@ catch (ApiException e) # **UploadFileWithRequiredFile** -> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string? additionalMetadata = null) +> ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string? additionalMetadata = null) uploads an image (required) @@ -790,7 +790,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var requiredFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload var additionalMetadata = "additionalMetadata_example"; // string? | Additional data to pass to server (optional) @@ -835,7 +835,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **requiredFile** | **System.IO.Stream****System.IO.Stream** | file to upload | | | **additionalMetadata** | **string?** | Additional data to pass to server | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RequiredClass.md index 685c1c51e031..50818ab5e018 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateOnly** | | **RequiredNotNullableDateProp** | **DateOnly** | | **NotRequiredNullableDateProp** | **DateOnly** | | [optional] @@ -23,15 +23,15 @@ Name | Type | Description | Notes **RequiredNotnullableDatetimeProp** | **DateTime** | | **RequiredNullableDatetimeProp** | **DateTime?** | | **NotrequiredNullableDatetimeProp** | **DateTime?** | | [optional] -**NotrequiredNotnullableDatetimeProp** | **DateTime** | | [optional] +**NotrequiredNotnullableDatetimeProp** | **DateTime?** | | [optional] **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] @@ -43,7 +43,7 @@ Name | Type | Description | Notes **RequiredNullableUuid** | **Guid?** | | **RequiredNotnullableUuid** | **Guid** | | **NotrequiredNullableUuid** | **Guid?** | | [optional] -**NotrequiredNotnullableUuid** | **Guid** | | [optional] +**NotrequiredNotnullableUuid** | **Guid?** | | [optional] **RequiredNullableArrayOfString** | **List<string>** | | **RequiredNotnullableArrayOfString** | **List<string>** | | **NotrequiredNullableArrayOfString** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Return.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Return.md index a10daf95cf1d..d554c7612cbe 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] **Lock** | **string** | | **Abstract** | **string** | | **Unsafe** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHash.md index 309b0c02615c..52bb81a7dab6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHash.md @@ -5,7 +5,7 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] +**RoleUuid** | **Guid?** | | [optional] **Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1..6d9805d03479 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/StoreApi.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/StoreApi.md index 179da0ff637e..2d557c4cfa81 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/StoreApi.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/StoreApi.md @@ -99,7 +99,7 @@ No authorization required # **GetInventory** -> Dictionary<string, int> GetInventory () +> Dictionary<string, int?> GetInventory () Returns pet inventories by status @@ -131,7 +131,7 @@ namespace Example try { // Returns pet inventories by status - Dictionary result = apiInstance.GetInventory(); + Dictionary result = apiInstance.GetInventory(); Debug.WriteLine(result); } catch (ApiException e) @@ -152,7 +152,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Returns pet inventories by status - ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); + ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -169,7 +169,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**Dictionary** +**Dictionary** ### Authorization @@ -190,7 +190,7 @@ This endpoint does not need any parameter. # **GetOrderById** -> Order GetOrderById (long orderId) +> Order GetOrderById (long? orderId) Find purchase order by ID @@ -213,7 +213,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new StoreApi(config); - var orderId = 789L; // long | ID of pet that needs to be fetched + var orderId = 789L; // long? | ID of pet that needs to be fetched try { @@ -256,7 +256,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **orderId** | **long** | ID of pet that needs to be fetched | | +| **orderId** | **long?** | ID of pet that needs to be fetched | | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Tag.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Tag.md index fdd22eb31fdd..f86abfc26e02 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/User.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/User.md index b0cd4dc042bf..da9b34219d84 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Whale.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Whale.md index 5fc3dc7f85c2..a1512d751e8e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 54f3d2e41a93..2e22006cf95b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -73,8 +73,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - List Hello(int operationIndex = 0); + /// List<Guid?> + List Hello(int operationIndex = 0); /// /// Hello @@ -84,8 +84,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - ApiResponse> HelloWithHttpInfo(int operationIndex = 0); + /// ApiResponse of List<Guid?> + ApiResponse> HelloWithHttpInfo(int operationIndex = 0); /// /// /// @@ -188,8 +188,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<Guid?> + System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hello @@ -200,8 +200,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<Guid?>) + System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -641,10 +641,10 @@ public Org.OpenAPITools.Client.ApiResponse GetCountryWithHttpInfo(string /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - public List Hello(int operationIndex = 0) + /// List<Guid?> + public List Hello(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); return localVarResponse.Data; } @@ -653,8 +653,8 @@ public List Hello(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) + /// ApiResponse of List<Guid?> + public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -684,7 +684,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("Hello", localVarResponse); @@ -703,10 +703,10 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<Guid?> + public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -716,8 +716,8 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<Guid?>) + public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -748,7 +748,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index 8fc96497aa05..16b0b565d436 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -54,8 +54,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); + /// bool? + bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); /// /// @@ -66,8 +66,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); + /// ApiResponse of bool? + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); /// /// /// @@ -100,8 +100,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); + /// decimal? + decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); /// /// @@ -112,8 +112,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); + /// ApiResponse of decimal? + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); /// /// /// @@ -125,7 +125,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0); + string FakeOuterStringSerialize(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0); /// /// @@ -138,7 +138,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0); /// /// Array of Enums /// @@ -304,7 +304,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); + void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -329,7 +329,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0); /// /// To test enum parameters /// @@ -382,7 +382,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// Fake endpoint to test group parameters (optional) @@ -399,7 +399,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// test inline additionalProperties /// @@ -563,8 +563,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of bool? + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -576,8 +576,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (bool?) + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -613,8 +613,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of decimal? + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -626,8 +626,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (decimal?) + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -640,7 +640,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -654,7 +654,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Array of Enums /// @@ -850,7 +850,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -876,7 +876,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -932,7 +932,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint to test group parameters (optional) @@ -950,7 +950,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// test inline additionalProperties /// @@ -1346,10 +1346,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) + /// bool? + public bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1359,8 +1359,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) + /// ApiResponse of bool? + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1392,7 +1392,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterBooleanSerialize", localVarResponse); @@ -1412,10 +1412,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of bool? + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1426,8 +1426,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (bool?) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1460,7 +1460,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1614,10 +1614,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) + /// decimal? + public decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1627,8 +1627,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) + /// ApiResponse of decimal? + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1660,7 +1660,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterNumberSerialize", localVarResponse); @@ -1680,10 +1680,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of decimal? + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1694,8 +1694,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (decimal?) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1728,7 +1728,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1750,7 +1750,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0) + public string FakeOuterStringSerialize(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); return localVarResponse.Data; @@ -1764,8 +1764,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1819,7 +1825,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1834,8 +1840,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string? body = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2870,7 +2882,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) + public void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) { TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } @@ -2895,8 +2907,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3021,7 +3045,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3047,8 +3071,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string? varString = default(string?), System.IO.Stream? binary = default(System.IO.Stream?), DateOnly? date = default(DateOnly?), DateTime? dateTime = default(DateTime?), string? password = default(string?), string? callback = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3386,7 +3422,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -3403,8 +3439,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -3479,7 +3533,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3497,8 +3551,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index 848cd61975b4..a5e3060f0808 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -55,7 +55,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// - void DeletePet(long petId, string? apiKey = default(string?), int operationIndex = 0); + void DeletePet(long? petId, string? apiKey = default(string?), int operationIndex = 0); /// /// Deletes a pet @@ -68,7 +68,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string? apiKey = default(string?), int operationIndex = 0); + ApiResponse DeletePetWithHttpInfo(long? petId, string? apiKey = default(string?), int operationIndex = 0); /// /// Finds Pets by status /// @@ -127,7 +127,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// Pet - Pet GetPetById(long petId, int operationIndex = 0); + Pet GetPetById(long? petId, int operationIndex = 0); /// /// Find pet by ID @@ -139,7 +139,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0); + ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0); /// /// Update an existing pet /// @@ -169,7 +169,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// - void UpdatePetWithForm(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0); + void UpdatePetWithForm(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0); /// /// Updates a pet in the store with form data @@ -183,7 +183,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0); + ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0); /// /// uploads an image /// @@ -193,7 +193,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFile(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0); + ApiResponse UploadFile(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0); /// /// uploads an image @@ -207,7 +207,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0); + ApiResponse UploadFileWithHttpInfo(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0); /// /// uploads an image (required) /// @@ -217,7 +217,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0); /// /// uploads an image (required) @@ -231,7 +231,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0); #endregion Synchronous Operations } @@ -278,7 +278,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long? petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Deletes a pet @@ -292,7 +292,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Finds Pets by status /// @@ -356,7 +356,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find pet by ID @@ -369,7 +369,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an existing pet /// @@ -408,7 +408,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Updates a pet in the store with form data @@ -423,7 +423,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image /// @@ -437,7 +437,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image @@ -452,7 +452,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) /// @@ -466,7 +466,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) @@ -481,7 +481,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -818,7 +818,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// - public void DeletePet(long petId, string? apiKey = default(string?), int operationIndex = 0) + public void DeletePet(long? petId, string? apiKey = default(string?), int operationIndex = 0) { DeletePetWithHttpInfo(petId, apiKey); } @@ -831,8 +831,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string? apiKey = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long? petId, string? apiKey = default(string?), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -903,7 +909,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long? petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeletePetWithHttpInfoAsync(petId, apiKey, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -917,8 +923,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string? apiKey = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1413,7 +1425,7 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// ID of pet to return /// Index associated with the operation. /// Pet - public Pet GetPetById(long petId, int operationIndex = 0) + public Pet GetPetById(long? petId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); return localVarResponse.Data; @@ -1426,8 +1438,14 @@ public Pet GetPetById(long petId, int operationIndex = 0) /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1489,7 +1507,7 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1503,8 +1521,14 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1777,7 +1801,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// - public void UpdatePetWithForm(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0) + public void UpdatePetWithForm(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0) { UpdatePetWithFormWithHttpInfo(petId, name, status); } @@ -1791,8 +1815,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1869,7 +1899,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1884,8 +1914,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string? name = default(string?), string? status = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1963,7 +1999,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFile(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0) + public ApiResponse UploadFile(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); return localVarResponse.Data; @@ -1978,8 +2014,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -2057,7 +2099,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2073,8 +2115,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string? additionalMetadata = default(string?), System.IO.Stream? file = default(System.IO.Stream?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2153,7 +2201,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0) + public ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResponse.Data; @@ -2168,8 +2216,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { @@ -2251,7 +2305,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2267,8 +2321,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string? additionalMetadata = default(string?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index e8882b0fc2e4..d70c41ee64bf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -58,8 +58,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - Dictionary GetInventory(int operationIndex = 0); + /// Dictionary<string, int?> + Dictionary GetInventory(int operationIndex = 0); /// /// Returns pet inventories by status @@ -69,8 +69,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); + /// ApiResponse of Dictionary<string, int?> + ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); /// /// Find purchase order by ID /// @@ -81,7 +81,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - Order GetOrderById(long orderId, int operationIndex = 0); + Order GetOrderById(long? orderId, int operationIndex = 0); /// /// Find purchase order by ID @@ -93,7 +93,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0); + ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0); /// /// Place an order for a pet /// @@ -157,8 +157,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of Dictionary<string, int?> + System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Returns pet inventories by status @@ -169,8 +169,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (Dictionary<string, int?>) + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID /// @@ -182,7 +182,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID @@ -195,7 +195,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Place an order for a pet /// @@ -486,10 +486,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - public Dictionary GetInventory(int operationIndex = 0) + /// Dictionary<string, int?> + public Dictionary GetInventory(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); return localVarResponse.Data; } @@ -498,8 +498,8 @@ public Dictionary GetInventory(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) + /// ApiResponse of Dictionary<string, int?> + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -534,7 +534,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse); @@ -553,10 +553,10 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of Dictionary<string, int?> + public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -566,8 +566,8 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (Dictionary<string, int?>) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -603,7 +603,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -624,7 +624,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - public Order GetOrderById(long orderId, int operationIndex = 0) + public Order GetOrderById(long? orderId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); return localVarResponse.Data; @@ -637,8 +637,14 @@ public Order GetOrderById(long orderId, int operationIndex = 0) /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -690,7 +696,7 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -704,8 +710,14 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index b11aff203a77..5297f89d15c0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -38,7 +38,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// code. /// type. /// message. - public ApiResponse(int code = default(int), string type = default(string), string message = default(string)) + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; this.Type = type; @@ -49,7 +49,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -116,7 +116,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e3..97e5fd1574b4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ protected AppleReq() { } /// /// cultivar (required). /// mealy. - public AppleReq(string cultivar = default(string), bool mealy = default(bool)) + public AppleReq(string cultivar = default(string), bool? mealy = default(bool?)) { // to ensure "cultivar" is required (not null) if (cultivar == null) @@ -63,7 +63,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -121,7 +121,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index b75b0792d613..8a9f80593af7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// arrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { this.ArrayArrayNumber = arrayArrayNumber; } @@ -45,7 +45,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable [DataMember(Name = "ArrayArrayNumber", EmitDefaultValue = false)] - public List> ArrayArrayNumber { get; set; } + public List> ArrayArrayNumber { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index e3a0602189b0..5cc496aaf8b1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Initializes a new instance of the class. /// /// arrayNumber. - public ArrayOfNumberOnly(List arrayNumber = default(List)) + public ArrayOfNumberOnly(List arrayNumber = default(List)) { this.ArrayNumber = arrayNumber; } @@ -45,7 +45,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Gets or Sets ArrayNumber /// [DataMember(Name = "ArrayNumber", EmitDefaultValue = false)] - public List ArrayNumber { get; set; } + public List ArrayNumber { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 02ead047372b..dbebe963f7c0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -38,7 +38,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// arrayOfString. /// arrayArrayOfInteger. /// arrayArrayOfModel. - public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; this.ArrayArrayOfInteger = arrayArrayOfInteger; @@ -55,7 +55,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// Gets or Sets ArrayArrayOfInteger /// [DataMember(Name = "array_array_of_integer", EmitDefaultValue = false)] - public List> ArrayArrayOfInteger { get; set; } + public List> ArrayArrayOfInteger { get; set; } /// /// Gets or Sets ArrayArrayOfModel diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index dffda1bedc28..ab224b60143e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -36,7 +36,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// lengthCm. - public Banana(decimal lengthCm = default(decimal)) + public Banana(decimal? lengthCm = default(decimal?)) { this.LengthCm = lengthCm; } @@ -45,7 +45,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Returns the string presentation of the object @@ -98,7 +98,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80..6901cc0d18e3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ protected BananaReq() { } /// /// lengthCm (required). /// sweet. - public BananaReq(decimal lengthCm = default(decimal), bool sweet = default(bool)) + public BananaReq(decimal lengthCm = default(decimal), bool? sweet = default(bool?)) { this.LengthCm = lengthCm; this.Sweet = sweet; @@ -58,7 +58,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -113,7 +113,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 8bec3551ae9f..6c2554ae41fd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -45,7 +45,7 @@ protected Cat() { } /// declawed. /// className (required) (default to "Cat"). /// color (default to "red"). - public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color) + public Cat(bool? declawed = default(bool?), string className = @"Cat", string color = @"red") : base(className, color) { this.Declawed = declawed; } @@ -54,7 +54,7 @@ protected Cat() { } /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Returns the string presentation of the object @@ -108,7 +108,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs index 85ea41da1a6c..67e242a3199b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -42,7 +42,7 @@ protected Category() { } /// /// id. /// name (required) (default to "default-name"). - public Category(long id = default(long), string name = @"default-name") + public Category(long? id = default(long?), string name = @"default-name") { // to ensure "name" is required (not null) if (name == null) @@ -57,7 +57,7 @@ protected Category() { } /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -117,7 +117,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index bf17521990cd..2284dc8b39e0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -179,6 +179,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 611b3dade2d0..c6e38d7e1bed 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -64,7 +64,7 @@ protected FormatTest() { } /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateOnly date = default(DateOnly), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int? integer = default(int?), int? int32 = default(int?), int? int32Range = default(int?), int? int64Positive = default(int?), int? int64Negative = default(int?), int? int64PositiveExclusive = default(int?), int? int64NegativeExclusive = default(int?), uint? unsignedInteger = default(uint?), long? int64 = default(long?), ulong? unsignedLong = default(ulong?), decimal number = default(decimal), float? varFloat = default(float?), double? varDouble = default(double?), decimal? varDecimal = default(decimal?), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateOnly date = default(DateOnly), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; // to ensure "varByte" is required (not null) @@ -111,61 +111,61 @@ protected FormatTest() { } /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets Int32Range /// [DataMember(Name = "int32Range", EmitDefaultValue = false)] - public int Int32Range { get; set; } + public int? Int32Range { get; set; } /// /// Gets or Sets Int64Positive /// [DataMember(Name = "int64Positive", EmitDefaultValue = false)] - public long Int64Positive { get; set; } + public int? Int64Positive { get; set; } /// /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative { get; set; } + public int? Int64Negative { get; set; } /// /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive { get; set; } + public int? Int64PositiveExclusive { get; set; } /// /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive { get; set; } + public int? Int64NegativeExclusive { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -177,19 +177,19 @@ protected FormatTest() { } /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -221,14 +221,14 @@ protected FormatTest() { } /// /// 2007-12-03T10:15:30+01:00 [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Uuid /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets Password @@ -331,20 +331,59 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.Int32Range != null) + { + hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); + } + if (this.Int64Positive != null) + { + hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); + } + if (this.Int64Negative != null) + { + hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); + } + if (this.Int64PositiveExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); + } + if (this.Int64NegativeExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -396,74 +435,74 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // Int32Range (int) maximum - if (this.Int32Range > (int)2147483647) + // Int32Range (int?) maximum + if (this.Int32Range > (int?)2147483647) { yield return new ValidationResult("Invalid value for Int32Range, must be a value less than or equal to 2147483647.", new [] { "Int32Range" }); } - // Int32Range (int) minimum - if (this.Int32Range < (int)-2147483648) + // Int32Range (int?) minimum + if (this.Int32Range < (int?)-2147483648) { yield return new ValidationResult("Invalid value for Int32Range, must be a value greater than or equal to -2147483648.", new [] { "Int32Range" }); } - // Int64Positive (long) minimum - if (this.Int64Positive < (long)2147483648) + // Int64Positive (int?) minimum + if (this.Int64Positive < (int?)2147483648) { yield return new ValidationResult("Invalid value for Int64Positive, must be a value greater than or equal to 2147483648.", new [] { "Int64Positive" }); } - // Int64Negative (long) maximum - if (this.Int64Negative > (long)-2147483649) + // Int64Negative (int?) maximum + if (this.Int64Negative > (int?)-2147483649) { yield return new ValidationResult("Invalid value for Int64Negative, must be a value less than or equal to -2147483649.", new [] { "Int64Negative" }); } - // Int64PositiveExclusive (long) minimum - if (this.Int64PositiveExclusive < (long)2147483647) + // Int64PositiveExclusive (int?) minimum + if (this.Int64PositiveExclusive < (int?)2147483647) { yield return new ValidationResult("Invalid value for Int64PositiveExclusive, must be a value greater than 2147483647.", new [] { "Int64PositiveExclusive" }); } - // Int64NegativeExclusive (long) maximum - if (this.Int64NegativeExclusive <= (long)-2147483648) + // Int64NegativeExclusive (int?) maximum + if (this.Int64NegativeExclusive <= (int?)-2147483648) { yield return new ValidationResult("Invalid value for Int64NegativeExclusive, must be a value less than -2147483648.", new [] { "Int64NegativeExclusive" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -480,26 +519,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 70075c576b1e..aaf07c08f951 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -58,7 +58,7 @@ public enum InnerEnum /// mapOfEnumString. /// directMap. /// indirectMap. - public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) { this.MapMapOfString = mapMapOfString; this.MapOfEnumString = mapOfEnumString; @@ -82,13 +82,13 @@ public enum InnerEnum /// Gets or Sets DirectMap /// [DataMember(Name = "direct_map", EmitDefaultValue = false)] - public Dictionary DirectMap { get; set; } + public Dictionary DirectMap { get; set; } /// /// Gets or Sets IndirectMap /// [DataMember(Name = "indirect_map", EmitDefaultValue = false)] - public Dictionary IndirectMap { get; set; } + public Dictionary IndirectMap { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index 6dbe8fdadda5..2335ba759a18 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -72,7 +72,7 @@ protected MixLog() { } /// ProductId is only required for color mixes. /// ProductName is only required for color mixes. /// selectedVersionIndex. - public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int)) + public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid? shopId = default(Guid?), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int? selectedVersionIndex = default(int?)) { this.Id = id; // to ensure "description" is required (not null) @@ -135,7 +135,7 @@ protected MixLog() { } /// Gets or Sets ShopId /// [DataMember(Name = "shopId", EmitDefaultValue = false)] - public Guid ShopId { get; set; } + public Guid? ShopId { get; set; } /// /// Gets or Sets TotalPrice @@ -312,7 +312,7 @@ protected MixLog() { } /// Gets or Sets SelectedVersionIndex /// [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)] - public int SelectedVersionIndex { get; set; } + public int? SelectedVersionIndex { get; set; } /// /// Returns the string presentation of the object @@ -508,7 +508,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ProductName.GetHashCode(); } - hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + if (this.SelectedVersionIndex != null) + { + hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 49e94cc5e5db..0c1e37574cf0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -48,10 +48,10 @@ public MixedAnyOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedAnyOfContent(bool actualInstance) + /// An instance of bool?. + public MixedAnyOfContent(bool? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -60,10 +60,10 @@ public MixedAnyOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedAnyOfContent(int actualInstance) + /// An instance of int?. + public MixedAnyOfContent(int? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -72,10 +72,10 @@ public MixedAnyOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedAnyOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedAnyOfContent(decimal? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { _actualInstance = value; } - else if (value.GetType() == typeof(bool)) + else if (value.GetType() == typeof(bool?)) { _actualInstance = value; } - else if (value.GetType() == typeof(decimal)) + else if (value.GetType() == typeof(decimal?)) { _actualInstance = value; } - else if (value.GetType() == typeof(int)) + else if (value.GetType() == typeof(int?)) { _actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)ActualInstance; + return (bool?)ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)ActualInstance; + return (int?)ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)ActualInstance; + return (decimal?)ActualInstance; } /// @@ -235,38 +235,38 @@ public static MixedAnyOfContent FromJson(string jsonString) try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index e2527cc3c315..9ef03c99ae1f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -48,10 +48,10 @@ public MixedOneOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedOneOfContent(bool actualInstance) + /// An instance of bool?. + public MixedOneOfContent(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -60,10 +60,10 @@ public MixedOneOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedOneOfContent(int actualInstance) + /// An instance of int?. + public MixedOneOfContent(int? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -72,10 +72,10 @@ public MixedOneOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedOneOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedOneOfContent(decimal? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } - else if (value.GetType() == typeof(decimal) || value is decimal) + else if (value.GetType() == typeof(decimal?) || value is decimal?) { this._actualInstance = value; } - else if (value.GetType() == typeof(int) || value is int) + else if (value.GetType() == typeof(int?) || value is int?) { this._actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)this.ActualInstance; + return (int?)this.ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)this.ActualInstance; + return (decimal?)this.ActualInstance; } /// @@ -246,61 +246,61 @@ public static MixedOneOfContent FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(decimal).GetProperty("AdditionalProperties") == null) + if (typeof(decimal?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("decimal"); + matchedTypes.Add("decimal?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(int).GetProperty("AdditionalProperties") == null) + if (typeof(int?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("int"); + matchedTypes.Add("int?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index f081d2819590..901d1ef1fd78 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -39,7 +39,7 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableuuid. /// dateTime. /// map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid uuidWithPattern = default(Guid), Guid uuid = default(Guid), DateTime dateTime = default(DateTime), Dictionary map = default(Dictionary)) + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuidWithPattern = default(Guid?), Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.UuidWithPattern = uuidWithPattern; this.Uuid = uuid; @@ -51,19 +51,19 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable [DataMember(Name = "uuid_with_pattern", EmitDefaultValue = false)] - public Guid UuidWithPattern { get; set; } + public Guid? UuidWithPattern { get; set; } /// /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets DateTime /// [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Map @@ -153,7 +153,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.UuidWithPattern != null) { - // UuidWithPattern (Guid) pattern + // UuidWithPattern (Guid?) pattern Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 11efe092a28b..915d25d298f1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -37,7 +37,7 @@ public partial class Model200Response : IEquatable, IValidatab /// /// name. /// varClass. - public Model200Response(int name = default(int), string varClass = default(string)) + public Model200Response(int? name = default(int?), string varClass = default(string)) { this.Name = name; this.Class = varClass; @@ -47,7 +47,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs index 2021a0066590..afce5296602a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -58,7 +58,7 @@ protected Name() { } /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -78,7 +78,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -143,12 +143,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index f38cf7d6affe..83e5b8fc3148 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -39,7 +39,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// justNumber. - public NumberOnly(decimal justNumber = default(decimal)) + public NumberOnly(decimal? justNumber = default(decimal?)) { this.JustNumber = justNumber; } @@ -48,7 +48,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Returns the string presentation of the object @@ -101,7 +101,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index e2f9be14b2e6..929e18a2ee90 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -39,7 +39,7 @@ public partial class ObjectWithDeprecatedFields : IEquatableid. /// deprecatedRef. /// bars. - public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) + public ObjectWithDeprecatedFields(string uuid = default(string), decimal? id = default(decimal?), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) { this.Uuid = uuid; this.Id = id; @@ -58,7 +58,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -132,7 +132,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs index fa33759c2b12..a5b383966254 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -74,46 +74,47 @@ public enum StatusEnum /// shipDate. /// Order Status. /// complete (default to false). - public Order(long id = default(long), long petId = default(long), int quantity = default(int), DateTime shipDate = default(DateTime), StatusEnum? status = default(StatusEnum?), bool complete = false) + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { this.Id = id; this.PetId = petId; this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - this.Complete = complete; + // use default value if no "complete" provided + this.Complete = complete ?? false; } /// /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate /// /// 2020-02-02T20:20:20.000222Z [DataMember(Name = "shipDate", EmitDefaultValue = false)] - public DateTime ShipDate { get; set; } + public DateTime? ShipDate { get; set; } /// /// Gets or Sets Complete /// [DataMember(Name = "complete", EmitDefaultValue = true)] - public bool Complete { get; set; } + public bool? Complete { get; set; } /// /// Returns the string presentation of the object @@ -171,15 +172,27 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); } hashCode = (hashCode * 59) + this.Status.GetHashCode(); - hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + if (this.Complete != null) + { + hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 1a8d974b060f..dd3e1b6e93bd 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -38,7 +38,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// myNumber. /// myString. /// myBoolean. - public OuterComposite(decimal myNumber = default(decimal), string myString = default(string), bool myBoolean = default(bool)) + public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?)) { this.MyNumber = myNumber; this.MyString = myString; @@ -49,7 +49,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -61,7 +61,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Returns the string presentation of the object @@ -116,12 +116,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 4c5c91056616..ab06ff13b4c1 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -79,7 +79,7 @@ protected Pet() { } /// photoUrls (required). /// tags. /// pet status in the store. - public Pet(long id = default(long), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { // to ensure "name" is required (not null) if (name == null) @@ -103,7 +103,7 @@ protected Pet() { } /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -186,7 +186,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 5e4472118140..09dd24285e98 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -36,10 +36,10 @@ public partial class PolymorphicProperty : AbstractOpenAPISchema, IEquatable /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public PolymorphicProperty(bool actualInstance) + /// An instance of bool?. + public PolymorphicProperty(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -104,7 +104,7 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } @@ -114,19 +114,19 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool?, string"); } } } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// @@ -240,21 +240,21 @@ public static PolymorphicProperty FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); } else { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 5005d284a8e0..f1d217034de7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -57,7 +57,7 @@ public enum RequiredNullableEnumIntegerEnum /// /// Defines RequiredNotnullableEnumInteger /// - public enum RequiredNotnullableEnumIntegerEnum + public enum RequiredNotnullableEnumIntegerEnu { /// /// Enum NUMBER_1 for value: 1 @@ -75,7 +75,7 @@ public enum RequiredNotnullableEnumIntegerEnum /// Gets or Sets RequiredNotnullableEnumInteger /// [DataMember(Name = "required_notnullable_enum_integer", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerEnum RequiredNotnullableEnumInteger { get; set; } + public RequiredNotnullableEnumIntegerEnu RequiredNotnullableEnumInteger { get; set; } /// /// Defines NotrequiredNullableEnumInteger /// @@ -146,7 +146,7 @@ public enum RequiredNullableEnumIntegerOnlyEnum /// /// Defines RequiredNotnullableEnumIntegerOnly /// - public enum RequiredNotnullableEnumIntegerOnlyEnum + public enum RequiredNotnullableEnumIntegerOnlyEnu { /// /// Enum NUMBER_2 for value: 2 @@ -164,7 +164,7 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// [DataMember(Name = "required_notnullable_enum_integer_only", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerOnlyEnum RequiredNotnullableEnumIntegerOnly { get; set; } + public RequiredNotnullableEnumIntegerOnlyEnu RequiredNotnullableEnumIntegerOnly { get; set; } /// /// Defines NotrequiredNullableEnumIntegerOnly /// @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -530,7 +531,7 @@ protected RequiredClass() { } /// requiredNotnullableArrayOfString (required). /// notrequiredNullableArrayOfString. /// notrequiredNotnullableArrayOfString. - public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int notRequiredNotnullableintegerProp = default(int), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool notrequiredNotnullableBooleanProp = default(bool), DateOnly requiredNullableDateProp = default(DateOnly), DateOnly requiredNotNullableDateProp = default(DateOnly), DateOnly notRequiredNullableDateProp = default(DateOnly), DateOnly notRequiredNotnullableDateProp = default(DateOnly), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime notrequiredNotnullableDatetimeProp = default(DateTime), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnum requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnum), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnum requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnum), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid notrequiredNotnullableUuid = default(Guid), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) + public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int? notRequiredNotnullableintegerProp = default(int?), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool? notrequiredNotnullableBooleanProp = default(bool?), DateOnly requiredNullableDateProp = default(DateOnly), DateOnly requiredNotNullableDateProp = default(DateOnly), DateOnly notRequiredNullableDateProp = default(DateOnly), DateOnly notRequiredNotnullableDateProp = default(DateOnly), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNotnullableDatetimeProp = default(DateTime?), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnu requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnu), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnu requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnu), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid? notrequiredNotnullableUuid = default(Guid?), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) { // to ensure "requiredNullableIntegerProp" is required (not null) if (requiredNullableIntegerProp == null) @@ -650,7 +651,7 @@ protected RequiredClass() { } /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -698,7 +699,7 @@ protected RequiredClass() { } /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -746,7 +747,7 @@ protected RequiredClass() { } /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [DataMember(Name = "notrequired_notnullable_datetime_prop", EmitDefaultValue = false)] - public DateTime NotrequiredNotnullableDatetimeProp { get; set; } + public DateTime? NotrequiredNotnullableDatetimeProp { get; set; } /// /// Gets or Sets RequiredNullableUuid @@ -774,7 +775,7 @@ protected RequiredClass() { } /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "notrequired_notnullable_uuid", EmitDefaultValue = false)] - public Guid NotrequiredNotnullableUuid { get; set; } + public Guid? NotrequiredNotnullableUuid { get; set; } /// /// Gets or Sets RequiredNullableArrayOfString @@ -903,7 +904,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -929,7 +933,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs index 9d08c25bbd0f..df77255334de 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -44,7 +44,7 @@ protected Return() { } /// varLock (required). /// varAbstract (required). /// varUnsafe. - public Return(int varReturn = default(int), string varLock = default(string), string varAbstract = default(string), string varUnsafe = default(string)) + public Return(int? varReturn = default(int?), string varLock = default(string), string varAbstract = default(string), string varUnsafe = default(string)) { // to ensure "varLock" is required (not null) if (varLock == null) @@ -66,7 +66,7 @@ protected Return() { } /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets Lock @@ -140,7 +140,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.Lock != null) { hashCode = (hashCode * 59) + this.Lock.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index ebe5562ffe67..1e7ec4741224 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -37,7 +37,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// /// roleUuid. /// role. - public RolesReportsHash(Guid roleUuid = default(Guid), RolesReportsHashRole role = default(RolesReportsHashRole)) + public RolesReportsHash(Guid? roleUuid = default(Guid?), RolesReportsHashRole role = default(RolesReportsHashRole)) { this.RoleUuid = roleUuid; this.Role = role; @@ -47,7 +47,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// Gets or Sets RoleUuid /// [DataMember(Name = "role_uuid", EmitDefaultValue = false)] - public Guid RoleUuid { get; set; } + public Guid? RoleUuid { get; set; } /// /// Gets or Sets Role diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 867d43acaf4c..7693260e1fb9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -37,7 +37,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// /// specialPropertyName. /// varSpecialModelName. - public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) + public SpecialModelName(long? specialPropertyName = default(long?), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; this.VarSpecialModelName = varSpecialModelName; @@ -47,7 +47,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs index a9dd75cb5cbd..e52b007427f7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -37,7 +37,7 @@ public partial class Tag : IEquatable, IValidatableObject /// /// id. /// name. - public Tag(long id = default(long), string name = default(string)) + public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; this.Name = name; @@ -47,7 +47,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -107,7 +107,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs index 0b1913457735..84a44abc09cf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -47,7 +47,7 @@ public partial class User : IEquatable, IValidatableObject /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value.. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values.. - public User(long id = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int userStatus = default(int), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) { this.Id = id; this.Username = username; @@ -67,7 +67,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -110,7 +110,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -202,7 +202,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -227,7 +230,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs index cd6eb8c0b1be..e95696468d71 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -43,7 +43,7 @@ protected Whale() { } /// hasBaleen. /// hasTeeth. /// className (required). - public Whale(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string)) + public Whale(bool? hasBaleen = default(bool?), bool? hasTeeth = default(bool?), string className = default(string)) { // to ensure "className" is required (not null) if (className == null) @@ -59,13 +59,13 @@ protected Whale() { } /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -126,8 +126,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/docs/NowGet200Response.md b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/docs/NowGet200Response.md index 932034b2af2d..462d3fa0dc70 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/docs/NowGet200Response.md +++ b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/docs/NowGet200Response.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Today** | **DateTime** | | [optional] -**Now** | **DateTime** | | [optional] +**Today** | **DateTime?** | | [optional] +**Now** | **DateTime?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 84c9909059ab..0f2816e7d093 100644 --- a/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/restsharp/net7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -36,7 +36,7 @@ public partial class NowGet200Response : IValidatableObject /// /// today. /// now. - public NowGet200Response(DateTime today = default(DateTime), DateTime now = default(DateTime)) + public NowGet200Response(DateTime? today = default(DateTime?), DateTime? now = default(DateTime?)) { this.Today = today; this.Now = now; @@ -47,13 +47,13 @@ public partial class NowGet200Response : IValidatableObject /// [DataMember(Name = "today", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime Today { get; set; } + public DateTime? Today { get; set; } /// /// Gets or Sets Now /// [DataMember(Name = "now", EmitDefaultValue = false)] - public DateTime Now { get; set; } + public DateTime? Now { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ApiResponse.md index bb723d2baa13..faacf536f173 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/AppleReq.md index 005b8f8058a4..bb7b7576dc2e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayOfArrayOfNumberOnly.md index 4764c0ff80c5..fb113074d3f2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayArrayNumber** | **List<List<decimal>>** | | [optional] +**ArrayArrayNumber** | **List<List<decimal?>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayOfNumberOnly.md index d93717103b8b..30e148e05489 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayNumber** | **List<decimal>** | | [optional] +**ArrayNumber** | **List<decimal?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayTest.md index d74d11bae77d..89094d5e895c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ArrayTest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ArrayOfString** | **List<string>** | | [optional] -**ArrayArrayOfInteger** | **List<List<long>>** | | [optional] +**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional] **ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Banana.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Banana.md index 226952d1cecb..72cbdcf0af0b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/BananaReq.md index f99aab99e387..2bf39b773a66 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Cat.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Cat.md index aa1ac17604eb..d41c6ec6eb65 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Category.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Category.md index 032a1faeb3ff..bdbe5ac5a483 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/DateOnlyClass.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/DateOnlyClass.md index d0912d2ac415..258d6673e120 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/DateOnlyClass.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/DateOnlyClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateOnlyProperty** | **DateTime** | | [optional] +**DateOnlyProperty** | **DateTime?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/DefaultApi.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/DefaultApi.md index d9d4abc6ebbc..775590ae8779 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/DefaultApi.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/DefaultApi.md @@ -177,7 +177,7 @@ No authorization required # **Hello** -> List<Guid> Hello () +> List<Guid?> Hello () Hello @@ -204,7 +204,7 @@ namespace Example try { // Hello - List result = apiInstance.Hello(); + List result = apiInstance.Hello(); Debug.WriteLine(result); } catch (ApiException e) @@ -225,7 +225,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Hello - ApiResponse> response = apiInstance.HelloWithHttpInfo(); + ApiResponse> response = apiInstance.HelloWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -242,7 +242,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**List** +**List** ### Authorization diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/EnumTest.md index 5ce3c4addd9b..66cc8c6d245e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FakeApi.md index 06309f31e8a5..936da43e5a99 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FakeApi.md @@ -111,7 +111,7 @@ No authorization required # **FakeOuterBooleanSerialize** -> bool FakeOuterBooleanSerialize (bool? body = null) +> bool? FakeOuterBooleanSerialize (bool? body = null) @@ -138,7 +138,7 @@ namespace Example try { - bool result = apiInstance.FakeOuterBooleanSerialize(body); + bool? result = apiInstance.FakeOuterBooleanSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -158,7 +158,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -179,7 +179,7 @@ catch (ApiException e) ### Return type -**bool** +**bool?** ### Authorization @@ -289,7 +289,7 @@ No authorization required # **FakeOuterNumberSerialize** -> decimal FakeOuterNumberSerialize (decimal? body = null) +> decimal? FakeOuterNumberSerialize (decimal? body = null) @@ -316,7 +316,7 @@ namespace Example try { - decimal result = apiInstance.FakeOuterNumberSerialize(body); + decimal? result = apiInstance.FakeOuterNumberSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -336,7 +336,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -357,7 +357,7 @@ catch (ApiException e) ### Return type -**decimal** +**decimal?** ### Authorization @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid? requiredStringUuid, string body = null) @@ -401,7 +401,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); - var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String + var requiredStringUuid = "requiredStringUuid_example"; // Guid? | Required UUID String var body = "body_example"; // string | Input string as post body (optional) try @@ -443,7 +443,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringUuid** | **Guid** | Required UUID String | | +| **requiredStringUuid** | **Guid?** | Required UUID String | | | **body** | **string** | Input string as post body | [optional] | ### Return type @@ -1067,7 +1067,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1094,8 +1094,8 @@ namespace Example config.Password = "YOUR_PASSWORD"; var apiInstance = new FakeApi(config); - var number = 8.14D; // decimal | None - var varDouble = 1.2D; // double | None + var number = 8.14D; // decimal? | None + var varDouble = 1.2D; // double? | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) @@ -1146,8 +1146,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **number** | **decimal** | None | | -| **varDouble** | **double** | None | | +| **number** | **decimal?** | None | | +| **varDouble** | **double?** | None | | | **patternWithoutDelimiter** | **string** | None | | | **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | @@ -1287,7 +1287,7 @@ No authorization required # **TestGroupParameters** -> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) +> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) Fake endpoint to test group parameters (optional) @@ -1313,9 +1313,9 @@ namespace Example config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FakeApi(config); - var requiredStringGroup = 56; // int | Required String in group parameters - var requiredBooleanGroup = true; // bool | Required Boolean in group parameters - var requiredInt64Group = 789L; // long | Required Integer in group parameters + var requiredStringGroup = 56; // int? | Required String in group parameters + var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters + var requiredInt64Group = 789L; // long? | Required Integer in group parameters var stringGroup = 56; // int? | String in group parameters (optional) var booleanGroup = true; // bool? | Boolean in group parameters (optional) var int64Group = 789L; // long? | Integer in group parameters (optional) @@ -1357,9 +1357,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringGroup** | **int** | Required String in group parameters | | -| **requiredBooleanGroup** | **bool** | Required Boolean in group parameters | | -| **requiredInt64Group** | **long** | Required Integer in group parameters | | +| **requiredStringGroup** | **int?** | Required String in group parameters | | +| **requiredBooleanGroup** | **bool?** | Required Boolean in group parameters | | +| **requiredInt64Group** | **long?** | Required Integer in group parameters | | | **stringGroup** | **int?** | String in group parameters | [optional] | | **booleanGroup** | **bool?** | Boolean in group parameters | [optional] | | **int64Group** | **long?** | Integer in group parameters | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FormatTest.md index 1b12163e9a6a..a0c247ca17a6 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FormatTest.md @@ -4,26 +4,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**Int32Range** | **int** | | [optional] -**Int64Positive** | **long** | | [optional] -**Int64Negative** | **long** | | [optional] -**Int64PositiveExclusive** | **long** | | [optional] -**Int64NegativeExclusive** | **long** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**Int32Range** | **int?** | | [optional] +**Int64Positive** | **int?** | | [optional] +**Int64Negative** | **int?** | | [optional] +**Int64PositiveExclusive** | **int?** | | [optional] +**Int64NegativeExclusive** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | -**DateTime** | **DateTime** | | [optional] -**Uuid** | **Guid** | | [optional] +**DateTime** | **DateTime?** | | [optional] +**Uuid** | **Guid?** | | [optional] **Password** | **string** | | **PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] **PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Fruit.md index 40df92d7c9b1..05aed3a2642b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FruitReq.md index 5db6b0e2d1d8..8f072a324cb0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/GmFruit.md index da7b3a6ccf9f..265348eca479 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Mammal.md index aab8f4db9c75..75172cd3d506 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MapTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MapTest.md index 516f9d4fd37e..07c245718f12 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MapTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MapTest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional] **MapOfEnumString** | **Dictionary<string, MapTest.InnerEnum>** | | [optional] -**DirectMap** | **Dictionary<string, bool>** | | [optional] -**IndirectMap** | **Dictionary<string, bool>** | | [optional] +**DirectMap** | **Dictionary<string, bool?>** | | [optional] +**IndirectMap** | **Dictionary<string, bool?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixLog.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixLog.md index 1872e30daaa3..59943e8898e5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixLog.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixLog.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **Guid** | | **Description** | **string** | | **MixDate** | **DateTime** | | -**ShopId** | **Guid** | | [optional] +**ShopId** | **Guid?** | | [optional] **TotalPrice** | **float?** | | [optional] **TotalRecalculations** | **int** | | **TotalOverPoors** | **int** | | @@ -35,7 +35,7 @@ Name | Type | Description | Notes **PrimerProductId** | **string** | | [optional] **ProductId** | **string** | ProductId is only required for color mixes | [optional] **ProductName** | **string** | ProductName is only required for color mixes | [optional] -**SelectedVersionIndex** | **int** | | [optional] +**SelectedVersionIndex** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 050210a3e371..81d4a847dbe2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UuidWithPattern** | **Guid** | | [optional] -**Uuid** | **Guid** | | [optional] -**DateTime** | **DateTime** | | [optional] +**UuidWithPattern** | **Guid?** | | [optional] +**Uuid** | **Guid?** | | [optional] +**DateTime** | **DateTime?** | | [optional] **Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Model200Response.md index 31f4d86fe43d..820f058bf221 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Name.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Name.md index 3e19db154a80..e440a45f0ae1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NumberOnly.md index 14a7c0f1071b..1af131f829ec 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b..20391539c912 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Order.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Order.md index 66c55c3b4737..1202b46b44ce 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Order.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] **Status** | **string** | Order Status | [optional] -**Complete** | **bool** | | [optional] [default to false] +**Complete** | **bool?** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/OuterComposite.md index eb42bcc1aaa4..71ca9b879223 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Pet.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Pet.md index c7224764e2d4..a54829f9a8e2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/PetApi.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/PetApi.md index 00a45b118d44..735be6a8b7d8 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/PetApi.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/PetApi.md @@ -104,7 +104,7 @@ void (empty response body) # **DeletePet** -> void DeletePet (long petId, string apiKey = null) +> void DeletePet (long? petId, string apiKey = null) Deletes a pet @@ -128,7 +128,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | Pet id to delete + var petId = 789L; // long? | Pet id to delete var apiKey = "apiKey_example"; // string | (optional) try @@ -168,7 +168,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | Pet id to delete | | +| **petId** | **long?** | Pet id to delete | | | **apiKey** | **string** | | [optional] | ### Return type @@ -386,7 +386,7 @@ catch (ApiException e) # **GetPetById** -> Pet GetPetById (long petId) +> Pet GetPetById (long? petId) Find pet by ID @@ -418,7 +418,7 @@ namespace Example // config.AddApiKeyPrefix("api_key_query", "Bearer"); var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to return + var petId = 789L; // long? | ID of pet to return try { @@ -461,7 +461,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to return | | +| **petId** | **long?** | ID of pet to return | | ### Return type @@ -578,7 +578,7 @@ void (empty response body) # **UpdatePetWithForm** -> void UpdatePetWithForm (long petId, string name = null, string status = null) +> void UpdatePetWithForm (long? petId, string name = null, string status = null) Updates a pet in the store with form data @@ -602,7 +602,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet that needs to be updated + var petId = 789L; // long? | ID of pet that needs to be updated var name = "name_example"; // string | Updated name of the pet (optional) var status = "status_example"; // string | Updated status of the pet (optional) @@ -643,7 +643,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet that needs to be updated | | +| **petId** | **long?** | ID of pet that needs to be updated | | | **name** | **string** | Updated name of the pet | [optional] | | **status** | **string** | Updated status of the pet | [optional] | @@ -670,7 +670,7 @@ void (empty response body) # **UploadFile** -> ApiResponse UploadFile (long petId, string additionalMetadata = null, System.IO.Stream file = null) +> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null) uploads an image @@ -694,7 +694,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload (optional) @@ -739,7 +739,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | | **file** | **System.IO.Stream****System.IO.Stream** | file to upload | [optional] | @@ -766,7 +766,7 @@ catch (ApiException e) # **UploadFileWithRequiredFile** -> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = null) +> ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null) uploads an image (required) @@ -790,7 +790,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var requiredFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) @@ -835,7 +835,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **requiredFile** | **System.IO.Stream****System.IO.Stream** | file to upload | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RequiredClass.md index 07b6f018f6c1..018f2a832832 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,23 +15,23 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] -**NotRequiredNotnullableDateProp** | **DateTime** | | [optional] +**NotRequiredNotnullableDateProp** | **DateTime?** | | [optional] **RequiredNotnullableDatetimeProp** | **DateTime** | | **RequiredNullableDatetimeProp** | **DateTime?** | | **NotrequiredNullableDatetimeProp** | **DateTime?** | | [optional] -**NotrequiredNotnullableDatetimeProp** | **DateTime** | | [optional] +**NotrequiredNotnullableDatetimeProp** | **DateTime?** | | [optional] **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] @@ -43,7 +43,7 @@ Name | Type | Description | Notes **RequiredNullableUuid** | **Guid?** | | **RequiredNotnullableUuid** | **Guid** | | **NotrequiredNullableUuid** | **Guid?** | | [optional] -**NotrequiredNotnullableUuid** | **Guid** | | [optional] +**NotrequiredNotnullableUuid** | **Guid?** | | [optional] **RequiredNullableArrayOfString** | **List<string>** | | **RequiredNotnullableArrayOfString** | **List<string>** | | **NotrequiredNullableArrayOfString** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Return.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Return.md index a10daf95cf1d..d554c7612cbe 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] **Lock** | **string** | | **Abstract** | **string** | | **Unsafe** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RolesReportsHash.md index 309b0c02615c..52bb81a7dab6 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RolesReportsHash.md @@ -5,7 +5,7 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] +**RoleUuid** | **Guid?** | | [optional] **Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/SpecialModelName.md index 7f8ffca34fa1..6d9805d03479 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/StoreApi.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/StoreApi.md index 179da0ff637e..2d557c4cfa81 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/StoreApi.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/StoreApi.md @@ -99,7 +99,7 @@ No authorization required # **GetInventory** -> Dictionary<string, int> GetInventory () +> Dictionary<string, int?> GetInventory () Returns pet inventories by status @@ -131,7 +131,7 @@ namespace Example try { // Returns pet inventories by status - Dictionary result = apiInstance.GetInventory(); + Dictionary result = apiInstance.GetInventory(); Debug.WriteLine(result); } catch (ApiException e) @@ -152,7 +152,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Returns pet inventories by status - ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); + ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -169,7 +169,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**Dictionary** +**Dictionary** ### Authorization @@ -190,7 +190,7 @@ This endpoint does not need any parameter. # **GetOrderById** -> Order GetOrderById (long orderId) +> Order GetOrderById (long? orderId) Find purchase order by ID @@ -213,7 +213,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new StoreApi(config); - var orderId = 789L; // long | ID of pet that needs to be fetched + var orderId = 789L; // long? | ID of pet that needs to be fetched try { @@ -256,7 +256,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **orderId** | **long** | ID of pet that needs to be fetched | | +| **orderId** | **long?** | ID of pet that needs to be fetched | | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Tag.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Tag.md index fdd22eb31fdd..f86abfc26e02 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/User.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/User.md index b0cd4dc042bf..da9b34219d84 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Whale.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Whale.md index 5fc3dc7f85c2..a1512d751e8e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs index 54f3d2e41a93..2e22006cf95b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -73,8 +73,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - List Hello(int operationIndex = 0); + /// List<Guid?> + List Hello(int operationIndex = 0); /// /// Hello @@ -84,8 +84,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - ApiResponse> HelloWithHttpInfo(int operationIndex = 0); + /// ApiResponse of List<Guid?> + ApiResponse> HelloWithHttpInfo(int operationIndex = 0); /// /// /// @@ -188,8 +188,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<Guid?> + System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hello @@ -200,8 +200,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<Guid?>) + System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -641,10 +641,10 @@ public Org.OpenAPITools.Client.ApiResponse GetCountryWithHttpInfo(string /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - public List Hello(int operationIndex = 0) + /// List<Guid?> + public List Hello(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); return localVarResponse.Data; } @@ -653,8 +653,8 @@ public List Hello(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) + /// ApiResponse of List<Guid?> + public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -684,7 +684,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("Hello", localVarResponse); @@ -703,10 +703,10 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<Guid?> + public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -716,8 +716,8 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<Guid?>) + public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -748,7 +748,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs index a61c5d240e23..29d75013441d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/FakeApi.cs @@ -54,8 +54,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); + /// bool? + bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); /// /// @@ -66,8 +66,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); + /// ApiResponse of bool? + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); /// /// /// @@ -100,8 +100,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); + /// decimal? + decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); /// /// @@ -112,8 +112,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); + /// ApiResponse of decimal? + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); /// /// /// @@ -125,7 +125,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string), int operationIndex = 0); + string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0); /// /// @@ -138,7 +138,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string), int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0); /// /// Array of Enums /// @@ -304,7 +304,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -329,7 +329,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// To test enum parameters /// @@ -382,7 +382,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// Fake endpoint to test group parameters (optional) @@ -399,7 +399,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// test inline additionalProperties /// @@ -563,8 +563,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of bool? + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -576,8 +576,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (bool?) + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -613,8 +613,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of decimal? + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -626,8 +626,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (decimal?) + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -640,7 +640,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -654,7 +654,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Array of Enums /// @@ -850,7 +850,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -876,7 +876,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -932,7 +932,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint to test group parameters (optional) @@ -950,7 +950,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// test inline additionalProperties /// @@ -1346,10 +1346,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) + /// bool? + public bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1359,8 +1359,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) + /// ApiResponse of bool? + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1392,7 +1392,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterBooleanSerialize", localVarResponse); @@ -1412,10 +1412,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of bool? + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1426,8 +1426,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (bool?) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1460,7 +1460,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1614,10 +1614,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) + /// decimal? + public decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1627,8 +1627,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) + /// ApiResponse of decimal? + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1660,7 +1660,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterNumberSerialize", localVarResponse); @@ -1680,10 +1680,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of decimal? + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1694,8 +1694,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (decimal?) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1728,7 +1728,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1750,7 +1750,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string), int operationIndex = 0) + public string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); return localVarResponse.Data; @@ -1764,8 +1764,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1819,7 +1825,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1834,8 +1840,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2870,7 +2882,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } @@ -2895,8 +2907,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3021,7 +3045,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3047,8 +3071,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3386,7 +3422,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -3403,8 +3439,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -3479,7 +3533,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3497,8 +3551,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs index 8db5fd36849d..3f214ffb4c5f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/PetApi.cs @@ -55,7 +55,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// - void DeletePet(long petId, string apiKey = default(string), int operationIndex = 0); + void DeletePet(long? petId, string apiKey = default(string), int operationIndex = 0); /// /// Deletes a pet @@ -68,7 +68,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), int operationIndex = 0); + ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string), int operationIndex = 0); /// /// Finds Pets by status /// @@ -127,7 +127,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// Pet - Pet GetPetById(long petId, int operationIndex = 0); + Pet GetPetById(long? petId, int operationIndex = 0); /// /// Find pet by ID @@ -139,7 +139,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0); + ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0); /// /// Update an existing pet /// @@ -169,7 +169,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), int operationIndex = 0); + void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string), int operationIndex = 0); /// /// Updates a pet in the store with form data @@ -183,7 +183,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), int operationIndex = 0); + ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string), int operationIndex = 0); /// /// uploads an image /// @@ -193,7 +193,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); + ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); /// /// uploads an image @@ -207,7 +207,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); + ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); /// /// uploads an image (required) /// @@ -217,7 +217,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); /// /// uploads an image (required) @@ -231,7 +231,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); #endregion Synchronous Operations } @@ -278,7 +278,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Deletes a pet @@ -292,7 +292,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Finds Pets by status /// @@ -356,7 +356,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find pet by ID @@ -369,7 +369,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an existing pet /// @@ -408,7 +408,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Updates a pet in the store with form data @@ -423,7 +423,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image /// @@ -437,7 +437,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image @@ -452,7 +452,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) /// @@ -466,7 +466,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) @@ -481,7 +481,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -818,7 +818,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// - public void DeletePet(long petId, string apiKey = default(string), int operationIndex = 0) + public void DeletePet(long? petId, string apiKey = default(string), int operationIndex = 0) { DeletePetWithHttpInfo(petId, apiKey); } @@ -831,8 +831,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -903,7 +909,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeletePetWithHttpInfoAsync(petId, apiKey, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -917,8 +923,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1413,7 +1425,7 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// ID of pet to return /// Index associated with the operation. /// Pet - public Pet GetPetById(long petId, int operationIndex = 0) + public Pet GetPetById(long? petId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); return localVarResponse.Data; @@ -1426,8 +1438,14 @@ public Pet GetPetById(long petId, int operationIndex = 0) /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1489,7 +1507,7 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1503,8 +1521,14 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1777,7 +1801,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), int operationIndex = 0) + public void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string), int operationIndex = 0) { UpdatePetWithFormWithHttpInfo(petId, name, status); } @@ -1791,8 +1815,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1869,7 +1899,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1884,8 +1914,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1963,7 +1999,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) + public ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); return localVarResponse.Data; @@ -1978,8 +2014,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -2057,7 +2099,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2073,8 +2115,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2153,7 +2201,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) + public ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResponse.Data; @@ -2168,8 +2216,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { @@ -2251,7 +2305,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2267,8 +2321,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs index e8882b0fc2e4..d70c41ee64bf 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Api/StoreApi.cs @@ -58,8 +58,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - Dictionary GetInventory(int operationIndex = 0); + /// Dictionary<string, int?> + Dictionary GetInventory(int operationIndex = 0); /// /// Returns pet inventories by status @@ -69,8 +69,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); + /// ApiResponse of Dictionary<string, int?> + ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); /// /// Find purchase order by ID /// @@ -81,7 +81,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - Order GetOrderById(long orderId, int operationIndex = 0); + Order GetOrderById(long? orderId, int operationIndex = 0); /// /// Find purchase order by ID @@ -93,7 +93,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0); + ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0); /// /// Place an order for a pet /// @@ -157,8 +157,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of Dictionary<string, int?> + System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Returns pet inventories by status @@ -169,8 +169,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (Dictionary<string, int?>) + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID /// @@ -182,7 +182,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID @@ -195,7 +195,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Place an order for a pet /// @@ -486,10 +486,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - public Dictionary GetInventory(int operationIndex = 0) + /// Dictionary<string, int?> + public Dictionary GetInventory(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); return localVarResponse.Data; } @@ -498,8 +498,8 @@ public Dictionary GetInventory(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) + /// ApiResponse of Dictionary<string, int?> + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -534,7 +534,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse); @@ -553,10 +553,10 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of Dictionary<string, int?> + public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -566,8 +566,8 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (Dictionary<string, int?>) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -603,7 +603,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -624,7 +624,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - public Order GetOrderById(long orderId, int operationIndex = 0) + public Order GetOrderById(long? orderId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); return localVarResponse.Data; @@ -637,8 +637,14 @@ public Order GetOrderById(long orderId, int operationIndex = 0) /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -690,7 +696,7 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -704,8 +710,14 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs index 440c5810db56..c995fd60019e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -38,7 +38,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// code. /// type. /// message. - public ApiResponse(int code = default(int), string type = default(string), string message = default(string)) + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this._Code = code; if (this.Code != null) @@ -62,7 +62,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code + public int? Code { get{ return _Code;} set @@ -71,7 +71,7 @@ public int Code _flagCode = true; } } - private int _Code; + private int? _Code; private bool _flagCode; /// @@ -190,7 +190,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs index 02fb11509662..8a35b51792d5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ protected AppleReq() { } /// /// cultivar (required). /// mealy. - public AppleReq(string cultivar = default(string), bool mealy = default(bool)) + public AppleReq(string cultivar = default(string), bool? mealy = default(bool?)) { // to ensure "cultivar" is required (not null) if (cultivar == null) @@ -85,7 +85,7 @@ public bool ShouldSerializeCultivar() /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy + public bool? Mealy { get{ return _Mealy;} set @@ -94,7 +94,7 @@ public bool Mealy _flagMealy = true; } } - private bool _Mealy; + private bool? _Mealy; private bool _flagMealy; /// @@ -161,7 +161,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 02324a9b5349..f5eed8ce7544 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// arrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { this._ArrayArrayNumber = arrayArrayNumber; if (this.ArrayArrayNumber != null) @@ -50,7 +50,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable [DataMember(Name = "ArrayArrayNumber", EmitDefaultValue = false)] - public List> ArrayArrayNumber + public List> ArrayArrayNumber { get{ return _ArrayArrayNumber;} set @@ -59,7 +59,7 @@ public List> ArrayArrayNumber _flagArrayArrayNumber = true; } } - private List> _ArrayArrayNumber; + private List> _ArrayArrayNumber; private bool _flagArrayArrayNumber; /// diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index f124f50a69d5..1d5050106f4c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Initializes a new instance of the class. /// /// arrayNumber. - public ArrayOfNumberOnly(List arrayNumber = default(List)) + public ArrayOfNumberOnly(List arrayNumber = default(List)) { this._ArrayNumber = arrayNumber; if (this.ArrayNumber != null) @@ -50,7 +50,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Gets or Sets ArrayNumber /// [DataMember(Name = "ArrayNumber", EmitDefaultValue = false)] - public List ArrayNumber + public List ArrayNumber { get{ return _ArrayNumber;} set @@ -59,7 +59,7 @@ public List ArrayNumber _flagArrayNumber = true; } } - private List _ArrayNumber; + private List _ArrayNumber; private bool _flagArrayNumber; /// diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayTest.cs index b62c42c722ce..469aedc1446c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -38,7 +38,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// arrayOfString. /// arrayArrayOfInteger. /// arrayArrayOfModel. - public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this._ArrayOfString = arrayOfString; if (this.ArrayOfString != null) @@ -86,7 +86,7 @@ public bool ShouldSerializeArrayOfString() /// Gets or Sets ArrayArrayOfInteger /// [DataMember(Name = "array_array_of_integer", EmitDefaultValue = false)] - public List> ArrayArrayOfInteger + public List> ArrayArrayOfInteger { get{ return _ArrayArrayOfInteger;} set @@ -95,7 +95,7 @@ public List> ArrayArrayOfInteger _flagArrayArrayOfInteger = true; } } - private List> _ArrayArrayOfInteger; + private List> _ArrayArrayOfInteger; private bool _flagArrayArrayOfInteger; /// diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs index cc328cf2d95e..b11f564e0314 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs @@ -36,7 +36,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// lengthCm. - public Banana(decimal lengthCm = default(decimal)) + public Banana(decimal? lengthCm = default(decimal?)) { this._LengthCm = lengthCm; if (this.LengthCm != null) @@ -50,7 +50,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm + public decimal? LengthCm { get{ return _LengthCm;} set @@ -59,7 +59,7 @@ public decimal LengthCm _flagLengthCm = true; } } - private decimal _LengthCm; + private decimal? _LengthCm; private bool _flagLengthCm; /// @@ -128,7 +128,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs index 163080fc7a5b..6d45ea50144c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ protected BananaReq() { } /// /// lengthCm (required). /// sweet. - public BananaReq(decimal lengthCm = default(decimal), bool sweet = default(bool)) + public BananaReq(decimal lengthCm = default(decimal), bool? sweet = default(bool?)) { this._LengthCm = lengthCm; this._Sweet = sweet; @@ -80,7 +80,7 @@ public bool ShouldSerializeLengthCm() /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet + public bool? Sweet { get{ return _Sweet;} set @@ -89,7 +89,7 @@ public bool Sweet _flagSweet = true; } } - private bool _Sweet; + private bool? _Sweet; private bool _flagSweet; /// @@ -153,7 +153,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs index 2cbd436c91ea..2c872d2caff6 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Cat.cs @@ -48,7 +48,7 @@ protected Cat() /// declawed. /// className (required) (default to "Cat"). /// color (default to "red"). - public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color) + public Cat(bool? declawed = default(bool?), string className = @"Cat", string color = @"red") : base(className, color) { this._Declawed = declawed; if (this.Declawed != null) @@ -62,7 +62,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed + public bool? Declawed { get{ return _Declawed;} set @@ -71,7 +71,7 @@ public bool Declawed _flagDeclawed = true; } } - private bool _Declawed; + private bool? _Declawed; private bool _flagDeclawed; /// @@ -141,7 +141,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs index fb7f24b243f5..03aaec207cb7 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Category.cs @@ -45,7 +45,7 @@ protected Category() /// /// id. /// name (required) (default to "default-name"). - public Category(long id = default(long), string name = @"default-name") + public Category(long? id = default(long?), string name = @"default-name") { // to ensure "name" is required (not null) if (name == null) @@ -65,7 +65,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id + public long? Id { get{ return _Id;} set @@ -74,7 +74,7 @@ public long Id _flagId = true; } } - private long _Id; + private long? _Id; private bool _flagId; /// @@ -168,7 +168,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DateOnlyClass.cs index ee3c89045095..c9652a28991d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -36,7 +36,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje /// Initializes a new instance of the class. /// /// dateOnlyProperty. - public DateOnlyClass(DateTime dateOnlyProperty = default(DateTime)) + public DateOnlyClass(DateTime? dateOnlyProperty = default(DateTime?)) { this._DateOnlyProperty = dateOnlyProperty; if (this.DateOnlyProperty != null) @@ -52,7 +52,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje /// Fri Jul 21 00:00:00 UTC 2017 [JsonConverter(typeof(OpenAPIDateConverter))] [DataMember(Name = "dateOnlyProperty", EmitDefaultValue = false)] - public DateTime DateOnlyProperty + public DateTime? DateOnlyProperty { get{ return _DateOnlyProperty;} set @@ -61,7 +61,7 @@ public DateTime DateOnlyProperty _flagDateOnlyProperty = true; } } - private DateTime _DateOnlyProperty; + private DateTime? _DateOnlyProperty; private bool _flagDateOnlyProperty; /// diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs index 8f0ea67b780f..311090f36835 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/EnumTest.cs @@ -239,6 +239,7 @@ public bool ShouldSerializeEnumInteger() /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs index 0b59ca8e6ef9..b8291a4dbd78 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/FormatTest.cs @@ -67,7 +67,7 @@ protected FormatTest() /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int? integer = default(int?), int? int32 = default(int?), int? int32Range = default(int?), int? int64Positive = default(int?), int? int64Negative = default(int?), int? int64PositiveExclusive = default(int?), int? int64NegativeExclusive = default(int?), uint? unsignedInteger = default(uint?), long? int64 = default(long?), ulong? unsignedLong = default(ulong?), decimal number = default(decimal), float? varFloat = default(float?), double? varDouble = default(double?), decimal? varDecimal = default(decimal?), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this._Number = number; // to ensure "varByte" is required (not null) @@ -190,7 +190,7 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer + public int? Integer { get{ return _Integer;} set @@ -199,7 +199,7 @@ public int Integer _flagInteger = true; } } - private int _Integer; + private int? _Integer; private bool _flagInteger; /// @@ -214,7 +214,7 @@ public bool ShouldSerializeInteger() /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 + public int? Int32 { get{ return _Int32;} set @@ -223,7 +223,7 @@ public int Int32 _flagInt32 = true; } } - private int _Int32; + private int? _Int32; private bool _flagInt32; /// @@ -238,7 +238,7 @@ public bool ShouldSerializeInt32() /// Gets or Sets Int32Range /// [DataMember(Name = "int32Range", EmitDefaultValue = false)] - public int Int32Range + public int? Int32Range { get{ return _Int32Range;} set @@ -247,7 +247,7 @@ public int Int32Range _flagInt32Range = true; } } - private int _Int32Range; + private int? _Int32Range; private bool _flagInt32Range; /// @@ -262,7 +262,7 @@ public bool ShouldSerializeInt32Range() /// Gets or Sets Int64Positive /// [DataMember(Name = "int64Positive", EmitDefaultValue = false)] - public long Int64Positive + public int? Int64Positive { get{ return _Int64Positive;} set @@ -271,7 +271,7 @@ public long Int64Positive _flagInt64Positive = true; } } - private long _Int64Positive; + private int? _Int64Positive; private bool _flagInt64Positive; /// @@ -286,7 +286,7 @@ public bool ShouldSerializeInt64Positive() /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative + public int? Int64Negative { get{ return _Int64Negative;} set @@ -295,7 +295,7 @@ public long Int64Negative _flagInt64Negative = true; } } - private long _Int64Negative; + private int? _Int64Negative; private bool _flagInt64Negative; /// @@ -310,7 +310,7 @@ public bool ShouldSerializeInt64Negative() /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive + public int? Int64PositiveExclusive { get{ return _Int64PositiveExclusive;} set @@ -319,7 +319,7 @@ public long Int64PositiveExclusive _flagInt64PositiveExclusive = true; } } - private long _Int64PositiveExclusive; + private int? _Int64PositiveExclusive; private bool _flagInt64PositiveExclusive; /// @@ -334,7 +334,7 @@ public bool ShouldSerializeInt64PositiveExclusive() /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive + public int? Int64NegativeExclusive { get{ return _Int64NegativeExclusive;} set @@ -343,7 +343,7 @@ public long Int64NegativeExclusive _flagInt64NegativeExclusive = true; } } - private long _Int64NegativeExclusive; + private int? _Int64NegativeExclusive; private bool _flagInt64NegativeExclusive; /// @@ -358,7 +358,7 @@ public bool ShouldSerializeInt64NegativeExclusive() /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger + public uint? UnsignedInteger { get{ return _UnsignedInteger;} set @@ -367,7 +367,7 @@ public uint UnsignedInteger _flagUnsignedInteger = true; } } - private uint _UnsignedInteger; + private uint? _UnsignedInteger; private bool _flagUnsignedInteger; /// @@ -382,7 +382,7 @@ public bool ShouldSerializeUnsignedInteger() /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 + public long? Int64 { get{ return _Int64;} set @@ -391,7 +391,7 @@ public long Int64 _flagInt64 = true; } } - private long _Int64; + private long? _Int64; private bool _flagInt64; /// @@ -406,7 +406,7 @@ public bool ShouldSerializeInt64() /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong + public ulong? UnsignedLong { get{ return _UnsignedLong;} set @@ -415,7 +415,7 @@ public ulong UnsignedLong _flagUnsignedLong = true; } } - private ulong _UnsignedLong; + private ulong? _UnsignedLong; private bool _flagUnsignedLong; /// @@ -454,7 +454,7 @@ public bool ShouldSerializeNumber() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float + public float? Float { get{ return _Float;} set @@ -463,7 +463,7 @@ public float Float _flagFloat = true; } } - private float _Float; + private float? _Float; private bool _flagFloat; /// @@ -478,7 +478,7 @@ public bool ShouldSerializeFloat() /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double + public double? Double { get{ return _Double;} set @@ -487,7 +487,7 @@ public double Double _flagDouble = true; } } - private double _Double; + private double? _Double; private bool _flagDouble; /// @@ -502,7 +502,7 @@ public bool ShouldSerializeDouble() /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal + public decimal? Decimal { get{ return _Decimal;} set @@ -511,7 +511,7 @@ public decimal Decimal _flagDecimal = true; } } - private decimal _Decimal; + private decimal? _Decimal; private bool _flagDecimal; /// @@ -625,7 +625,7 @@ public bool ShouldSerializeDate() /// /// 2007-12-03T10:15:30+01:00 [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime + public DateTime? DateTime { get{ return _DateTime;} set @@ -634,7 +634,7 @@ public DateTime DateTime _flagDateTime = true; } } - private DateTime _DateTime; + private DateTime? _DateTime; private bool _flagDateTime; /// @@ -650,7 +650,7 @@ public bool ShouldSerializeDateTime() /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid + public Guid? Uuid { get{ return _Uuid;} set @@ -659,7 +659,7 @@ public Guid Uuid _flagUuid = true; } } - private Guid _Uuid; + private Guid? _Uuid; private bool _flagUuid; /// @@ -850,20 +850,59 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.Int32Range != null) + { + hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); + } + if (this.Int64Positive != null) + { + hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); + } + if (this.Int64Negative != null) + { + hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); + } + if (this.Int64PositiveExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); + } + if (this.Int64NegativeExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -919,74 +958,74 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // Int32Range (int) maximum - if (this.Int32Range > (int)2147483647) + // Int32Range (int?) maximum + if (this.Int32Range > (int?)2147483647) { yield return new ValidationResult("Invalid value for Int32Range, must be a value less than or equal to 2147483647.", new [] { "Int32Range" }); } - // Int32Range (int) minimum - if (this.Int32Range < (int)-2147483648) + // Int32Range (int?) minimum + if (this.Int32Range < (int?)-2147483648) { yield return new ValidationResult("Invalid value for Int32Range, must be a value greater than or equal to -2147483648.", new [] { "Int32Range" }); } - // Int64Positive (long) minimum - if (this.Int64Positive < (long)2147483648) + // Int64Positive (int?) minimum + if (this.Int64Positive < (int?)2147483648) { yield return new ValidationResult("Invalid value for Int64Positive, must be a value greater than or equal to 2147483648.", new [] { "Int64Positive" }); } - // Int64Negative (long) maximum - if (this.Int64Negative > (long)-2147483649) + // Int64Negative (int?) maximum + if (this.Int64Negative > (int?)-2147483649) { yield return new ValidationResult("Invalid value for Int64Negative, must be a value less than or equal to -2147483649.", new [] { "Int64Negative" }); } - // Int64PositiveExclusive (long) minimum - if (this.Int64PositiveExclusive < (long)2147483647) + // Int64PositiveExclusive (int?) minimum + if (this.Int64PositiveExclusive < (int?)2147483647) { yield return new ValidationResult("Invalid value for Int64PositiveExclusive, must be a value greater than 2147483647.", new [] { "Int64PositiveExclusive" }); } - // Int64NegativeExclusive (long) maximum - if (this.Int64NegativeExclusive <= (long)-2147483648) + // Int64NegativeExclusive (int?) maximum + if (this.Int64NegativeExclusive <= (int?)-2147483648) { yield return new ValidationResult("Invalid value for Int64NegativeExclusive, must be a value less than -2147483648.", new [] { "Int64NegativeExclusive" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -1003,26 +1042,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MapTest.cs index f2f2f90a2f98..86734c1a001e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MapTest.cs @@ -58,7 +58,7 @@ public enum InnerEnum /// mapOfEnumString. /// directMap. /// indirectMap. - public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) { this._MapMapOfString = mapMapOfString; if (this.MapMapOfString != null) @@ -135,7 +135,7 @@ public bool ShouldSerializeMapOfEnumString() /// Gets or Sets DirectMap /// [DataMember(Name = "direct_map", EmitDefaultValue = false)] - public Dictionary DirectMap + public Dictionary DirectMap { get{ return _DirectMap;} set @@ -144,7 +144,7 @@ public Dictionary DirectMap _flagDirectMap = true; } } - private Dictionary _DirectMap; + private Dictionary _DirectMap; private bool _flagDirectMap; /// @@ -159,7 +159,7 @@ public bool ShouldSerializeDirectMap() /// Gets or Sets IndirectMap /// [DataMember(Name = "indirect_map", EmitDefaultValue = false)] - public Dictionary IndirectMap + public Dictionary IndirectMap { get{ return _IndirectMap;} set @@ -168,7 +168,7 @@ public Dictionary IndirectMap _flagIndirectMap = true; } } - private Dictionary _IndirectMap; + private Dictionary _IndirectMap; private bool _flagIndirectMap; /// diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs index a698b135146d..332213eceeda 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs @@ -75,7 +75,7 @@ protected MixLog() /// ProductId is only required for color mixes. /// ProductName is only required for color mixes. /// selectedVersionIndex. - public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int)) + public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid? shopId = default(Guid?), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int? selectedVersionIndex = default(int?)) { this._Id = id; // to ensure "description" is required (not null) @@ -289,7 +289,7 @@ public bool ShouldSerializeMixDate() /// Gets or Sets ShopId /// [DataMember(Name = "shopId", EmitDefaultValue = false)] - public Guid ShopId + public Guid? ShopId { get{ return _ShopId;} set @@ -298,7 +298,7 @@ public Guid ShopId _flagShopId = true; } } - private Guid _ShopId; + private Guid? _ShopId; private bool _flagShopId; /// @@ -970,7 +970,7 @@ public bool ShouldSerializeProductName() /// Gets or Sets SelectedVersionIndex /// [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)] - public int SelectedVersionIndex + public int? SelectedVersionIndex { get{ return _SelectedVersionIndex;} set @@ -979,7 +979,7 @@ public int SelectedVersionIndex _flagSelectedVersionIndex = true; } } - private int _SelectedVersionIndex; + private int? _SelectedVersionIndex; private bool _flagSelectedVersionIndex; /// @@ -1191,7 +1191,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ProductName.GetHashCode(); } - hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + if (this.SelectedVersionIndex != null) + { + hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 49e94cc5e5db..0c1e37574cf0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -48,10 +48,10 @@ public MixedAnyOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedAnyOfContent(bool actualInstance) + /// An instance of bool?. + public MixedAnyOfContent(bool? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -60,10 +60,10 @@ public MixedAnyOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedAnyOfContent(int actualInstance) + /// An instance of int?. + public MixedAnyOfContent(int? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -72,10 +72,10 @@ public MixedAnyOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedAnyOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedAnyOfContent(decimal? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { _actualInstance = value; } - else if (value.GetType() == typeof(bool)) + else if (value.GetType() == typeof(bool?)) { _actualInstance = value; } - else if (value.GetType() == typeof(decimal)) + else if (value.GetType() == typeof(decimal?)) { _actualInstance = value; } - else if (value.GetType() == typeof(int)) + else if (value.GetType() == typeof(int?)) { _actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)ActualInstance; + return (bool?)ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)ActualInstance; + return (int?)ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)ActualInstance; + return (decimal?)ActualInstance; } /// @@ -235,38 +235,38 @@ public static MixedAnyOfContent FromJson(string jsonString) try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index e2527cc3c315..9ef03c99ae1f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -48,10 +48,10 @@ public MixedOneOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedOneOfContent(bool actualInstance) + /// An instance of bool?. + public MixedOneOfContent(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -60,10 +60,10 @@ public MixedOneOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedOneOfContent(int actualInstance) + /// An instance of int?. + public MixedOneOfContent(int? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -72,10 +72,10 @@ public MixedOneOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedOneOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedOneOfContent(decimal? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } - else if (value.GetType() == typeof(decimal) || value is decimal) + else if (value.GetType() == typeof(decimal?) || value is decimal?) { this._actualInstance = value; } - else if (value.GetType() == typeof(int) || value is int) + else if (value.GetType() == typeof(int?) || value is int?) { this._actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)this.ActualInstance; + return (int?)this.ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)this.ActualInstance; + return (decimal?)this.ActualInstance; } /// @@ -246,61 +246,61 @@ public static MixedOneOfContent FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(decimal).GetProperty("AdditionalProperties") == null) + if (typeof(decimal?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("decimal"); + matchedTypes.Add("decimal?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(int).GetProperty("AdditionalProperties") == null) + if (typeof(int?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("int"); + matchedTypes.Add("int?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 63fbf7fba85f..35752149df97 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -39,7 +39,7 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableuuid. /// dateTime. /// map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid uuidWithPattern = default(Guid), Guid uuid = default(Guid), DateTime dateTime = default(DateTime), Dictionary map = default(Dictionary)) + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuidWithPattern = default(Guid?), Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this._UuidWithPattern = uuidWithPattern; if (this.UuidWithPattern != null) @@ -68,7 +68,7 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable [DataMember(Name = "uuid_with_pattern", EmitDefaultValue = false)] - public Guid UuidWithPattern + public Guid? UuidWithPattern { get{ return _UuidWithPattern;} set @@ -77,7 +77,7 @@ public Guid UuidWithPattern _flagUuidWithPattern = true; } } - private Guid _UuidWithPattern; + private Guid? _UuidWithPattern; private bool _flagUuidWithPattern; /// @@ -92,7 +92,7 @@ public bool ShouldSerializeUuidWithPattern() /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid + public Guid? Uuid { get{ return _Uuid;} set @@ -101,7 +101,7 @@ public Guid Uuid _flagUuid = true; } } - private Guid _Uuid; + private Guid? _Uuid; private bool _flagUuid; /// @@ -116,7 +116,7 @@ public bool ShouldSerializeUuid() /// Gets or Sets DateTime /// [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime + public DateTime? DateTime { get{ return _DateTime;} set @@ -125,7 +125,7 @@ public DateTime DateTime _flagDateTime = true; } } - private DateTime _DateTime; + private DateTime? _DateTime; private bool _flagDateTime; /// @@ -253,7 +253,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.UuidWithPattern != null) { - // UuidWithPattern (Guid) pattern + // UuidWithPattern (Guid?) pattern Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) { diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs index 48815cd97300..bb87bad9709c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs @@ -37,7 +37,7 @@ public partial class Model200Response : IEquatable, IValidatab /// /// name. /// varClass. - public Model200Response(int name = default(int), string varClass = default(string)) + public Model200Response(int? name = default(int?), string varClass = default(string)) { this._Name = name; if (this.Name != null) @@ -56,7 +56,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name + public int? Name { get{ return _Name;} set @@ -65,7 +65,7 @@ public int Name _flagName = true; } } - private int _Name; + private int? _Name; private bool _flagName; /// @@ -159,7 +159,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs index 8fa808d911cd..d4b224c315df 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Name.cs @@ -84,7 +84,7 @@ public bool ShouldSerializeVarName() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -122,7 +122,7 @@ public bool ShouldSerializeProperty() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -194,12 +194,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs index ce6120813dac..0b1682055464 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -39,7 +39,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// justNumber. - public NumberOnly(decimal justNumber = default(decimal)) + public NumberOnly(decimal? justNumber = default(decimal?)) { this._JustNumber = justNumber; if (this.JustNumber != null) @@ -53,7 +53,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber + public decimal? JustNumber { get{ return _JustNumber;} set @@ -62,7 +62,7 @@ public decimal JustNumber _flagJustNumber = true; } } - private decimal _JustNumber; + private decimal? _JustNumber; private bool _flagJustNumber; /// @@ -131,7 +131,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 7f4945565272..fda91dee559b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -39,7 +39,7 @@ public partial class ObjectWithDeprecatedFields : IEquatableid. /// deprecatedRef. /// bars. - public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) + public ObjectWithDeprecatedFields(string uuid = default(string), decimal? id = default(decimal?), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) { this._Uuid = uuid; if (this.Uuid != null) @@ -93,7 +93,7 @@ public bool ShouldSerializeUuid() /// [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id + public decimal? Id { get{ return _Id;} set @@ -102,7 +102,7 @@ public decimal Id _flagId = true; } } - private decimal _Id; + private decimal? _Id; private bool _flagId; /// @@ -228,7 +228,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs index 435540a69eff..d0d1e76ea821 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Order.cs @@ -94,7 +94,7 @@ public bool ShouldSerializeStatus() /// shipDate. /// Order Status. /// complete (default to false). - public Order(long id = default(long), long petId = default(long), int quantity = default(int), DateTime shipDate = default(DateTime), StatusEnum? status = default(StatusEnum?), bool complete = false) + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { this._Id = id; if (this.Id != null) @@ -128,7 +128,7 @@ public bool ShouldSerializeStatus() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id + public long? Id { get{ return _Id;} set @@ -137,7 +137,7 @@ public long Id _flagId = true; } } - private long _Id; + private long? _Id; private bool _flagId; /// @@ -152,7 +152,7 @@ public bool ShouldSerializeId() /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId + public long? PetId { get{ return _PetId;} set @@ -161,7 +161,7 @@ public long PetId _flagPetId = true; } } - private long _PetId; + private long? _PetId; private bool _flagPetId; /// @@ -176,7 +176,7 @@ public bool ShouldSerializePetId() /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity + public int? Quantity { get{ return _Quantity;} set @@ -185,7 +185,7 @@ public int Quantity _flagQuantity = true; } } - private int _Quantity; + private int? _Quantity; private bool _flagQuantity; /// @@ -201,7 +201,7 @@ public bool ShouldSerializeQuantity() /// /// 2020-02-02T20:20:20.000222Z [DataMember(Name = "shipDate", EmitDefaultValue = false)] - public DateTime ShipDate + public DateTime? ShipDate { get{ return _ShipDate;} set @@ -210,7 +210,7 @@ public DateTime ShipDate _flagShipDate = true; } } - private DateTime _ShipDate; + private DateTime? _ShipDate; private bool _flagShipDate; /// @@ -225,7 +225,7 @@ public bool ShouldSerializeShipDate() /// Gets or Sets Complete /// [DataMember(Name = "complete", EmitDefaultValue = true)] - public bool Complete + public bool? Complete { get{ return _Complete;} set @@ -234,7 +234,7 @@ public bool Complete _flagComplete = true; } } - private bool _Complete; + private bool? _Complete; private bool _flagComplete; /// @@ -308,15 +308,27 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); } hashCode = (hashCode * 59) + this.Status.GetHashCode(); - hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + if (this.Complete != null) + { + hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs index 066dc26dbe15..e1b29aa60f28 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -38,7 +38,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// myNumber. /// myString. /// myBoolean. - public OuterComposite(decimal myNumber = default(decimal), string myString = default(string), bool myBoolean = default(bool)) + public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?)) { this._MyNumber = myNumber; if (this.MyNumber != null) @@ -62,7 +62,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber + public decimal? MyNumber { get{ return _MyNumber;} set @@ -71,7 +71,7 @@ public decimal MyNumber _flagMyNumber = true; } } - private decimal _MyNumber; + private decimal? _MyNumber; private bool _flagMyNumber; /// @@ -110,7 +110,7 @@ public bool ShouldSerializeMyString() /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean + public bool? MyBoolean { get{ return _MyBoolean;} set @@ -119,7 +119,7 @@ public bool MyBoolean _flagMyBoolean = true; } } - private bool _MyBoolean; + private bool? _MyBoolean; private bool _flagMyBoolean; /// @@ -190,12 +190,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs index ccfaf5892e50..25771159f354 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Pet.cs @@ -102,7 +102,7 @@ protected Pet() /// photoUrls (required). /// tags. /// pet status in the store. - public Pet(long id = default(long), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { // to ensure "name" is required (not null) if (name == null) @@ -143,7 +143,7 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id + public long? Id { get{ return _Id;} set @@ -152,7 +152,7 @@ public long Id _flagId = true; } } - private long _Id; + private long? _Id; private bool _flagId; /// @@ -323,7 +323,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 5e4472118140..09dd24285e98 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -36,10 +36,10 @@ public partial class PolymorphicProperty : AbstractOpenAPISchema, IEquatable /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public PolymorphicProperty(bool actualInstance) + /// An instance of bool?. + public PolymorphicProperty(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -104,7 +104,7 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } @@ -114,19 +114,19 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool?, string"); } } } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// @@ -240,21 +240,21 @@ public static PolymorphicProperty FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); } else { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs index 307699149098..ac539665e356 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -77,7 +77,7 @@ public bool ShouldSerializeRequiredNullableEnumInteger() /// /// Defines RequiredNotnullableEnumInteger /// - public enum RequiredNotnullableEnumIntegerEnum + public enum RequiredNotnullableEnumIntegerEnu { /// /// Enum NUMBER_1 for value: 1 @@ -96,7 +96,7 @@ public enum RequiredNotnullableEnumIntegerEnum /// [DataMember(Name = "required_notnullable_enum_integer", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerEnum RequiredNotnullableEnumInteger + public RequiredNotnullableEnumIntegerEnu RequiredNotnullableEnumInteger { get{ return _RequiredNotnullableEnumInteger;} set @@ -105,7 +105,7 @@ public RequiredNotnullableEnumIntegerEnum RequiredNotnullableEnumInteger _flagRequiredNotnullableEnumInteger = true; } } - private RequiredNotnullableEnumIntegerEnum _RequiredNotnullableEnumInteger; + private RequiredNotnullableEnumIntegerEnu _RequiredNotnullableEnumInteger; private bool _flagRequiredNotnullableEnumInteger; /// @@ -246,7 +246,7 @@ public bool ShouldSerializeRequiredNullableEnumIntegerOnly() /// /// Defines RequiredNotnullableEnumIntegerOnly /// - public enum RequiredNotnullableEnumIntegerOnlyEnum + public enum RequiredNotnullableEnumIntegerOnlyEnu { /// /// Enum NUMBER_2 for value: 2 @@ -265,7 +265,7 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum /// [DataMember(Name = "required_notnullable_enum_integer_only", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerOnlyEnum RequiredNotnullableEnumIntegerOnly + public RequiredNotnullableEnumIntegerOnlyEnu RequiredNotnullableEnumIntegerOnly { get{ return _RequiredNotnullableEnumIntegerOnly;} set @@ -274,7 +274,7 @@ public RequiredNotnullableEnumIntegerOnlyEnum RequiredNotnullableEnumIntegerOnly _flagRequiredNotnullableEnumIntegerOnly = true; } } - private RequiredNotnullableEnumIntegerOnlyEnum _RequiredNotnullableEnumIntegerOnly; + private RequiredNotnullableEnumIntegerOnlyEnu _RequiredNotnullableEnumIntegerOnly; private bool _flagRequiredNotnullableEnumIntegerOnly; /// @@ -331,6 +331,7 @@ public bool ShouldSerializeNotrequiredNullableEnumIntegerOnly() /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -853,7 +854,7 @@ protected RequiredClass() /// requiredNotnullableArrayOfString (required). /// notrequiredNullableArrayOfString. /// notrequiredNotnullableArrayOfString. - public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int notRequiredNotnullableintegerProp = default(int), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool notrequiredNotnullableBooleanProp = default(bool), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime notRequiredNotnullableDateProp = default(DateTime), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime notrequiredNotnullableDatetimeProp = default(DateTime), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnum requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnum), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnum requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnum), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid notrequiredNotnullableUuid = default(Guid), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) + public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int? notRequiredNotnullableintegerProp = default(int?), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool? notrequiredNotnullableBooleanProp = default(bool?), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime? notRequiredNotnullableDateProp = default(DateTime?), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNotnullableDatetimeProp = default(DateTime?), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnu requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnu), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnu requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnu), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid? notrequiredNotnullableUuid = default(Guid?), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) { // to ensure "requiredNullableIntegerProp" is required (not null) if (requiredNullableIntegerProp == null) @@ -1111,7 +1112,7 @@ public bool ShouldSerializeNotRequiredNullableIntegerProp() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp + public int? NotRequiredNotnullableintegerProp { get{ return _NotRequiredNotnullableintegerProp;} set @@ -1120,7 +1121,7 @@ public int NotRequiredNotnullableintegerProp _flagNotRequiredNotnullableintegerProp = true; } } - private int _NotRequiredNotnullableintegerProp; + private int? _NotRequiredNotnullableintegerProp; private bool _flagNotRequiredNotnullableintegerProp; /// @@ -1303,7 +1304,7 @@ public bool ShouldSerializeNotrequiredNullableBooleanProp() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp + public bool? NotrequiredNotnullableBooleanProp { get{ return _NotrequiredNotnullableBooleanProp;} set @@ -1312,7 +1313,7 @@ public bool NotrequiredNotnullableBooleanProp _flagNotrequiredNotnullableBooleanProp = true; } } - private bool _NotrequiredNotnullableBooleanProp; + private bool? _NotrequiredNotnullableBooleanProp; private bool _flagNotrequiredNotnullableBooleanProp; /// @@ -1403,7 +1404,7 @@ public bool ShouldSerializeNotRequiredNullableDateProp() /// [JsonConverter(typeof(OpenAPIDateConverter))] [DataMember(Name = "not_required_notnullable_date_prop", EmitDefaultValue = false)] - public DateTime NotRequiredNotnullableDateProp + public DateTime? NotRequiredNotnullableDateProp { get{ return _NotRequiredNotnullableDateProp;} set @@ -1412,7 +1413,7 @@ public DateTime NotRequiredNotnullableDateProp _flagNotRequiredNotnullableDateProp = true; } } - private DateTime _NotRequiredNotnullableDateProp; + private DateTime? _NotRequiredNotnullableDateProp; private bool _flagNotRequiredNotnullableDateProp; /// @@ -1499,7 +1500,7 @@ public bool ShouldSerializeNotrequiredNullableDatetimeProp() /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [DataMember(Name = "notrequired_notnullable_datetime_prop", EmitDefaultValue = false)] - public DateTime NotrequiredNotnullableDatetimeProp + public DateTime? NotrequiredNotnullableDatetimeProp { get{ return _NotrequiredNotnullableDatetimeProp;} set @@ -1508,7 +1509,7 @@ public DateTime NotrequiredNotnullableDatetimeProp _flagNotrequiredNotnullableDatetimeProp = true; } } - private DateTime _NotrequiredNotnullableDatetimeProp; + private DateTime? _NotrequiredNotnullableDatetimeProp; private bool _flagNotrequiredNotnullableDatetimeProp; /// @@ -1599,7 +1600,7 @@ public bool ShouldSerializeNotrequiredNullableUuid() /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "notrequired_notnullable_uuid", EmitDefaultValue = false)] - public Guid NotrequiredNotnullableUuid + public Guid? NotrequiredNotnullableUuid { get{ return _NotrequiredNotnullableUuid;} set @@ -1608,7 +1609,7 @@ public Guid NotrequiredNotnullableUuid _flagNotrequiredNotnullableUuid = true; } } - private Guid _NotrequiredNotnullableUuid; + private Guid? _NotrequiredNotnullableUuid; private bool _flagNotrequiredNotnullableUuid; /// @@ -1825,7 +1826,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -1851,7 +1855,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs index e255b357996f..4d97749e9ea9 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Return.cs @@ -47,7 +47,7 @@ protected Return() /// varLock (required). /// varAbstract (required). /// varUnsafe. - public Return(int varReturn = default(int), string varLock = default(string), string varAbstract = default(string), string varUnsafe = default(string)) + public Return(int? varReturn = default(int?), string varLock = default(string), string varAbstract = default(string), string varUnsafe = default(string)) { // to ensure "varLock" is required (not null) if (varLock == null) @@ -78,7 +78,7 @@ protected Return() /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn + public int? VarReturn { get{ return _VarReturn;} set @@ -87,7 +87,7 @@ public int VarReturn _flagVarReturn = true; } } - private int _VarReturn; + private int? _VarReturn; private bool _flagVarReturn; /// @@ -231,7 +231,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.Lock != null) { hashCode = (hashCode * 59) + this.Lock.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 39c65b7da193..0f1611ec084c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -37,7 +37,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// /// roleUuid. /// role. - public RolesReportsHash(Guid roleUuid = default(Guid), RolesReportsHashRole role = default(RolesReportsHashRole)) + public RolesReportsHash(Guid? roleUuid = default(Guid?), RolesReportsHashRole role = default(RolesReportsHashRole)) { this._RoleUuid = roleUuid; if (this.RoleUuid != null) @@ -56,7 +56,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// Gets or Sets RoleUuid /// [DataMember(Name = "role_uuid", EmitDefaultValue = false)] - public Guid RoleUuid + public Guid? RoleUuid { get{ return _RoleUuid;} set @@ -65,7 +65,7 @@ public Guid RoleUuid _flagRoleUuid = true; } } - private Guid _RoleUuid; + private Guid? _RoleUuid; private bool _flagRoleUuid; /// diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs index 0a0faf3cba34..09479d8d527e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -37,7 +37,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// /// specialPropertyName. /// varSpecialModelName. - public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) + public SpecialModelName(long? specialPropertyName = default(long?), string varSpecialModelName = default(string)) { this._SpecialPropertyName = specialPropertyName; if (this.SpecialPropertyName != null) @@ -56,7 +56,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName + public long? SpecialPropertyName { get{ return _SpecialPropertyName;} set @@ -65,7 +65,7 @@ public long SpecialPropertyName _flagSpecialPropertyName = true; } } - private long _SpecialPropertyName; + private long? _SpecialPropertyName; private bool _flagSpecialPropertyName; /// @@ -159,7 +159,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs index b631ebc96160..34ad954cc624 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Tag.cs @@ -37,7 +37,7 @@ public partial class Tag : IEquatable, IValidatableObject /// /// id. /// name. - public Tag(long id = default(long), string name = default(string)) + public Tag(long? id = default(long?), string name = default(string)) { this._Id = id; if (this.Id != null) @@ -56,7 +56,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id + public long? Id { get{ return _Id;} set @@ -65,7 +65,7 @@ public long Id _flagId = true; } } - private long _Id; + private long? _Id; private bool _flagId; /// @@ -159,7 +159,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs index 21c819cf09ac..79bd12429727 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/User.cs @@ -47,7 +47,7 @@ public partial class User : IEquatable, IValidatableObject /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value.. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values.. - public User(long id = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int userStatus = default(int), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) { this._Id = id; if (this.Id != null) @@ -116,7 +116,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id + public long? Id { get{ return _Id;} set @@ -125,7 +125,7 @@ public long Id _flagId = true; } } - private long _Id; + private long? _Id; private bool _flagId; /// @@ -285,7 +285,7 @@ public bool ShouldSerializePhone() /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus + public int? UserStatus { get{ return _UserStatus;} set @@ -294,7 +294,7 @@ public int UserStatus _flagUserStatus = true; } } - private int _UserStatus; + private int? _UserStatus; private bool _flagUserStatus; /// @@ -474,7 +474,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -499,7 +502,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs index 24659725b63f..07555ab6f458 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Whale.cs @@ -46,7 +46,7 @@ protected Whale() /// hasBaleen. /// hasTeeth. /// className (required). - public Whale(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string)) + public Whale(bool? hasBaleen = default(bool?), bool? hasTeeth = default(bool?), string className = default(string)) { // to ensure "className" is required (not null) if (className == null) @@ -71,7 +71,7 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen + public bool? HasBaleen { get{ return _HasBaleen;} set @@ -80,7 +80,7 @@ public bool HasBaleen _flagHasBaleen = true; } } - private bool _HasBaleen; + private bool? _HasBaleen; private bool _flagHasBaleen; /// @@ -95,7 +95,7 @@ public bool ShouldSerializeHasBaleen() /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth + public bool? HasTeeth { get{ return _HasTeeth;} set @@ -104,7 +104,7 @@ public bool HasTeeth _flagHasTeeth = true; } } - private bool _HasTeeth; + private bool? _HasTeeth; private bool _flagHasTeeth; /// @@ -199,8 +199,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ApiResponse.md index bb723d2baa13..faacf536f173 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/AppleReq.md index 005b8f8058a4..bb7b7576dc2e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md index 4764c0ff80c5..fb113074d3f2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayArrayNumber** | **List<List<decimal>>** | | [optional] +**ArrayArrayNumber** | **List<List<decimal?>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayOfNumberOnly.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayOfNumberOnly.md index d93717103b8b..30e148e05489 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayNumber** | **List<decimal>** | | [optional] +**ArrayNumber** | **List<decimal?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayTest.md index d74d11bae77d..89094d5e895c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ArrayTest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ArrayOfString** | **List<string>** | | [optional] -**ArrayArrayOfInteger** | **List<List<long>>** | | [optional] +**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional] **ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Banana.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Banana.md index 226952d1cecb..72cbdcf0af0b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/BananaReq.md index f99aab99e387..2bf39b773a66 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Cat.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Cat.md index aa1ac17604eb..d41c6ec6eb65 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Category.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Category.md index 032a1faeb3ff..bdbe5ac5a483 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/DateOnlyClass.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/DateOnlyClass.md index d0912d2ac415..258d6673e120 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/DateOnlyClass.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/DateOnlyClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateOnlyProperty** | **DateTime** | | [optional] +**DateOnlyProperty** | **DateTime?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/DefaultApi.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/DefaultApi.md index d9d4abc6ebbc..775590ae8779 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/DefaultApi.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/DefaultApi.md @@ -177,7 +177,7 @@ No authorization required # **Hello** -> List<Guid> Hello () +> List<Guid?> Hello () Hello @@ -204,7 +204,7 @@ namespace Example try { // Hello - List result = apiInstance.Hello(); + List result = apiInstance.Hello(); Debug.WriteLine(result); } catch (ApiException e) @@ -225,7 +225,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Hello - ApiResponse> response = apiInstance.HelloWithHttpInfo(); + ApiResponse> response = apiInstance.HelloWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -242,7 +242,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**List** +**List** ### Authorization diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/EnumTest.md index 5ce3c4addd9b..66cc8c6d245e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FakeApi.md index 06309f31e8a5..936da43e5a99 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FakeApi.md @@ -111,7 +111,7 @@ No authorization required # **FakeOuterBooleanSerialize** -> bool FakeOuterBooleanSerialize (bool? body = null) +> bool? FakeOuterBooleanSerialize (bool? body = null) @@ -138,7 +138,7 @@ namespace Example try { - bool result = apiInstance.FakeOuterBooleanSerialize(body); + bool? result = apiInstance.FakeOuterBooleanSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -158,7 +158,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -179,7 +179,7 @@ catch (ApiException e) ### Return type -**bool** +**bool?** ### Authorization @@ -289,7 +289,7 @@ No authorization required # **FakeOuterNumberSerialize** -> decimal FakeOuterNumberSerialize (decimal? body = null) +> decimal? FakeOuterNumberSerialize (decimal? body = null) @@ -316,7 +316,7 @@ namespace Example try { - decimal result = apiInstance.FakeOuterNumberSerialize(body); + decimal? result = apiInstance.FakeOuterNumberSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -336,7 +336,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -357,7 +357,7 @@ catch (ApiException e) ### Return type -**decimal** +**decimal?** ### Authorization @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid? requiredStringUuid, string body = null) @@ -401,7 +401,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); - var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String + var requiredStringUuid = "requiredStringUuid_example"; // Guid? | Required UUID String var body = "body_example"; // string | Input string as post body (optional) try @@ -443,7 +443,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringUuid** | **Guid** | Required UUID String | | +| **requiredStringUuid** | **Guid?** | Required UUID String | | | **body** | **string** | Input string as post body | [optional] | ### Return type @@ -1067,7 +1067,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1094,8 +1094,8 @@ namespace Example config.Password = "YOUR_PASSWORD"; var apiInstance = new FakeApi(config); - var number = 8.14D; // decimal | None - var varDouble = 1.2D; // double | None + var number = 8.14D; // decimal? | None + var varDouble = 1.2D; // double? | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) @@ -1146,8 +1146,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **number** | **decimal** | None | | -| **varDouble** | **double** | None | | +| **number** | **decimal?** | None | | +| **varDouble** | **double?** | None | | | **patternWithoutDelimiter** | **string** | None | | | **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | @@ -1287,7 +1287,7 @@ No authorization required # **TestGroupParameters** -> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) +> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) Fake endpoint to test group parameters (optional) @@ -1313,9 +1313,9 @@ namespace Example config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FakeApi(config); - var requiredStringGroup = 56; // int | Required String in group parameters - var requiredBooleanGroup = true; // bool | Required Boolean in group parameters - var requiredInt64Group = 789L; // long | Required Integer in group parameters + var requiredStringGroup = 56; // int? | Required String in group parameters + var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters + var requiredInt64Group = 789L; // long? | Required Integer in group parameters var stringGroup = 56; // int? | String in group parameters (optional) var booleanGroup = true; // bool? | Boolean in group parameters (optional) var int64Group = 789L; // long? | Integer in group parameters (optional) @@ -1357,9 +1357,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringGroup** | **int** | Required String in group parameters | | -| **requiredBooleanGroup** | **bool** | Required Boolean in group parameters | | -| **requiredInt64Group** | **long** | Required Integer in group parameters | | +| **requiredStringGroup** | **int?** | Required String in group parameters | | +| **requiredBooleanGroup** | **bool?** | Required Boolean in group parameters | | +| **requiredInt64Group** | **long?** | Required Integer in group parameters | | | **stringGroup** | **int?** | String in group parameters | [optional] | | **booleanGroup** | **bool?** | Boolean in group parameters | [optional] | | **int64Group** | **long?** | Integer in group parameters | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FormatTest.md index c2144b5e3cf6..9c47daec76bb 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FormatTest.md @@ -4,21 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | -**DateTime** | **DateTime** | | [optional] -**Uuid** | **Guid** | | [optional] +**DateTime** | **DateTime?** | | [optional] +**Uuid** | **Guid?** | | [optional] **Password** | **string** | | **PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] **PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Fruit.md index 40df92d7c9b1..05aed3a2642b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FruitReq.md index 5db6b0e2d1d8..8f072a324cb0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/GmFruit.md index da7b3a6ccf9f..265348eca479 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Mammal.md index aab8f4db9c75..75172cd3d506 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/MapTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/MapTest.md index 516f9d4fd37e..07c245718f12 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/MapTest.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/MapTest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional] **MapOfEnumString** | **Dictionary<string, MapTest.InnerEnum>** | | [optional] -**DirectMap** | **Dictionary<string, bool>** | | [optional] -**IndirectMap** | **Dictionary<string, bool>** | | [optional] +**DirectMap** | **Dictionary<string, bool?>** | | [optional] +**IndirectMap** | **Dictionary<string, bool?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 050210a3e371..81d4a847dbe2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UuidWithPattern** | **Guid** | | [optional] -**Uuid** | **Guid** | | [optional] -**DateTime** | **DateTime** | | [optional] +**UuidWithPattern** | **Guid?** | | [optional] +**Uuid** | **Guid?** | | [optional] +**DateTime** | **DateTime?** | | [optional] **Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Model200Response.md index 31f4d86fe43d..820f058bf221 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Name.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Name.md index 3e19db154a80..e440a45f0ae1 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NumberOnly.md index 14a7c0f1071b..1af131f829ec 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b..20391539c912 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Order.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Order.md index 66c55c3b4737..1202b46b44ce 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Order.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] **Status** | **string** | Order Status | [optional] -**Complete** | **bool** | | [optional] [default to false] +**Complete** | **bool?** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/OuterComposite.md index eb42bcc1aaa4..71ca9b879223 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Pet.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Pet.md index c7224764e2d4..a54829f9a8e2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/PetApi.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/PetApi.md index 220b1ae30105..c8b18ee1626d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/PetApi.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/PetApi.md @@ -104,7 +104,7 @@ void (empty response body) # **DeletePet** -> void DeletePet (long petId, string apiKey = null) +> void DeletePet (long? petId, string apiKey = null) Deletes a pet @@ -128,7 +128,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | Pet id to delete + var petId = 789L; // long? | Pet id to delete var apiKey = "apiKey_example"; // string | (optional) try @@ -168,7 +168,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | Pet id to delete | | +| **petId** | **long?** | Pet id to delete | | | **apiKey** | **string** | | [optional] | ### Return type @@ -384,7 +384,7 @@ catch (ApiException e) # **GetPetById** -> Pet GetPetById (long petId) +> Pet GetPetById (long? petId) Find pet by ID @@ -416,7 +416,7 @@ namespace Example // config.AddApiKeyPrefix("api_key_query", "Bearer"); var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to return + var petId = 789L; // long? | ID of pet to return try { @@ -459,7 +459,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to return | | +| **petId** | **long?** | ID of pet to return | | ### Return type @@ -576,7 +576,7 @@ void (empty response body) # **UpdatePetWithForm** -> void UpdatePetWithForm (long petId, string name = null, string status = null) +> void UpdatePetWithForm (long? petId, string name = null, string status = null) Updates a pet in the store with form data @@ -600,7 +600,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet that needs to be updated + var petId = 789L; // long? | ID of pet that needs to be updated var name = "name_example"; // string | Updated name of the pet (optional) var status = "status_example"; // string | Updated status of the pet (optional) @@ -641,7 +641,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet that needs to be updated | | +| **petId** | **long?** | ID of pet that needs to be updated | | | **name** | **string** | Updated name of the pet | [optional] | | **status** | **string** | Updated status of the pet | [optional] | @@ -668,7 +668,7 @@ void (empty response body) # **UploadFile** -> ApiResponse UploadFile (long petId, string additionalMetadata = null, System.IO.Stream file = null) +> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null) uploads an image @@ -692,7 +692,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload (optional) @@ -737,7 +737,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | | **file** | **System.IO.Stream****System.IO.Stream** | file to upload | [optional] | @@ -764,7 +764,7 @@ catch (ApiException e) # **UploadFileWithRequiredFile** -> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = null) +> ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null) uploads an image (required) @@ -788,7 +788,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var requiredFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) @@ -833,7 +833,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **requiredFile** | **System.IO.Stream****System.IO.Stream** | file to upload | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RequiredClass.md index 07b6f018f6c1..018f2a832832 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,23 +15,23 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] -**NotRequiredNotnullableDateProp** | **DateTime** | | [optional] +**NotRequiredNotnullableDateProp** | **DateTime?** | | [optional] **RequiredNotnullableDatetimeProp** | **DateTime** | | **RequiredNullableDatetimeProp** | **DateTime?** | | **NotrequiredNullableDatetimeProp** | **DateTime?** | | [optional] -**NotrequiredNotnullableDatetimeProp** | **DateTime** | | [optional] +**NotrequiredNotnullableDatetimeProp** | **DateTime?** | | [optional] **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] @@ -43,7 +43,7 @@ Name | Type | Description | Notes **RequiredNullableUuid** | **Guid?** | | **RequiredNotnullableUuid** | **Guid** | | **NotrequiredNullableUuid** | **Guid?** | | [optional] -**NotrequiredNotnullableUuid** | **Guid** | | [optional] +**NotrequiredNotnullableUuid** | **Guid?** | | [optional] **RequiredNullableArrayOfString** | **List<string>** | | **RequiredNotnullableArrayOfString** | **List<string>** | | **NotrequiredNullableArrayOfString** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Return.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Return.md index 052ac9190068..8eec64177930 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RolesReportsHash.md index 309b0c02615c..52bb81a7dab6 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RolesReportsHash.md @@ -5,7 +5,7 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] +**RoleUuid** | **Guid?** | | [optional] **Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1..6d9805d03479 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/StoreApi.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/StoreApi.md index 179da0ff637e..2d557c4cfa81 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/StoreApi.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/StoreApi.md @@ -99,7 +99,7 @@ No authorization required # **GetInventory** -> Dictionary<string, int> GetInventory () +> Dictionary<string, int?> GetInventory () Returns pet inventories by status @@ -131,7 +131,7 @@ namespace Example try { // Returns pet inventories by status - Dictionary result = apiInstance.GetInventory(); + Dictionary result = apiInstance.GetInventory(); Debug.WriteLine(result); } catch (ApiException e) @@ -152,7 +152,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Returns pet inventories by status - ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); + ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -169,7 +169,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**Dictionary** +**Dictionary** ### Authorization @@ -190,7 +190,7 @@ This endpoint does not need any parameter. # **GetOrderById** -> Order GetOrderById (long orderId) +> Order GetOrderById (long? orderId) Find purchase order by ID @@ -213,7 +213,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new StoreApi(config); - var orderId = 789L; // long | ID of pet that needs to be fetched + var orderId = 789L; // long? | ID of pet that needs to be fetched try { @@ -256,7 +256,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **orderId** | **long** | ID of pet that needs to be fetched | | +| **orderId** | **long?** | ID of pet that needs to be fetched | | ### Return type diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Tag.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Tag.md index fdd22eb31fdd..f86abfc26e02 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/User.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/User.md index b0cd4dc042bf..da9b34219d84 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Whale.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Whale.md index 5fc3dc7f85c2..a1512d751e8e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 54f3d2e41a93..2e22006cf95b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -73,8 +73,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - List Hello(int operationIndex = 0); + /// List<Guid?> + List Hello(int operationIndex = 0); /// /// Hello @@ -84,8 +84,8 @@ public interface IDefaultApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - ApiResponse> HelloWithHttpInfo(int operationIndex = 0); + /// ApiResponse of List<Guid?> + ApiResponse> HelloWithHttpInfo(int operationIndex = 0); /// /// /// @@ -188,8 +188,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<Guid?> + System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hello @@ -200,8 +200,8 @@ public interface IDefaultApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<Guid?>) + System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -641,10 +641,10 @@ public Org.OpenAPITools.Client.ApiResponse GetCountryWithHttpInfo(string /// /// Thrown when fails to make API call /// Index associated with the operation. - /// List<Guid> - public List Hello(int operationIndex = 0) + /// List<Guid?> + public List Hello(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); return localVarResponse.Data; } @@ -653,8 +653,8 @@ public List Hello(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of List<Guid> - public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) + /// ApiResponse of List<Guid?> + public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -684,7 +684,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("Hello", localVarResponse); @@ -703,10 +703,10 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<Guid> - public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<Guid?> + public async System.Threading.Tasks.Task> HelloAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await HelloWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -716,8 +716,8 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<Guid?>) + public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -748,7 +748,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo(int ope // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index a61c5d240e23..29d75013441d 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -54,8 +54,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); + /// bool? + bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0); /// /// @@ -66,8 +66,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); + /// ApiResponse of bool? + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0); /// /// /// @@ -100,8 +100,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); + /// decimal? + decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0); /// /// @@ -112,8 +112,8 @@ public interface IFakeApiSync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); + /// ApiResponse of decimal? + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0); /// /// /// @@ -125,7 +125,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string), int operationIndex = 0); + string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0); /// /// @@ -138,7 +138,7 @@ public interface IFakeApiSync : IApiAccessor /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string), int operationIndex = 0); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0); /// /// Array of Enums /// @@ -304,7 +304,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// - void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -329,7 +329,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); + ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0); /// /// To test enum parameters /// @@ -382,7 +382,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// Fake endpoint to test group parameters (optional) @@ -399,7 +399,7 @@ public interface IFakeApiSync : IApiAccessor /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); + ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0); /// /// test inline additionalProperties /// @@ -563,8 +563,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of bool? + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -576,8 +576,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (bool?) + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -613,8 +613,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of decimal? + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -626,8 +626,8 @@ public interface IFakeApiAsync : IApiAccessor /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (decimal?) + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -640,7 +640,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -654,7 +654,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Array of Enums /// @@ -850,7 +850,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -876,7 +876,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -932,7 +932,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint to test group parameters (optional) @@ -950,7 +950,7 @@ public interface IFakeApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// test inline additionalProperties /// @@ -1346,10 +1346,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) + /// bool? + public bool? FakeOuterBooleanSerialize(bool? body = default(bool?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1359,8 +1359,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Index associated with the operation. - /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) + /// ApiResponse of bool? + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1392,7 +1392,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterBooleanSerialize", localVarResponse); @@ -1412,10 +1412,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of bool? + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterBooleanSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1426,8 +1426,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input boolean as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (bool?) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1460,7 +1460,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1614,10 +1614,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) + /// decimal? + public decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?), int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1627,8 +1627,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Index associated with the operation. - /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) + /// ApiResponse of decimal? + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?), int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1660,7 +1660,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("FakeOuterNumberSerialize", localVarResponse); @@ -1680,10 +1680,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of decimal? + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterNumberSerializeWithHttpInfoAsync(body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1694,8 +1694,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input number as post body (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (decimal?) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1728,7 +1728,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -1750,7 +1750,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string), int operationIndex = 0) + public string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); return localVarResponse.Data; @@ -1764,8 +1764,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Index associated with the operation. /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1819,7 +1825,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1834,8 +1840,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2870,7 +2882,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// - public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } @@ -2895,8 +2907,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3021,7 +3045,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3047,8 +3071,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'number' is set + if (number == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + } + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + } + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) { @@ -3386,7 +3422,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -3403,8 +3439,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -3479,7 +3533,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -3497,8 +3551,26 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + } + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index 8db5fd36849d..3f214ffb4c5f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -55,7 +55,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// - void DeletePet(long petId, string apiKey = default(string), int operationIndex = 0); + void DeletePet(long? petId, string apiKey = default(string), int operationIndex = 0); /// /// Deletes a pet @@ -68,7 +68,7 @@ public interface IPetApiSync : IApiAccessor /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), int operationIndex = 0); + ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string), int operationIndex = 0); /// /// Finds Pets by status /// @@ -127,7 +127,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// Pet - Pet GetPetById(long petId, int operationIndex = 0); + Pet GetPetById(long? petId, int operationIndex = 0); /// /// Find pet by ID @@ -139,7 +139,7 @@ public interface IPetApiSync : IApiAccessor /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0); + ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0); /// /// Update an existing pet /// @@ -169,7 +169,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), int operationIndex = 0); + void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string), int operationIndex = 0); /// /// Updates a pet in the store with form data @@ -183,7 +183,7 @@ public interface IPetApiSync : IApiAccessor /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), int operationIndex = 0); + ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string), int operationIndex = 0); /// /// uploads an image /// @@ -193,7 +193,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); + ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); /// /// uploads an image @@ -207,7 +207,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); + ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0); /// /// uploads an image (required) /// @@ -217,7 +217,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); /// /// uploads an image (required) @@ -231,7 +231,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0); #endregion Synchronous Operations } @@ -278,7 +278,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Deletes a pet @@ -292,7 +292,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Finds Pets by status /// @@ -356,7 +356,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find pet by ID @@ -369,7 +369,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an existing pet /// @@ -408,7 +408,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Updates a pet in the store with form data @@ -423,7 +423,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image /// @@ -437,7 +437,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image @@ -452,7 +452,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) /// @@ -466,7 +466,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) @@ -481,7 +481,7 @@ public interface IPetApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -818,7 +818,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// - public void DeletePet(long petId, string apiKey = default(string), int operationIndex = 0) + public void DeletePet(long? petId, string apiKey = default(string), int operationIndex = 0) { DeletePetWithHttpInfo(petId, apiKey); } @@ -831,8 +831,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -903,7 +909,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await DeletePetWithHttpInfoAsync(petId, apiKey, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -917,8 +923,14 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet, i /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1413,7 +1425,7 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// ID of pet to return /// Index associated with the operation. /// Pet - public Pet GetPetById(long petId, int operationIndex = 0) + public Pet GetPetById(long? petId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); return localVarResponse.Data; @@ -1426,8 +1438,14 @@ public Pet GetPetById(long petId, int operationIndex = 0) /// ID of pet to return /// Index associated with the operation. /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long? petId, int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1489,7 +1507,7 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetPetByIdWithHttpInfoAsync(petId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -1503,8 +1521,14 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1777,7 +1801,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string), int operationIndex = 0) + public void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string), int operationIndex = 0) { UpdatePetWithFormWithHttpInfo(petId, name, status); } @@ -1791,8 +1815,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Index associated with the operation. /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1869,7 +1899,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { await UpdatePetWithFormWithHttpInfoAsync(petId, name, status, operationIndex, cancellationToken).ConfigureAwait(false); } @@ -1884,8 +1914,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1963,7 +1999,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) + public ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); return localVarResponse.Data; @@ -1978,8 +2014,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -2057,7 +2099,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2073,8 +2115,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2153,7 +2201,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) + public ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResponse.Data; @@ -2168,8 +2216,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Index associated with the operation. /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { @@ -2251,7 +2305,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -2267,8 +2321,14 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + } + // verify the required parameter 'requiredFile' is set if (requiredFile == null) { diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index e8882b0fc2e4..d70c41ee64bf 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -58,8 +58,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - Dictionary GetInventory(int operationIndex = 0); + /// Dictionary<string, int?> + Dictionary GetInventory(int operationIndex = 0); /// /// Returns pet inventories by status @@ -69,8 +69,8 @@ public interface IStoreApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); + /// ApiResponse of Dictionary<string, int?> + ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0); /// /// Find purchase order by ID /// @@ -81,7 +81,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - Order GetOrderById(long orderId, int operationIndex = 0); + Order GetOrderById(long? orderId, int operationIndex = 0); /// /// Find purchase order by ID @@ -93,7 +93,7 @@ public interface IStoreApiSync : IApiAccessor /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0); + ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0); /// /// Place an order for a pet /// @@ -157,8 +157,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of Dictionary<string, int?> + System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Returns pet inventories by status @@ -169,8 +169,8 @@ public interface IStoreApiAsync : IApiAccessor /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (Dictionary<string, int?>) + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID /// @@ -182,7 +182,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID @@ -195,7 +195,7 @@ public interface IStoreApiAsync : IApiAccessor /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Place an order for a pet /// @@ -486,10 +486,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// /// Thrown when fails to make API call /// Index associated with the operation. - /// Dictionary<string, int> - public Dictionary GetInventory(int operationIndex = 0) + /// Dictionary<string, int?> + public Dictionary GetInventory(int operationIndex = 0) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); return localVarResponse.Data; } @@ -498,8 +498,8 @@ public Dictionary GetInventory(int operationIndex = 0) /// /// Thrown when fails to make API call /// Index associated with the operation. - /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) + /// ApiResponse of Dictionary<string, int?> + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo(int operationIndex = 0) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -534,7 +534,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetInventory", localVarResponse); @@ -553,10 +553,10 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of Dictionary<string, int?> + public async System.Threading.Tasks.Task> GetInventoryAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await GetInventoryWithHttpInfoAsync(operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -566,8 +566,8 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (Dictionary<string, int?>) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -603,7 +603,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -624,7 +624,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// ID of pet that needs to be fetched /// Index associated with the operation. /// Order - public Order GetOrderById(long orderId, int operationIndex = 0) + public Order GetOrderById(long? orderId, int operationIndex = 0) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); return localVarResponse.Data; @@ -637,8 +637,14 @@ public Order GetOrderById(long orderId, int operationIndex = 0) /// ID of pet that needs to be fetched /// Index associated with the operation. /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId, int operationIndex = 0) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long? orderId, int operationIndex = 0) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -690,7 +696,7 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = await GetOrderByIdWithHttpInfoAsync(orderId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; @@ -704,8 +710,14 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'orderId' is set + if (orderId == null) + { + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + } + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1f..2fe81b88e769 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -38,7 +38,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// code. /// type. /// message. - public ApiResponse(int code = default(int), string type = default(string), string message = default(string)) + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; this.Type = type; @@ -50,7 +50,7 @@ public partial class ApiResponse : IEquatable, IValidatableObject /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -124,7 +124,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 3eef221be3e3..97e5fd1574b4 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -42,7 +42,7 @@ protected AppleReq() { } /// /// cultivar (required). /// mealy. - public AppleReq(string cultivar = default(string), bool mealy = default(bool)) + public AppleReq(string cultivar = default(string), bool? mealy = default(bool?)) { // to ensure "cultivar" is required (not null) if (cultivar == null) @@ -63,7 +63,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -121,7 +121,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 3e1666ca90f8..c360a39a785e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// arrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { this.ArrayArrayNumber = arrayArrayNumber; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable [DataMember(Name = "ArrayArrayNumber", EmitDefaultValue = false)] - public List> ArrayArrayNumber { get; set; } + public List> ArrayArrayNumber { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index f2946f435b53..738d58a1fc98 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -36,7 +36,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Initializes a new instance of the class. /// /// arrayNumber. - public ArrayOfNumberOnly(List arrayNumber = default(List)) + public ArrayOfNumberOnly(List arrayNumber = default(List)) { this.ArrayNumber = arrayNumber; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class ArrayOfNumberOnly : IEquatable, IValidat /// Gets or Sets ArrayNumber /// [DataMember(Name = "ArrayNumber", EmitDefaultValue = false)] - public List ArrayNumber { get; set; } + public List ArrayNumber { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 343e486f6575..17f688b2d87f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -38,7 +38,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// arrayOfString. /// arrayArrayOfInteger. /// arrayArrayOfModel. - public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; this.ArrayArrayOfInteger = arrayArrayOfInteger; @@ -56,7 +56,7 @@ public partial class ArrayTest : IEquatable, IValidatableObject /// Gets or Sets ArrayArrayOfInteger /// [DataMember(Name = "array_array_of_integer", EmitDefaultValue = false)] - public List> ArrayArrayOfInteger { get; set; } + public List> ArrayArrayOfInteger { get; set; } /// /// Gets or Sets ArrayArrayOfModel diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..661739ae18e5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -36,7 +36,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// lengthCm. - public Banana(decimal lengthCm = default(decimal)) + public Banana(decimal? lengthCm = default(decimal?)) { this.LengthCm = lengthCm; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class Banana : IEquatable, IValidatableObject /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 360cb5281e80..6901cc0d18e3 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -42,7 +42,7 @@ protected BananaReq() { } /// /// lengthCm (required). /// sweet. - public BananaReq(decimal lengthCm = default(decimal), bool sweet = default(bool)) + public BananaReq(decimal lengthCm = default(decimal), bool? sweet = default(bool?)) { this.LengthCm = lengthCm; this.Sweet = sweet; @@ -58,7 +58,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -113,7 +113,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index a427b55727d7..ff6135f34289 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -48,7 +48,7 @@ protected Cat() /// declawed. /// className (required) (default to "Cat"). /// color (default to "red"). - public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color) + public Cat(bool? declawed = default(bool?), string className = @"Cat", string color = @"red") : base(className, color) { this.Declawed = declawed; this.AdditionalProperties = new Dictionary(); @@ -58,7 +58,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Gets or Sets additional properties @@ -119,7 +119,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index 5edb4edfea4a..ceab7f116b8e 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -45,7 +45,7 @@ protected Category() /// /// id. /// name (required) (default to "default-name"). - public Category(long id = default(long), string name = @"default-name") + public Category(long? id = default(long?), string name = @"default-name") { // to ensure "name" is required (not null) if (name == null) @@ -61,7 +61,7 @@ protected Category() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -128,7 +128,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 9933ec57ea9e..cd661c3cd755 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -36,7 +36,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje /// Initializes a new instance of the class. /// /// dateOnlyProperty. - public DateOnlyClass(DateTime dateOnlyProperty = default(DateTime)) + public DateOnlyClass(DateTime? dateOnlyProperty = default(DateTime?)) { this.DateOnlyProperty = dateOnlyProperty; this.AdditionalProperties = new Dictionary(); @@ -48,7 +48,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje /// Fri Jul 21 00:00:00 UTC 2017 [DataMember(Name = "dateOnlyProperty", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime DateOnlyProperty { get; set; } + public DateTime? DateOnlyProperty { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 27d1193954ea..e7eef0d94a37 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -179,6 +179,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 7158640c24e2..4bec4463326b 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -62,7 +62,7 @@ protected FormatTest() /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int? integer = default(int?), int? int32 = default(int?), uint? unsignedInteger = default(uint?), long? int64 = default(long?), ulong? unsignedLong = default(ulong?), decimal number = default(decimal), float? varFloat = default(float?), double? varDouble = default(double?), decimal? varDecimal = default(decimal?), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; // to ensure "varByte" is required (not null) @@ -100,31 +100,31 @@ protected FormatTest() /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -136,19 +136,19 @@ protected FormatTest() /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -181,14 +181,14 @@ protected FormatTest() /// /// 2007-12-03T10:15:30+01:00 [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Uuid /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets Password @@ -293,15 +293,39 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); @@ -357,38 +381,38 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Integer (int) maximum - if (this.Integer > (int)100) + // Integer (int?) maximum + if (this.Integer > (int?)100) { yield return new ValidationResult("Invalid value for Integer, must be a value less than or equal to 100.", new [] { "Integer" }); } - // Integer (int) minimum - if (this.Integer < (int)10) + // Integer (int?) minimum + if (this.Integer < (int?)10) { yield return new ValidationResult("Invalid value for Integer, must be a value greater than or equal to 10.", new [] { "Integer" }); } - // Int32 (int) maximum - if (this.Int32 > (int)200) + // Int32 (int?) maximum + if (this.Int32 > (int?)200) { yield return new ValidationResult("Invalid value for Int32, must be a value less than or equal to 200.", new [] { "Int32" }); } - // Int32 (int) minimum - if (this.Int32 < (int)20) + // Int32 (int?) minimum + if (this.Int32 < (int?)20) { yield return new ValidationResult("Invalid value for Int32, must be a value greater than or equal to 20.", new [] { "Int32" }); } - // UnsignedInteger (uint) maximum - if (this.UnsignedInteger > (uint)200) + // UnsignedInteger (uint?) maximum + if (this.UnsignedInteger > (uint?)200) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value less than or equal to 200.", new [] { "UnsignedInteger" }); } - // UnsignedInteger (uint) minimum - if (this.UnsignedInteger < (uint)20) + // UnsignedInteger (uint?) minimum + if (this.UnsignedInteger < (uint?)20) { yield return new ValidationResult("Invalid value for UnsignedInteger, must be a value greater than or equal to 20.", new [] { "UnsignedInteger" }); } @@ -405,26 +429,26 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Number, must be a value greater than or equal to 32.1.", new [] { "Number" }); } - // Float (float) maximum - if (this.Float > (float)987.6) + // Float (float?) maximum + if (this.Float > (float?)987.6) { yield return new ValidationResult("Invalid value for Float, must be a value less than or equal to 987.6.", new [] { "Float" }); } - // Float (float) minimum - if (this.Float < (float)54.3) + // Float (float?) minimum + if (this.Float < (float?)54.3) { yield return new ValidationResult("Invalid value for Float, must be a value greater than or equal to 54.3.", new [] { "Float" }); } - // Double (double) maximum - if (this.Double > (double)123.4) + // Double (double?) maximum + if (this.Double > (double?)123.4) { yield return new ValidationResult("Invalid value for Double, must be a value less than or equal to 123.4.", new [] { "Double" }); } - // Double (double) minimum - if (this.Double < (double)67.8) + // Double (double?) minimum + if (this.Double < (double?)67.8) { yield return new ValidationResult("Invalid value for Double, must be a value greater than or equal to 67.8.", new [] { "Double" }); } diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 691f128ea5fb..a67ae46eed35 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -58,7 +58,7 @@ public enum InnerEnum /// mapOfEnumString. /// directMap. /// indirectMap. - public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) { this.MapMapOfString = mapMapOfString; this.MapOfEnumString = mapOfEnumString; @@ -83,13 +83,13 @@ public enum InnerEnum /// Gets or Sets DirectMap /// [DataMember(Name = "direct_map", EmitDefaultValue = false)] - public Dictionary DirectMap { get; set; } + public Dictionary DirectMap { get; set; } /// /// Gets or Sets IndirectMap /// [DataMember(Name = "indirect_map", EmitDefaultValue = false)] - public Dictionary IndirectMap { get; set; } + public Dictionary IndirectMap { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 49e94cc5e5db..0c1e37574cf0 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -48,10 +48,10 @@ public MixedAnyOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedAnyOfContent(bool actualInstance) + /// An instance of bool?. + public MixedAnyOfContent(bool? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -60,10 +60,10 @@ public MixedAnyOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedAnyOfContent(int actualInstance) + /// An instance of int?. + public MixedAnyOfContent(int? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -72,10 +72,10 @@ public MixedAnyOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedAnyOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedAnyOfContent(decimal? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { _actualInstance = value; } - else if (value.GetType() == typeof(bool)) + else if (value.GetType() == typeof(bool?)) { _actualInstance = value; } - else if (value.GetType() == typeof(decimal)) + else if (value.GetType() == typeof(decimal?)) { _actualInstance = value; } - else if (value.GetType() == typeof(int)) + else if (value.GetType() == typeof(int?)) { _actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)ActualInstance; + return (bool?)ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)ActualInstance; + return (int?)ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)ActualInstance; + return (decimal?)ActualInstance; } /// @@ -235,38 +235,38 @@ public static MixedAnyOfContent FromJson(string jsonString) try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index e2527cc3c315..9ef03c99ae1f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -48,10 +48,10 @@ public MixedOneOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedOneOfContent(bool actualInstance) + /// An instance of bool?. + public MixedOneOfContent(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -60,10 +60,10 @@ public MixedOneOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedOneOfContent(int actualInstance) + /// An instance of int?. + public MixedOneOfContent(int? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -72,10 +72,10 @@ public MixedOneOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedOneOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedOneOfContent(decimal? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -112,15 +112,15 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } - else if (value.GetType() == typeof(decimal) || value is decimal) + else if (value.GetType() == typeof(decimal?) || value is decimal?) { this._actualInstance = value; } - else if (value.GetType() == typeof(int) || value is int) + else if (value.GetType() == typeof(int?) || value is int?) { this._actualInstance = value; } @@ -130,7 +130,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -146,33 +146,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)this.ActualInstance; + return (int?)this.ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)this.ActualInstance; + return (decimal?)this.ActualInstance; } /// @@ -246,61 +246,61 @@ public static MixedOneOfContent FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(decimal).GetProperty("AdditionalProperties") == null) + if (typeof(decimal?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("decimal"); + matchedTypes.Add("decimal?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(int).GetProperty("AdditionalProperties") == null) + if (typeof(int?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("int"); + matchedTypes.Add("int?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 5f51e31aa034..2d6665a3fd5c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -39,7 +39,7 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableuuid. /// dateTime. /// map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid uuidWithPattern = default(Guid), Guid uuid = default(Guid), DateTime dateTime = default(DateTime), Dictionary map = default(Dictionary)) + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuidWithPattern = default(Guid?), Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.UuidWithPattern = uuidWithPattern; this.Uuid = uuid; @@ -52,19 +52,19 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable [DataMember(Name = "uuid_with_pattern", EmitDefaultValue = false)] - public Guid UuidWithPattern { get; set; } + public Guid? UuidWithPattern { get; set; } /// /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets DateTime /// [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Map @@ -165,7 +165,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.UuidWithPattern != null) { - // UuidWithPattern (Guid) pattern + // UuidWithPattern (Guid?) pattern Regex regexUuidWithPattern = new Regex(@"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}", RegexOptions.CultureInvariant); if (!regexUuidWithPattern.Match(this.UuidWithPattern.ToString()).Success) { diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e754..ee546305b2f2 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -37,7 +37,7 @@ public partial class Model200Response : IEquatable, IValidatab /// /// name. /// varClass. - public Model200Response(int name = default(int), string varClass = default(string)) + public Model200Response(int? name = default(int?), string varClass = default(string)) { this.Name = name; this.Class = varClass; @@ -48,7 +48,7 @@ public partial class Model200Response : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index f34052aa706c..69938e7b7c61 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -62,7 +62,7 @@ protected Name() /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -82,7 +82,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -154,12 +154,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 7218451d9fb0..3bccec432a60 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -39,7 +39,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// justNumber. - public NumberOnly(decimal justNumber = default(decimal)) + public NumberOnly(decimal? justNumber = default(decimal?)) { this.JustNumber = justNumber; this.AdditionalProperties = new Dictionary(); @@ -49,7 +49,7 @@ public partial class NumberOnly : IEquatable, IValidatableObject /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Gets or Sets additional properties @@ -109,7 +109,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 76faa5154c86..867e47627c1a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -39,7 +39,7 @@ public partial class ObjectWithDeprecatedFields : IEquatableid. /// deprecatedRef. /// bars. - public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) + public ObjectWithDeprecatedFields(string uuid = default(string), decimal? id = default(decimal?), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) { this.Uuid = uuid; this.Id = id; @@ -59,7 +59,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -140,7 +140,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index e9471d3ba022..c2dd7fb1d098 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -74,14 +74,15 @@ public enum StatusEnum /// shipDate. /// Order Status. /// complete (default to false). - public Order(long id = default(long), long petId = default(long), int quantity = default(int), DateTime shipDate = default(DateTime), StatusEnum? status = default(StatusEnum?), bool complete = false) + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { this.Id = id; this.PetId = petId; this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - this.Complete = complete; + // use default value if no "complete" provided + this.Complete = complete ?? false; this.AdditionalProperties = new Dictionary(); } @@ -89,32 +90,32 @@ public enum StatusEnum /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate /// /// 2020-02-02T20:20:20.000222Z [DataMember(Name = "shipDate", EmitDefaultValue = false)] - public DateTime ShipDate { get; set; } + public DateTime? ShipDate { get; set; } /// /// Gets or Sets Complete /// [DataMember(Name = "complete", EmitDefaultValue = true)] - public bool Complete { get; set; } + public bool? Complete { get; set; } /// /// Gets or Sets additional properties @@ -179,15 +180,27 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); } hashCode = (hashCode * 59) + this.Status.GetHashCode(); - hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + if (this.Complete != null) + { + hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 47d598a27e6f..35dfdce59861 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -38,7 +38,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// myNumber. /// myString. /// myBoolean. - public OuterComposite(decimal myNumber = default(decimal), string myString = default(string), bool myBoolean = default(bool)) + public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?)) { this.MyNumber = myNumber; this.MyString = myString; @@ -50,7 +50,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -62,7 +62,7 @@ public partial class OuterComposite : IEquatable, IValidatableOb /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Gets or Sets additional properties @@ -124,12 +124,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index e4722f4a5379..55b6fbe49e98 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -82,7 +82,7 @@ protected Pet() /// photoUrls (required). /// tags. /// pet status in the store. - public Pet(long id = default(long), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { // to ensure "name" is required (not null) if (name == null) @@ -107,7 +107,7 @@ protected Pet() /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -197,7 +197,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 5e4472118140..09dd24285e98 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -36,10 +36,10 @@ public partial class PolymorphicProperty : AbstractOpenAPISchema, IEquatable /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public PolymorphicProperty(bool actualInstance) + /// An instance of bool?. + public PolymorphicProperty(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -104,7 +104,7 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } @@ -114,19 +114,19 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool?, string"); } } } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// @@ -240,21 +240,21 @@ public static PolymorphicProperty FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); } else { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index d040204ece33..0893b7d98624 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -57,7 +57,7 @@ public enum RequiredNullableEnumIntegerEnum /// /// Defines RequiredNotnullableEnumInteger /// - public enum RequiredNotnullableEnumIntegerEnum + public enum RequiredNotnullableEnumIntegerEnu { /// /// Enum NUMBER_1 for value: 1 @@ -75,7 +75,7 @@ public enum RequiredNotnullableEnumIntegerEnum /// Gets or Sets RequiredNotnullableEnumInteger /// [DataMember(Name = "required_notnullable_enum_integer", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerEnum RequiredNotnullableEnumInteger { get; set; } + public RequiredNotnullableEnumIntegerEnu RequiredNotnullableEnumInteger { get; set; } /// /// Defines NotrequiredNullableEnumInteger /// @@ -146,7 +146,7 @@ public enum RequiredNullableEnumIntegerOnlyEnum /// /// Defines RequiredNotnullableEnumIntegerOnly /// - public enum RequiredNotnullableEnumIntegerOnlyEnum + public enum RequiredNotnullableEnumIntegerOnlyEnu { /// /// Enum NUMBER_2 for value: 2 @@ -164,7 +164,7 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// [DataMember(Name = "required_notnullable_enum_integer_only", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerOnlyEnum RequiredNotnullableEnumIntegerOnly { get; set; } + public RequiredNotnullableEnumIntegerOnlyEnu RequiredNotnullableEnumIntegerOnly { get; set; } /// /// Defines NotrequiredNullableEnumIntegerOnly /// @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -533,7 +534,7 @@ protected RequiredClass() /// requiredNotnullableArrayOfString (required). /// notrequiredNullableArrayOfString. /// notrequiredNotnullableArrayOfString. - public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int notRequiredNotnullableintegerProp = default(int), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool notrequiredNotnullableBooleanProp = default(bool), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime notRequiredNotnullableDateProp = default(DateTime), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime notrequiredNotnullableDatetimeProp = default(DateTime), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnum requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnum), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnum requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnum), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid notrequiredNotnullableUuid = default(Guid), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) + public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int? notRequiredNotnullableintegerProp = default(int?), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool? notrequiredNotnullableBooleanProp = default(bool?), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime? notRequiredNotnullableDateProp = default(DateTime?), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNotnullableDatetimeProp = default(DateTime?), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnu requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnu), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnu requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnu), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid? notrequiredNotnullableUuid = default(Guid?), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) { // to ensure "requiredNullableIntegerProp" is required (not null) if (requiredNullableIntegerProp == null) @@ -649,7 +650,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -697,7 +698,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -725,7 +726,7 @@ protected RequiredClass() /// [DataMember(Name = "not_required_notnullable_date_prop", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime NotRequiredNotnullableDateProp { get; set; } + public DateTime? NotRequiredNotnullableDateProp { get; set; } /// /// Gets or Sets RequiredNotnullableDatetimeProp @@ -749,7 +750,7 @@ protected RequiredClass() /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [DataMember(Name = "notrequired_notnullable_datetime_prop", EmitDefaultValue = false)] - public DateTime NotrequiredNotnullableDatetimeProp { get; set; } + public DateTime? NotrequiredNotnullableDatetimeProp { get; set; } /// /// Gets or Sets RequiredNullableUuid @@ -777,7 +778,7 @@ protected RequiredClass() /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "notrequired_notnullable_uuid", EmitDefaultValue = false)] - public Guid NotrequiredNotnullableUuid { get; set; } + public Guid? NotrequiredNotnullableUuid { get; set; } /// /// Gets or Sets RequiredNullableArrayOfString @@ -913,7 +914,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -939,7 +943,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index fec56c44fa82..cd5db81f763f 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -36,7 +36,7 @@ public partial class Return : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// varReturn. - public Return(int varReturn = default(int)) + public Return(int? varReturn = default(int?)) { this.VarReturn = varReturn; this.AdditionalProperties = new Dictionary(); @@ -46,7 +46,7 @@ public partial class Return : IEquatable, IValidatableObject /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets additional properties @@ -106,7 +106,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 4523238ad385..87943e6b750c 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -37,7 +37,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// /// roleUuid. /// role. - public RolesReportsHash(Guid roleUuid = default(Guid), RolesReportsHashRole role = default(RolesReportsHashRole)) + public RolesReportsHash(Guid? roleUuid = default(Guid?), RolesReportsHashRole role = default(RolesReportsHashRole)) { this.RoleUuid = roleUuid; this.Role = role; @@ -48,7 +48,7 @@ public partial class RolesReportsHash : IEquatable, IValidatab /// Gets or Sets RoleUuid /// [DataMember(Name = "role_uuid", EmitDefaultValue = false)] - public Guid RoleUuid { get; set; } + public Guid? RoleUuid { get; set; } /// /// Gets or Sets Role diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f..6210c3f1e1f5 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -37,7 +37,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// /// specialPropertyName. /// varSpecialModelName. - public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) + public SpecialModelName(long? specialPropertyName = default(long?), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; this.VarSpecialModelName = varSpecialModelName; @@ -48,7 +48,7 @@ public partial class SpecialModelName : IEquatable, IValidatab /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 58eb2c605d15..4e6fd30d63c4 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -37,7 +37,7 @@ public partial class Tag : IEquatable, IValidatableObject /// /// id. /// name. - public Tag(long id = default(long), string name = default(string)) + public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; this.Name = name; @@ -48,7 +48,7 @@ public partial class Tag : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -115,7 +115,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index b7911507a704..486d09dd9180 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -47,7 +47,7 @@ public partial class User : IEquatable, IValidatableObject /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value.. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values.. - public User(long id = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int userStatus = default(int), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) { this.Id = id; this.Username = username; @@ -68,7 +68,7 @@ public partial class User : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -111,7 +111,7 @@ public partial class User : IEquatable, IValidatableObject /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -210,7 +210,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -235,7 +238,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 50119ed39e76..fc488c4ca229 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -46,7 +46,7 @@ protected Whale() /// hasBaleen. /// hasTeeth. /// className (required). - public Whale(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string)) + public Whale(bool? hasBaleen = default(bool?), bool? hasTeeth = default(bool?), string className = default(string)) { // to ensure "className" is required (not null) if (className == null) @@ -63,13 +63,13 @@ protected Whale() /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -137,8 +137,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ApiResponse.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ApiResponse.md index bb723d2baa13..faacf536f173 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ApiResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] +**Code** | **int?** | | [optional] **Type** | **string** | | [optional] **Message** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/AppleReq.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/AppleReq.md index 005b8f8058a4..bb7b7576dc2e 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/AppleReq.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/AppleReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md index 4764c0ff80c5..fb113074d3f2 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayOfArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayArrayNumber** | **List<List<decimal>>** | | [optional] +**ArrayArrayNumber** | **List<List<decimal?>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayOfNumberOnly.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayOfNumberOnly.md index d93717103b8b..30e148e05489 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayOfNumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ArrayNumber** | **List<decimal>** | | [optional] +**ArrayNumber** | **List<decimal?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayTest.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayTest.md index d74d11bae77d..89094d5e895c 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayTest.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ArrayTest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ArrayOfString** | **List<string>** | | [optional] -**ArrayArrayOfInteger** | **List<List<long>>** | | [optional] +**ArrayArrayOfInteger** | **List<List<long?>>** | | [optional] **ArrayArrayOfModel** | **List<List<ReadOnlyFirst>>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Banana.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Banana.md index 226952d1cecb..72cbdcf0af0b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Banana.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Banana.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/BananaReq.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/BananaReq.md index f99aab99e387..2bf39b773a66 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/BananaReq.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/BananaReq.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Cat.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Cat.md index aa1ac17604eb..d41c6ec6eb65 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Cat.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Cat.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Declawed** | **bool** | | [optional] +**Declawed** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Category.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Category.md index 032a1faeb3ff..bdbe5ac5a483 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Category.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Category.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [default to "default-name"] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/DateOnlyClass.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/DateOnlyClass.md index d0912d2ac415..258d6673e120 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/DateOnlyClass.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/DateOnlyClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateOnlyProperty** | **DateTime** | | [optional] +**DateOnlyProperty** | **DateTime?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/DefaultApi.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/DefaultApi.md index d9d4abc6ebbc..775590ae8779 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/DefaultApi.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/DefaultApi.md @@ -177,7 +177,7 @@ No authorization required # **Hello** -> List<Guid> Hello () +> List<Guid?> Hello () Hello @@ -204,7 +204,7 @@ namespace Example try { // Hello - List result = apiInstance.Hello(); + List result = apiInstance.Hello(); Debug.WriteLine(result); } catch (ApiException e) @@ -225,7 +225,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Hello - ApiResponse> response = apiInstance.HelloWithHttpInfo(); + ApiResponse> response = apiInstance.HelloWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -242,7 +242,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**List** +**List** ### Authorization diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/EnumTest.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/EnumTest.md index 5ce3c4addd9b..66cc8c6d245e 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/EnumTest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] **OuterEnum** | **OuterEnum** | | [optional] **OuterEnumInteger** | **OuterEnumInteger** | | [optional] **OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FakeApi.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FakeApi.md index 06309f31e8a5..936da43e5a99 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FakeApi.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FakeApi.md @@ -111,7 +111,7 @@ No authorization required # **FakeOuterBooleanSerialize** -> bool FakeOuterBooleanSerialize (bool? body = null) +> bool? FakeOuterBooleanSerialize (bool? body = null) @@ -138,7 +138,7 @@ namespace Example try { - bool result = apiInstance.FakeOuterBooleanSerialize(body); + bool? result = apiInstance.FakeOuterBooleanSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -158,7 +158,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterBooleanSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -179,7 +179,7 @@ catch (ApiException e) ### Return type -**bool** +**bool?** ### Authorization @@ -289,7 +289,7 @@ No authorization required # **FakeOuterNumberSerialize** -> decimal FakeOuterNumberSerialize (decimal? body = null) +> decimal? FakeOuterNumberSerialize (decimal? body = null) @@ -316,7 +316,7 @@ namespace Example try { - decimal result = apiInstance.FakeOuterNumberSerialize(body); + decimal? result = apiInstance.FakeOuterNumberSerialize(body); Debug.WriteLine(result); } catch (ApiException e) @@ -336,7 +336,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); + ApiResponse response = apiInstance.FakeOuterNumberSerializeWithHttpInfo(body); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -357,7 +357,7 @@ catch (ApiException e) ### Return type -**decimal** +**decimal?** ### Authorization @@ -378,7 +378,7 @@ No authorization required # **FakeOuterStringSerialize** -> string FakeOuterStringSerialize (Guid requiredStringUuid, string body = null) +> string FakeOuterStringSerialize (Guid? requiredStringUuid, string body = null) @@ -401,7 +401,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new FakeApi(config); - var requiredStringUuid = "requiredStringUuid_example"; // Guid | Required UUID String + var requiredStringUuid = "requiredStringUuid_example"; // Guid? | Required UUID String var body = "body_example"; // string | Input string as post body (optional) try @@ -443,7 +443,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringUuid** | **Guid** | Required UUID String | | +| **requiredStringUuid** | **Guid?** | Required UUID String | | | **body** | **string** | Input string as post body | [optional] | ### Return type @@ -1067,7 +1067,7 @@ No authorization required # **TestEndpointParameters** -> void TestEndpointParameters (decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) +> void TestEndpointParameters (decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = null, int? int32 = null, long? int64 = null, float? varFloat = null, string varString = null, System.IO.Stream binary = null, DateTime? date = null, DateTime? dateTime = null, string password = null, string callback = null) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -1094,8 +1094,8 @@ namespace Example config.Password = "YOUR_PASSWORD"; var apiInstance = new FakeApi(config); - var number = 8.14D; // decimal | None - var varDouble = 1.2D; // double | None + var number = 8.14D; // decimal? | None + var varDouble = 1.2D; // double? | None var patternWithoutDelimiter = "patternWithoutDelimiter_example"; // string | None var varByte = System.Text.Encoding.ASCII.GetBytes("BYTE_ARRAY_DATA_HERE"); // byte[] | None var integer = 56; // int? | None (optional) @@ -1146,8 +1146,8 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **number** | **decimal** | None | | -| **varDouble** | **double** | None | | +| **number** | **decimal?** | None | | +| **varDouble** | **double?** | None | | | **patternWithoutDelimiter** | **string** | None | | | **varByte** | **byte[]** | None | | | **integer** | **int?** | None | [optional] | @@ -1287,7 +1287,7 @@ No authorization required # **TestGroupParameters** -> void TestGroupParameters (int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) +> void TestGroupParameters (int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = null, bool? booleanGroup = null, long? int64Group = null) Fake endpoint to test group parameters (optional) @@ -1313,9 +1313,9 @@ namespace Example config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new FakeApi(config); - var requiredStringGroup = 56; // int | Required String in group parameters - var requiredBooleanGroup = true; // bool | Required Boolean in group parameters - var requiredInt64Group = 789L; // long | Required Integer in group parameters + var requiredStringGroup = 56; // int? | Required String in group parameters + var requiredBooleanGroup = true; // bool? | Required Boolean in group parameters + var requiredInt64Group = 789L; // long? | Required Integer in group parameters var stringGroup = 56; // int? | String in group parameters (optional) var booleanGroup = true; // bool? | Boolean in group parameters (optional) var int64Group = 789L; // long? | Integer in group parameters (optional) @@ -1357,9 +1357,9 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **requiredStringGroup** | **int** | Required String in group parameters | | -| **requiredBooleanGroup** | **bool** | Required Boolean in group parameters | | -| **requiredInt64Group** | **long** | Required Integer in group parameters | | +| **requiredStringGroup** | **int?** | Required String in group parameters | | +| **requiredBooleanGroup** | **bool?** | Required Boolean in group parameters | | +| **requiredInt64Group** | **long?** | Required Integer in group parameters | | | **stringGroup** | **int?** | String in group parameters | [optional] | | **booleanGroup** | **bool?** | Boolean in group parameters | [optional] | | **int64Group** | **long?** | Integer in group parameters | [optional] | diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FormatTest.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FormatTest.md index 1b12163e9a6a..a0c247ca17a6 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FormatTest.md @@ -4,26 +4,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Integer** | **int** | | [optional] -**Int32** | **int** | | [optional] -**Int32Range** | **int** | | [optional] -**Int64Positive** | **long** | | [optional] -**Int64Negative** | **long** | | [optional] -**Int64PositiveExclusive** | **long** | | [optional] -**Int64NegativeExclusive** | **long** | | [optional] -**UnsignedInteger** | **uint** | | [optional] -**Int64** | **long** | | [optional] -**UnsignedLong** | **ulong** | | [optional] +**Integer** | **int?** | | [optional] +**Int32** | **int?** | | [optional] +**Int32Range** | **int?** | | [optional] +**Int64Positive** | **int?** | | [optional] +**Int64Negative** | **int?** | | [optional] +**Int64PositiveExclusive** | **int?** | | [optional] +**Int64NegativeExclusive** | **int?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] **String** | **string** | | [optional] **Byte** | **byte[]** | | **Binary** | **System.IO.Stream** | | [optional] **Date** | **DateTime** | | -**DateTime** | **DateTime** | | [optional] -**Uuid** | **Guid** | | [optional] +**DateTime** | **DateTime?** | | [optional] +**Uuid** | **Guid?** | | [optional] **Password** | **string** | | **PatternWithDigits** | **string** | A string that is a 10 digit number. Can have leading zeros. | [optional] **PatternWithDigitsAndDelimiter** | **string** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Fruit.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Fruit.md index 40df92d7c9b1..05aed3a2642b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Fruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FruitReq.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FruitReq.md index 5db6b0e2d1d8..8f072a324cb0 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FruitReq.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FruitReq.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cultivar** | **string** | | -**Mealy** | **bool** | | [optional] +**Mealy** | **bool?** | | [optional] **LengthCm** | **decimal** | | -**Sweet** | **bool** | | [optional] +**Sweet** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/GmFruit.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/GmFruit.md index da7b3a6ccf9f..265348eca479 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/GmFruit.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Cultivar** | **string** | | [optional] **Origin** | **string** | | [optional] **ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**LengthCm** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Mammal.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Mammal.md index aab8f4db9c75..75172cd3d506 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Mammal.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | **Type** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MapTest.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MapTest.md index 516f9d4fd37e..07c245718f12 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MapTest.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MapTest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapMapOfString** | **Dictionary<string, Dictionary<string, string>>** | | [optional] **MapOfEnumString** | **Dictionary<string, MapTest.InnerEnum>** | | [optional] -**DirectMap** | **Dictionary<string, bool>** | | [optional] -**IndirectMap** | **Dictionary<string, bool>** | | [optional] +**DirectMap** | **Dictionary<string, bool?>** | | [optional] +**IndirectMap** | **Dictionary<string, bool?>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixLog.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixLog.md index 1872e30daaa3..59943e8898e5 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixLog.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixLog.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **Guid** | | **Description** | **string** | | **MixDate** | **DateTime** | | -**ShopId** | **Guid** | | [optional] +**ShopId** | **Guid?** | | [optional] **TotalPrice** | **float?** | | [optional] **TotalRecalculations** | **int** | | **TotalOverPoors** | **int** | | @@ -35,7 +35,7 @@ Name | Type | Description | Notes **PrimerProductId** | **string** | | [optional] **ProductId** | **string** | ProductId is only required for color mixes | [optional] **ProductName** | **string** | ProductName is only required for color mixes | [optional] -**SelectedVersionIndex** | **int** | | [optional] +**SelectedVersionIndex** | **int?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 050210a3e371..81d4a847dbe2 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**UuidWithPattern** | **Guid** | | [optional] -**Uuid** | **Guid** | | [optional] -**DateTime** | **DateTime** | | [optional] +**UuidWithPattern** | **Guid?** | | [optional] +**Uuid** | **Guid?** | | [optional] +**DateTime** | **DateTime?** | | [optional] **Map** | [**Dictionary<string, Animal>**](Animal.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Model200Response.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Model200Response.md index 31f4d86fe43d..820f058bf221 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Model200Response.md @@ -5,7 +5,7 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] +**Name** | **int?** | | [optional] **Class** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Name.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Name.md index 3e19db154a80..e440a45f0ae1 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Name.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Name.md @@ -6,9 +6,9 @@ Model for testing model name same as property name Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **VarName** | **int** | | -**SnakeCase** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] **Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**Var123Number** | **int?** | | [optional] [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NumberOnly.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NumberOnly.md index 14a7c0f1071b..1af131f829ec 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NumberOnly.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NumberOnly.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustNumber** | **decimal** | | [optional] +**JustNumber** | **decimal?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md index 7a335d446f4b..20391539c912 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ObjectWithDeprecatedFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] +**Id** | **decimal?** | | [optional] **DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] **Bars** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Order.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Order.md index 66c55c3b4737..1202b46b44ce 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Order.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] **Status** | **string** | Order Status | [optional] -**Complete** | **bool** | | [optional] [default to false] +**Complete** | **bool?** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/OuterComposite.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/OuterComposite.md index eb42bcc1aaa4..71ca9b879223 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/OuterComposite.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/OuterComposite.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MyNumber** | **decimal** | | [optional] +**MyNumber** | **decimal?** | | [optional] **MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyBoolean** | **bool?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Pet.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Pet.md index c7224764e2d4..a54829f9a8e2 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Pet.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Category** | [**Category**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/PetApi.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/PetApi.md index 00a45b118d44..735be6a8b7d8 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/PetApi.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/PetApi.md @@ -104,7 +104,7 @@ void (empty response body) # **DeletePet** -> void DeletePet (long petId, string apiKey = null) +> void DeletePet (long? petId, string apiKey = null) Deletes a pet @@ -128,7 +128,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | Pet id to delete + var petId = 789L; // long? | Pet id to delete var apiKey = "apiKey_example"; // string | (optional) try @@ -168,7 +168,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | Pet id to delete | | +| **petId** | **long?** | Pet id to delete | | | **apiKey** | **string** | | [optional] | ### Return type @@ -386,7 +386,7 @@ catch (ApiException e) # **GetPetById** -> Pet GetPetById (long petId) +> Pet GetPetById (long? petId) Find pet by ID @@ -418,7 +418,7 @@ namespace Example // config.AddApiKeyPrefix("api_key_query", "Bearer"); var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to return + var petId = 789L; // long? | ID of pet to return try { @@ -461,7 +461,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to return | | +| **petId** | **long?** | ID of pet to return | | ### Return type @@ -578,7 +578,7 @@ void (empty response body) # **UpdatePetWithForm** -> void UpdatePetWithForm (long petId, string name = null, string status = null) +> void UpdatePetWithForm (long? petId, string name = null, string status = null) Updates a pet in the store with form data @@ -602,7 +602,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet that needs to be updated + var petId = 789L; // long? | ID of pet that needs to be updated var name = "name_example"; // string | Updated name of the pet (optional) var status = "status_example"; // string | Updated status of the pet (optional) @@ -643,7 +643,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet that needs to be updated | | +| **petId** | **long?** | ID of pet that needs to be updated | | | **name** | **string** | Updated name of the pet | [optional] | | **status** | **string** | Updated status of the pet | [optional] | @@ -670,7 +670,7 @@ void (empty response body) # **UploadFile** -> ApiResponse UploadFile (long petId, string additionalMetadata = null, System.IO.Stream file = null) +> ApiResponse UploadFile (long? petId, string additionalMetadata = null, System.IO.Stream file = null) uploads an image @@ -694,7 +694,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload (optional) @@ -739,7 +739,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | | **file** | **System.IO.Stream****System.IO.Stream** | file to upload | [optional] | @@ -766,7 +766,7 @@ catch (ApiException e) # **UploadFileWithRequiredFile** -> ApiResponse UploadFileWithRequiredFile (long petId, System.IO.Stream requiredFile, string additionalMetadata = null) +> ApiResponse UploadFileWithRequiredFile (long? petId, System.IO.Stream requiredFile, string additionalMetadata = null) uploads an image (required) @@ -790,7 +790,7 @@ namespace Example config.AccessToken = "YOUR_ACCESS_TOKEN"; var apiInstance = new PetApi(config); - var petId = 789L; // long | ID of pet to update + var petId = 789L; // long? | ID of pet to update var requiredFile = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | file to upload var additionalMetadata = "additionalMetadata_example"; // string | Additional data to pass to server (optional) @@ -835,7 +835,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **petId** | **long** | ID of pet to update | | +| **petId** | **long?** | ID of pet to update | | | **requiredFile** | **System.IO.Stream****System.IO.Stream** | file to upload | | | **additionalMetadata** | **string** | Additional data to pass to server | [optional] | diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RequiredClass.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RequiredClass.md index 07b6f018f6c1..018f2a832832 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RequiredClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | **NotrequiredNullableStringProp** | **string** | | [optional] @@ -15,23 +15,23 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] -**NotRequiredNotnullableDateProp** | **DateTime** | | [optional] +**NotRequiredNotnullableDateProp** | **DateTime?** | | [optional] **RequiredNotnullableDatetimeProp** | **DateTime** | | **RequiredNullableDatetimeProp** | **DateTime?** | | **NotrequiredNullableDatetimeProp** | **DateTime?** | | [optional] -**NotrequiredNotnullableDatetimeProp** | **DateTime** | | [optional] +**NotrequiredNotnullableDatetimeProp** | **DateTime?** | | [optional] **RequiredNullableEnumInteger** | **int?** | | **RequiredNotnullableEnumInteger** | **int** | | **NotrequiredNullableEnumInteger** | **int?** | | [optional] -**NotrequiredNotnullableEnumInteger** | **int** | | [optional] +**NotrequiredNotnullableEnumInteger** | **int?** | | [optional] **RequiredNullableEnumIntegerOnly** | **int?** | | **RequiredNotnullableEnumIntegerOnly** | **int** | | **NotrequiredNullableEnumIntegerOnly** | **int?** | | [optional] -**NotrequiredNotnullableEnumIntegerOnly** | **int** | | [optional] +**NotrequiredNotnullableEnumIntegerOnly** | **int?** | | [optional] **RequiredNotnullableEnumString** | **string** | | **RequiredNullableEnumString** | **string** | | **NotrequiredNullableEnumString** | **string** | | [optional] @@ -43,7 +43,7 @@ Name | Type | Description | Notes **RequiredNullableUuid** | **Guid?** | | **RequiredNotnullableUuid** | **Guid** | | **NotrequiredNullableUuid** | **Guid?** | | [optional] -**NotrequiredNotnullableUuid** | **Guid** | | [optional] +**NotrequiredNotnullableUuid** | **Guid?** | | [optional] **RequiredNullableArrayOfString** | **List<string>** | | **RequiredNotnullableArrayOfString** | **List<string>** | | **NotrequiredNullableArrayOfString** | **List<string>** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Return.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Return.md index a10daf95cf1d..d554c7612cbe 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Return.md @@ -5,7 +5,7 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] **Lock** | **string** | | **Abstract** | **string** | | **Unsafe** | **string** | | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RolesReportsHash.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RolesReportsHash.md index 309b0c02615c..52bb81a7dab6 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RolesReportsHash.md @@ -5,7 +5,7 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] +**RoleUuid** | **Guid?** | | [optional] **Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/SpecialModelName.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1..6d9805d03479 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/SpecialModelName.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] +**SpecialPropertyName** | **long?** | | [optional] **VarSpecialModelName** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/StoreApi.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/StoreApi.md index 179da0ff637e..2d557c4cfa81 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/StoreApi.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/StoreApi.md @@ -99,7 +99,7 @@ No authorization required # **GetInventory** -> Dictionary<string, int> GetInventory () +> Dictionary<string, int?> GetInventory () Returns pet inventories by status @@ -131,7 +131,7 @@ namespace Example try { // Returns pet inventories by status - Dictionary result = apiInstance.GetInventory(); + Dictionary result = apiInstance.GetInventory(); Debug.WriteLine(result); } catch (ApiException e) @@ -152,7 +152,7 @@ This returns an ApiResponse object which contains the response data, status code try { // Returns pet inventories by status - ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); + ApiResponse> response = apiInstance.GetInventoryWithHttpInfo(); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -169,7 +169,7 @@ catch (ApiException e) This endpoint does not need any parameter. ### Return type -**Dictionary** +**Dictionary** ### Authorization @@ -190,7 +190,7 @@ This endpoint does not need any parameter. # **GetOrderById** -> Order GetOrderById (long orderId) +> Order GetOrderById (long? orderId) Find purchase order by ID @@ -213,7 +213,7 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://petstore.swagger.io:80/v2"; var apiInstance = new StoreApi(config); - var orderId = 789L; // long | ID of pet that needs to be fetched + var orderId = 789L; // long? | ID of pet that needs to be fetched try { @@ -256,7 +256,7 @@ catch (ApiException e) | Name | Type | Description | Notes | |------|------|-------------|-------| -| **orderId** | **long** | ID of pet that needs to be fetched | | +| **orderId** | **long?** | ID of pet that needs to be fetched | | ### Return type diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Tag.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Tag.md index fdd22eb31fdd..f86abfc26e02 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Tag.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/User.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/User.md index b0cd4dc042bf..da9b34219d84 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/User.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Username** | **string** | | [optional] **FirstName** | **string** | | [optional] **LastName** | **string** | | [optional] **Email** | **string** | | [optional] **Password** | **string** | | [optional] **Phone** | **string** | | [optional] -**UserStatus** | **int** | User Status | [optional] +**UserStatus** | **int?** | User Status | [optional] **ObjectWithNoDeclaredProps** | **Object** | test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. | [optional] **ObjectWithNoDeclaredPropsNullable** | **Object** | test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. | [optional] **AnyTypeProp** | **Object** | test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389 | [optional] diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Whale.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Whale.md index 5fc3dc7f85c2..a1512d751e8e 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Whale.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Whale.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs index 32ef0373acf1..ff58be96fe76 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/DefaultApi.cs @@ -67,8 +67,8 @@ public interface IDefaultApiSync : IApiAccessor /// Hello /// /// Thrown when fails to make API call - /// List<Guid> - List Hello(); + /// List<Guid?> + List Hello(); /// /// Hello @@ -77,8 +77,8 @@ public interface IDefaultApiSync : IApiAccessor /// Hello /// /// Thrown when fails to make API call - /// ApiResponse of List<Guid> - ApiResponse> HelloWithHttpInfo(); + /// ApiResponse of List<Guid?> + ApiResponse> HelloWithHttpInfo(); /// /// /// @@ -172,8 +172,8 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of List<Guid> - System.Threading.Tasks.Task> HelloAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of List<Guid?> + System.Threading.Tasks.Task> HelloAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Hello @@ -183,8 +183,8 @@ public interface IDefaultApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (List<Guid?>) + System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -611,10 +611,10 @@ public Org.OpenAPITools.Client.ApiResponse GetCountryWithHttpInfo(string /// Hello Hello /// /// Thrown when fails to make API call - /// List<Guid> - public List Hello() + /// List<Guid?> + public List Hello() { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = HelloWithHttpInfo(); return localVarResponse.Data; } @@ -622,8 +622,8 @@ public List Hello() /// Hello Hello /// /// Thrown when fails to make API call - /// ApiResponse of List<Guid> - public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() + /// ApiResponse of List<Guid?> + public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -644,7 +644,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() // make the HTTP request - var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/hello", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -660,14 +660,14 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of List<Guid> - public async System.Threading.Tasks.Task> HelloAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of List<Guid?> + public async System.Threading.Tasks.Task> HelloAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = HelloWithHttpInfoAsync(cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await task.ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await task.ConfigureAwait(false); #else - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await task; + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await task; #endif return localVarResponse.Data; } @@ -677,8 +677,8 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<Guid>) - public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (List<Guid?>) + public async System.Threading.Tasks.Task>> HelloWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -702,7 +702,7 @@ public Org.OpenAPITools.Client.ApiResponse> HelloWithHttpInfo() // make the HTTP request - var task = this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken); + var task = this.AsynchronousClient.GetAsync>("/hello", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs index b3f09cf872d9..42656debd0b3 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/FakeApi.cs @@ -50,8 +50,8 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// bool - bool FakeOuterBooleanSerialize(bool? body = default(bool?)); + /// bool? + bool? FakeOuterBooleanSerialize(bool? body = default(bool?)); /// /// @@ -61,8 +61,8 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// ApiResponse of bool - ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)); + /// ApiResponse of bool? + ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)); /// /// /// @@ -92,8 +92,8 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// decimal - decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)); + /// decimal? + decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?)); /// /// @@ -103,8 +103,8 @@ public interface IFakeApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// ApiResponse of decimal - ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)); + /// ApiResponse of decimal? + ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)); /// /// /// @@ -115,7 +115,7 @@ public interface IFakeApiSync : IApiAccessor /// Required UUID String /// Input string as post body (optional) /// string - string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string)); + string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string)); /// /// @@ -127,7 +127,7 @@ public interface IFakeApiSync : IApiAccessor /// Required UUID String /// Input string as post body (optional) /// ApiResponse of string - ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string)); + ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string)); /// /// Array of Enums /// @@ -278,7 +278,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// None (optional) /// - void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -302,7 +302,7 @@ public interface IFakeApiSync : IApiAccessor /// None (optional) /// None (optional) /// ApiResponse of Object(void) - ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); + ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)); /// /// To test enum parameters /// @@ -352,7 +352,7 @@ public interface IFakeApiSync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// - void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); /// /// Fake endpoint to test group parameters (optional) @@ -368,7 +368,7 @@ public interface IFakeApiSync : IApiAccessor /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// ApiResponse of Object(void) - ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); + ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)); /// /// test inline additionalProperties /// @@ -519,8 +519,8 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. - /// Task of bool - System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of bool? + System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -531,8 +531,8 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (bool?) + System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -565,8 +565,8 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. - /// Task of decimal - System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of decimal? + System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -577,8 +577,8 @@ public interface IFakeApiAsync : IApiAccessor /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (decimal?) + System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// /// @@ -590,7 +590,7 @@ public interface IFakeApiAsync : IApiAccessor /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// @@ -603,7 +603,7 @@ public interface IFakeApiAsync : IApiAccessor /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Array of Enums /// @@ -784,7 +784,7 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -809,7 +809,7 @@ public interface IFakeApiAsync : IApiAccessor /// None (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// To test enum parameters /// @@ -862,7 +862,7 @@ public interface IFakeApiAsync : IApiAccessor /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Fake endpoint to test group parameters (optional) @@ -879,7 +879,7 @@ public interface IFakeApiAsync : IApiAccessor /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// test inline additionalProperties /// @@ -1274,10 +1274,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// bool - public bool FakeOuterBooleanSerialize(bool? body = default(bool?)) + /// bool? + public bool? FakeOuterBooleanSerialize(bool? body = default(bool?)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterBooleanSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1286,8 +1286,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input boolean as post body (optional) - /// ApiResponse of bool - public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)) + /// ApiResponse of bool? + public Org.OpenAPITools.Client.ApiResponse FakeOuterBooleanSerializeWithHttpInfo(bool? body = default(bool?)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1310,7 +1310,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/boolean", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1327,14 +1327,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. - /// Task of bool - public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of bool? + public async System.Threading.Tasks.Task FakeOuterBooleanSerializeAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = FakeOuterBooleanSerializeWithHttpInfoAsync(body, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL - Org.OpenAPITools.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); #else - Org.OpenAPITools.Client.ApiResponse localVarResponse = await task; + Org.OpenAPITools.Client.ApiResponse localVarResponse = await task; #endif return localVarResponse.Data; } @@ -1345,8 +1345,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input boolean as post body (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (bool) - public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (bool?) + public async System.Threading.Tasks.Task> FakeOuterBooleanSerializeWithHttpInfoAsync(bool? body = default(bool?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1372,7 +1372,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var task = this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken); + var task = this.AsynchronousClient.PostAsync("/fake/outer/boolean", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); @@ -1514,10 +1514,10 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// decimal - public decimal FakeOuterNumberSerialize(decimal? body = default(decimal?)) + /// decimal? + public decimal? FakeOuterNumberSerialize(decimal? body = default(decimal?)) { - Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); + Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterNumberSerializeWithHttpInfo(body); return localVarResponse.Data; } @@ -1526,8 +1526,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// /// Thrown when fails to make API call /// Input number as post body (optional) - /// ApiResponse of decimal - public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)) + /// ApiResponse of decimal? + public Org.OpenAPITools.Client.ApiResponse FakeOuterNumberSerializeWithHttpInfo(decimal? body = default(decimal?)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1550,7 +1550,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Post("/fake/outer/number", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -1567,14 +1567,14 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. - /// Task of decimal - public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of decimal? + public async System.Threading.Tasks.Task FakeOuterNumberSerializeAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = FakeOuterNumberSerializeWithHttpInfoAsync(body, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL - Org.OpenAPITools.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse localVarResponse = await task.ConfigureAwait(false); #else - Org.OpenAPITools.Client.ApiResponse localVarResponse = await task; + Org.OpenAPITools.Client.ApiResponse localVarResponse = await task; #endif return localVarResponse.Data; } @@ -1585,8 +1585,8 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Thrown when fails to make API call /// Input number as post body (optional) /// Cancellation Token to cancel the request. - /// Task of ApiResponse (decimal) - public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (decimal?) + public async System.Threading.Tasks.Task> FakeOuterNumberSerializeWithHttpInfoAsync(decimal? body = default(decimal?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1612,7 +1612,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH // make the HTTP request - var task = this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken); + var task = this.AsynchronousClient.PostAsync("/fake/outer/number", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); @@ -1636,7 +1636,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Required UUID String /// Input string as post body (optional) /// string - public string FakeOuterStringSerialize(Guid requiredStringUuid, string body = default(string)) + public string FakeOuterStringSerialize(Guid? requiredStringUuid, string body = default(string)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = FakeOuterStringSerializeWithHttpInfo(requiredStringUuid, body); return localVarResponse.Data; @@ -1649,8 +1649,12 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Required UUID String /// Input string as post body (optional) /// ApiResponse of string - public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid requiredStringUuid, string body = default(string)) + public Org.OpenAPITools.Client.ApiResponse FakeOuterStringSerializeWithHttpInfo(Guid? requiredStringUuid, string body = default(string)) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1692,7 +1696,7 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of string - public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task FakeOuterStringSerializeAsync(Guid? requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = FakeOuterStringSerializeWithHttpInfoAsync(requiredStringUuid, body, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL @@ -1711,8 +1715,12 @@ public Org.OpenAPITools.Client.ApiResponse FakeHealthGetWithH /// Input string as post body (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (string) - public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> FakeOuterStringSerializeWithHttpInfoAsync(Guid? requiredStringUuid, string body = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringUuid' is set + if (requiredStringUuid == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringUuid' when calling FakeApi->FakeOuterStringSerialize"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -2624,7 +2632,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// - public void TestEndpointParameters(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public void TestEndpointParameters(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) { TestEndpointParametersWithHttpInfo(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback); } @@ -2648,8 +2656,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// None (optional) /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) + public Org.OpenAPITools.Client.ApiResponse TestEndpointParametersWithHttpInfo(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string)) { + // verify the required parameter 'number' is set + if (number == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); @@ -2757,7 +2773,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestEndpointParametersAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = TestEndpointParametersWithHttpInfoAsync(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL @@ -2787,8 +2803,16 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// None (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal number, double varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestEndpointParametersWithHttpInfoAsync(decimal? number, double? varDouble, string patternWithoutDelimiter, byte[] varByte, int? integer = default(int?), int? int32 = default(int?), long? int64 = default(long?), float? varFloat = default(float?), string varString = default(string), System.IO.Stream binary = default(System.IO.Stream), DateTime? date = default(DateTime?), DateTime? dateTime = default(DateTime?), string password = default(string), string callback = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'number' is set + if (number == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'number' when calling FakeApi->TestEndpointParameters"); + + // verify the required parameter 'varDouble' is set + if (varDouble == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'varDouble' when calling FakeApi->TestEndpointParameters"); + // verify the required parameter 'patternWithoutDelimiter' is set if (patternWithoutDelimiter == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'patternWithoutDelimiter' when calling FakeApi->TestEndpointParameters"); @@ -3102,7 +3126,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// - public void TestGroupParameters(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public void TestGroupParameters(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) { TestGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -3118,8 +3142,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Boolean in group parameters (optional) /// Integer in group parameters (optional) /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) + public Org.OpenAPITools.Client.ApiResponse TestGroupParametersWithHttpInfo(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?)) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -3182,7 +3218,7 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task TestGroupParametersAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task TestGroupParametersAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = TestGroupParametersWithHttpInfoAsync(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL @@ -3204,8 +3240,20 @@ public Org.OpenAPITools.Client.ApiResponse TestClientModelWithHttpI /// Integer in group parameters (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int requiredStringGroup, bool requiredBooleanGroup, long requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> TestGroupParametersWithHttpInfoAsync(int? requiredStringGroup, bool? requiredBooleanGroup, long? requiredInt64Group, int? stringGroup = default(int?), bool? booleanGroup = default(bool?), long? int64Group = default(long?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'requiredStringGroup' is set + if (requiredStringGroup == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredStringGroup' when calling FakeApi->TestGroupParameters"); + + // verify the required parameter 'requiredBooleanGroup' is set + if (requiredBooleanGroup == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredBooleanGroup' when calling FakeApi->TestGroupParameters"); + + // verify the required parameter 'requiredInt64Group' is set + if (requiredInt64Group == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredInt64Group' when calling FakeApi->TestGroupParameters"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs index 50a18a30d648..cb5bf728e472 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/PetApi.cs @@ -51,7 +51,7 @@ public interface IPetApiSync : IApiAccessor /// Pet id to delete /// (optional) /// - void DeletePet(long petId, string apiKey = default(string)); + void DeletePet(long? petId, string apiKey = default(string)); /// /// Deletes a pet @@ -63,7 +63,7 @@ public interface IPetApiSync : IApiAccessor /// Pet id to delete /// (optional) /// ApiResponse of Object(void) - ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)); + ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string)); /// /// Finds Pets by status /// @@ -117,7 +117,7 @@ public interface IPetApiSync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// Pet - Pet GetPetById(long petId); + Pet GetPetById(long? petId); /// /// Find pet by ID @@ -128,7 +128,7 @@ public interface IPetApiSync : IApiAccessor /// Thrown when fails to make API call /// ID of pet to return /// ApiResponse of Pet - ApiResponse GetPetByIdWithHttpInfo(long petId); + ApiResponse GetPetByIdWithHttpInfo(long? petId); /// /// Update an existing pet /// @@ -155,7 +155,7 @@ public interface IPetApiSync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// - void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)); + void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string)); /// /// Updates a pet in the store with form data @@ -168,7 +168,7 @@ public interface IPetApiSync : IApiAccessor /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// ApiResponse of Object(void) - ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)); + ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string)); /// /// uploads an image /// @@ -177,7 +177,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// ApiResponse - ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); /// /// uploads an image @@ -190,7 +190,7 @@ public interface IPetApiSync : IApiAccessor /// Additional data to pass to server (optional) /// file to upload (optional) /// ApiResponse of ApiResponse - ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); + ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)); /// /// uploads an image (required) /// @@ -199,7 +199,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// ApiResponse - ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); /// /// uploads an image (required) @@ -212,7 +212,7 @@ public interface IPetApiSync : IApiAccessor /// file to upload /// Additional data to pass to server (optional) /// ApiResponse of ApiResponse - ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); + ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)); #endregion Synchronous Operations } @@ -256,7 +256,7 @@ public interface IPetApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Deletes a pet @@ -269,7 +269,7 @@ public interface IPetApiAsync : IApiAccessor /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Finds Pets by status /// @@ -328,7 +328,7 @@ public interface IPetApiAsync : IApiAccessor /// ID of pet to return /// Cancellation Token to cancel the request. /// Task of Pet - System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetPetByIdAsync(long? petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find pet by ID @@ -340,7 +340,7 @@ public interface IPetApiAsync : IApiAccessor /// ID of pet to return /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Update an existing pet /// @@ -376,7 +376,7 @@ public interface IPetApiAsync : IApiAccessor /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. /// Task of void - System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Updates a pet in the store with form data @@ -390,7 +390,7 @@ public interface IPetApiAsync : IApiAccessor /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image /// @@ -403,7 +403,7 @@ public interface IPetApiAsync : IApiAccessor /// file to upload (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image @@ -417,7 +417,7 @@ public interface IPetApiAsync : IApiAccessor /// file to upload (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) /// @@ -430,7 +430,7 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// uploads an image (required) @@ -444,7 +444,7 @@ public interface IPetApiAsync : IApiAccessor /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); #endregion Asynchronous Operations } @@ -766,7 +766,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// - public void DeletePet(long petId, string apiKey = default(string)) + public void DeletePet(long? petId, string apiKey = default(string)) { DeletePetWithHttpInfo(petId, apiKey); } @@ -778,8 +778,12 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// Pet id to delete /// (optional) /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long petId, string apiKey = default(string)) + public Org.OpenAPITools.Client.ApiResponse DeletePetWithHttpInfo(long? petId, string apiKey = default(string)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -828,7 +832,7 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task DeletePetAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task DeletePetAsync(long? petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = DeletePetWithHttpInfoAsync(petId, apiKey, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL @@ -846,8 +850,12 @@ public Org.OpenAPITools.Client.ApiResponse AddPetWithHttpInfo(Pet pet) /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> DeletePetWithHttpInfoAsync(long? petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->DeletePet"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1251,7 +1259,7 @@ public Org.OpenAPITools.Client.ApiResponse> FindPetsByTagsWithHttpInfo /// Thrown when fails to make API call /// ID of pet to return /// Pet - public Pet GetPetById(long petId) + public Pet GetPetById(long? petId) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetPetByIdWithHttpInfo(petId); return localVarResponse.Data; @@ -1263,8 +1271,12 @@ public Pet GetPetById(long petId) /// Thrown when fails to make API call /// ID of pet to return /// ApiResponse of Pet - public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petId) + public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long? petId) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1314,7 +1326,7 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// ID of pet to return /// Cancellation Token to cancel the request. /// Task of Pet - public async System.Threading.Tasks.Task GetPetByIdAsync(long petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetPetByIdAsync(long? petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = GetPetByIdWithHttpInfoAsync(petId, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL @@ -1332,8 +1344,12 @@ public Org.OpenAPITools.Client.ApiResponse GetPetByIdWithHttpInfo(long petI /// ID of pet to return /// Cancellation Token to cancel the request. /// Task of ApiResponse (Pet) - public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetPetByIdWithHttpInfoAsync(long? petId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->GetPetById"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1563,7 +1579,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// - public void UpdatePetWithForm(long petId, string name = default(string), string status = default(string)) + public void UpdatePetWithForm(long? petId, string name = default(string), string status = default(string)) { UpdatePetWithFormWithHttpInfo(petId, name, status); } @@ -1576,8 +1592,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated name of the pet (optional) /// Updated status of the pet (optional) /// ApiResponse of Object(void) - public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long petId, string name = default(string), string status = default(string)) + public Org.OpenAPITools.Client.ApiResponse UpdatePetWithFormWithHttpInfo(long? petId, string name = default(string), string status = default(string)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1632,7 +1652,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. /// Task of void - public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UpdatePetWithFormAsync(long? petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = UpdatePetWithFormWithHttpInfoAsync(petId, name, status, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL @@ -1651,8 +1671,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Updated status of the pet (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UpdatePetWithFormWithHttpInfoAsync(long? petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UpdatePetWithForm"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1715,7 +1739,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// ApiResponse - public ApiResponse UploadFile(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public ApiResponse UploadFile(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithHttpInfo(petId, additionalMetadata, file); return localVarResponse.Data; @@ -1729,8 +1753,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// file to upload (optional) /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithHttpInfo(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1785,7 +1813,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = UploadFileWithHttpInfoAsync(petId, additionalMetadata, file, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL @@ -1805,8 +1833,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithHttpInfoAsync(long? petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFile"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -1869,7 +1901,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// ApiResponse - public ApiResponse UploadFileWithRequiredFile(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public ApiResponse UploadFileWithRequiredFile(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) { Org.OpenAPITools.Client.ApiResponse localVarResponse = UploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata); return localVarResponse.Data; @@ -1883,8 +1915,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// file to upload /// Additional data to pass to server (optional) /// ApiResponse of ApiResponse - public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) + public Org.OpenAPITools.Client.ApiResponse UploadFileWithRequiredFileWithHttpInfo(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + // verify the required parameter 'requiredFile' is set if (requiredFile == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile"); @@ -1941,7 +1977,7 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse - public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task UploadFileWithRequiredFileAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = UploadFileWithRequiredFileWithHttpInfoAsync(petId, requiredFile, additionalMetadata, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL @@ -1961,8 +1997,12 @@ public Org.OpenAPITools.Client.ApiResponse UpdatePetWithHttpInfo(Pet pet /// Additional data to pass to server (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ApiResponse) - public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> UploadFileWithRequiredFileWithHttpInfoAsync(long? petId, System.IO.Stream requiredFile, string additionalMetadata = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'petId' is set + if (petId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'petId' when calling PetApi->UploadFileWithRequiredFile"); + // verify the required parameter 'requiredFile' is set if (requiredFile == null) throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'requiredFile' when calling PetApi->UploadFileWithRequiredFile"); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs index 1310a55c28a8..101db854f8ad 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Api/StoreApi.cs @@ -54,8 +54,8 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call - /// Dictionary<string, int> - Dictionary GetInventory(); + /// Dictionary<string, int?> + Dictionary GetInventory(); /// /// Returns pet inventories by status @@ -64,8 +64,8 @@ public interface IStoreApiSync : IApiAccessor /// Returns a map of status codes to quantities /// /// Thrown when fails to make API call - /// ApiResponse of Dictionary<string, int> - ApiResponse> GetInventoryWithHttpInfo(); + /// ApiResponse of Dictionary<string, int?> + ApiResponse> GetInventoryWithHttpInfo(); /// /// Find purchase order by ID /// @@ -75,7 +75,7 @@ public interface IStoreApiSync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Order - Order GetOrderById(long orderId); + Order GetOrderById(long? orderId); /// /// Find purchase order by ID @@ -86,7 +86,7 @@ public interface IStoreApiSync : IApiAccessor /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// ApiResponse of Order - ApiResponse GetOrderByIdWithHttpInfo(long orderId); + ApiResponse GetOrderByIdWithHttpInfo(long? orderId); /// /// Place an order for a pet /// @@ -145,8 +145,8 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of Dictionary<string, int?> + System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Returns pet inventories by status @@ -156,8 +156,8 @@ public interface IStoreApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + /// Task of ApiResponse (Dictionary<string, int?>) + System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID /// @@ -168,7 +168,7 @@ public interface IStoreApiAsync : IApiAccessor /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. /// Task of Order - System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Find purchase order by ID @@ -180,7 +180,7 @@ public interface IStoreApiAsync : IApiAccessor /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); + System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)); /// /// Place an order for a pet /// @@ -474,10 +474,10 @@ public Org.OpenAPITools.Client.ApiResponse DeleteOrderWithHttpInfo(strin /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call - /// Dictionary<string, int> - public Dictionary GetInventory() + /// Dictionary<string, int?> + public Dictionary GetInventory() { - Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = GetInventoryWithHttpInfo(); return localVarResponse.Data; } @@ -485,8 +485,8 @@ public Dictionary GetInventory() /// Returns pet inventories by status Returns a map of status codes to quantities /// /// Thrown when fails to make API call - /// ApiResponse of Dictionary<string, int> - public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo() + /// ApiResponse of Dictionary<string, int?> + public Org.OpenAPITools.Client.ApiResponse> GetInventoryWithHttpInfo() { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -512,7 +512,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory } // make the HTTP request - var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/store/inventory", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { @@ -528,14 +528,14 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of Dictionary<string, int> - public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of Dictionary<string, int?> + public async System.Threading.Tasks.Task> GetInventoryAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = GetInventoryWithHttpInfoAsync(cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await task.ConfigureAwait(false); + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await task.ConfigureAwait(false); #else - Org.OpenAPITools.Client.ApiResponse> localVarResponse = await task; + Org.OpenAPITools.Client.ApiResponse> localVarResponse = await task; #endif return localVarResponse.Data; } @@ -545,8 +545,8 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Dictionary<string, int>) - public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + /// Task of ApiResponse (Dictionary<string, int?>) + public async System.Threading.Tasks.Task>> GetInventoryWithHttpInfoAsync(System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); @@ -575,7 +575,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory // make the HTTP request - var task = this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken); + var task = this.AsynchronousClient.GetAsync>("/store/inventory", localVarRequestOptions, this.Configuration, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL var localVarResponse = await task.ConfigureAwait(false); @@ -598,7 +598,7 @@ public Org.OpenAPITools.Client.ApiResponse> GetInventory /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// Order - public Order GetOrderById(long orderId) + public Order GetOrderById(long? orderId) { Org.OpenAPITools.Client.ApiResponse localVarResponse = GetOrderByIdWithHttpInfo(orderId); return localVarResponse.Data; @@ -610,8 +610,12 @@ public Order GetOrderById(long orderId) /// Thrown when fails to make API call /// ID of pet that needs to be fetched /// ApiResponse of Order - public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long orderId) + public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long? orderId) { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -651,7 +655,7 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. /// Task of Order - public async System.Threading.Tasks.Task GetOrderByIdAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task GetOrderByIdAsync(long? orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { var task = GetOrderByIdWithHttpInfoAsync(orderId, cancellationToken); #if UNITY_EDITOR || !UNITY_WEBGL @@ -669,8 +673,12 @@ public Org.OpenAPITools.Client.ApiResponse GetOrderByIdWithHttpInfo(long /// ID of pet that needs to be fetched /// Cancellation Token to cancel the request. /// Task of ApiResponse (Order) - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> GetOrderByIdWithHttpInfoAsync(long? orderId, System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) { + // verify the required parameter 'orderId' is set + if (orderId == null) + throw new Org.OpenAPITools.Client.ApiException(400, "Missing required parameter 'orderId' when calling StoreApi->GetOrderById"); + Org.OpenAPITools.Client.RequestOptions localVarRequestOptions = new Org.OpenAPITools.Client.RequestOptions(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 4d83d2d347b5..8a41ab878a02 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -36,7 +36,7 @@ public partial class ApiResponse : IEquatable /// code. /// type. /// message. - public ApiResponse(int code = default(int), string type = default(string), string message = default(string)) + public ApiResponse(int? code = default(int?), string type = default(string), string message = default(string)) { this.Code = code; this.Type = type; @@ -47,7 +47,7 @@ public partial class ApiResponse : IEquatable /// Gets or Sets Code /// [DataMember(Name = "code", EmitDefaultValue = false)] - public int Code { get; set; } + public int? Code { get; set; } /// /// Gets or Sets Type @@ -109,7 +109,8 @@ public bool Equals(ApiResponse input) return ( this.Code == input.Code || - this.Code.Equals(input.Code) + (this.Code != null && + this.Code.Equals(input.Code)) ) && ( this.Type == input.Type || @@ -132,7 +133,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Code.GetHashCode(); + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 4b7a3084bd0e..c5c3f517c6bc 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -40,7 +40,7 @@ protected AppleReq() { } /// /// cultivar (required). /// mealy. - public AppleReq(string cultivar = default(string), bool mealy = default(bool)) + public AppleReq(string cultivar = default(string), bool? mealy = default(bool?)) { // to ensure "cultivar" is required (not null) if (cultivar == null) @@ -61,7 +61,7 @@ protected AppleReq() { } /// Gets or Sets Mealy /// [DataMember(Name = "mealy", EmitDefaultValue = true)] - public bool Mealy { get; set; } + public bool? Mealy { get; set; } /// /// Returns the string presentation of the object @@ -115,7 +115,8 @@ public bool Equals(AppleReq input) ) && ( this.Mealy == input.Mealy || - this.Mealy.Equals(input.Mealy) + (this.Mealy != null && + this.Mealy.Equals(input.Mealy)) ); } @@ -132,7 +133,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Cultivar.GetHashCode(); } - hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + if (this.Mealy != null) + { + hashCode = (hashCode * 59) + this.Mealy.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index b6f5ac66d2fc..74f5f1520b6b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -34,7 +34,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable class. /// /// arrayArrayNumber. - public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) + public ArrayOfArrayOfNumberOnly(List> arrayArrayNumber = default(List>)) { this.ArrayArrayNumber = arrayArrayNumber; } @@ -43,7 +43,7 @@ public partial class ArrayOfArrayOfNumberOnly : IEquatable [DataMember(Name = "ArrayArrayNumber", EmitDefaultValue = false)] - public List> ArrayArrayNumber { get; set; } + public List> ArrayArrayNumber { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 78d77d41a431..9dad941554c6 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -34,7 +34,7 @@ public partial class ArrayOfNumberOnly : IEquatable /// Initializes a new instance of the class. /// /// arrayNumber. - public ArrayOfNumberOnly(List arrayNumber = default(List)) + public ArrayOfNumberOnly(List arrayNumber = default(List)) { this.ArrayNumber = arrayNumber; } @@ -43,7 +43,7 @@ public partial class ArrayOfNumberOnly : IEquatable /// Gets or Sets ArrayNumber /// [DataMember(Name = "ArrayNumber", EmitDefaultValue = false)] - public List ArrayNumber { get; set; } + public List ArrayNumber { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 652ab86bd192..5ff69035af5f 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -36,7 +36,7 @@ public partial class ArrayTest : IEquatable /// arrayOfString. /// arrayArrayOfInteger. /// arrayArrayOfModel. - public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) + public ArrayTest(List arrayOfString = default(List), List> arrayArrayOfInteger = default(List>), List> arrayArrayOfModel = default(List>)) { this.ArrayOfString = arrayOfString; this.ArrayArrayOfInteger = arrayArrayOfInteger; @@ -53,7 +53,7 @@ public partial class ArrayTest : IEquatable /// Gets or Sets ArrayArrayOfInteger /// [DataMember(Name = "array_array_of_integer", EmitDefaultValue = false)] - public List> ArrayArrayOfInteger { get; set; } + public List> ArrayArrayOfInteger { get; set; } /// /// Gets or Sets ArrayArrayOfModel diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index b31a453f9e87..48348603a594 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -34,7 +34,7 @@ public partial class Banana : IEquatable /// Initializes a new instance of the class. /// /// lengthCm. - public Banana(decimal lengthCm = default(decimal)) + public Banana(decimal? lengthCm = default(decimal?)) { this.LengthCm = lengthCm; } @@ -43,7 +43,7 @@ public partial class Banana : IEquatable /// Gets or Sets LengthCm /// [DataMember(Name = "lengthCm", EmitDefaultValue = false)] - public decimal LengthCm { get; set; } + public decimal? LengthCm { get; set; } /// /// Returns the string presentation of the object @@ -91,7 +91,8 @@ public bool Equals(Banana input) return ( this.LengthCm == input.LengthCm || - this.LengthCm.Equals(input.LengthCm) + (this.LengthCm != null && + this.LengthCm.Equals(input.LengthCm)) ); } @@ -104,7 +105,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + if (this.LengthCm != null) + { + hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 2f73ada806c8..05260b1148f5 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -40,7 +40,7 @@ protected BananaReq() { } /// /// lengthCm (required). /// sweet. - public BananaReq(decimal lengthCm = default(decimal), bool sweet = default(bool)) + public BananaReq(decimal lengthCm = default(decimal), bool? sweet = default(bool?)) { this.LengthCm = lengthCm; this.Sweet = sweet; @@ -56,7 +56,7 @@ protected BananaReq() { } /// Gets or Sets Sweet /// [DataMember(Name = "sweet", EmitDefaultValue = true)] - public bool Sweet { get; set; } + public bool? Sweet { get; set; } /// /// Returns the string presentation of the object @@ -109,7 +109,8 @@ public bool Equals(BananaReq input) ) && ( this.Sweet == input.Sweet || - this.Sweet.Equals(input.Sweet) + (this.Sweet != null && + this.Sweet.Equals(input.Sweet)) ); } @@ -123,7 +124,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.LengthCm.GetHashCode(); - hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + if (this.Sweet != null) + { + hashCode = (hashCode * 59) + this.Sweet.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 2d02542a5170..bfa6ebf12fdc 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -41,7 +41,7 @@ protected Cat() { } /// declawed. /// className (required) (default to "Cat"). /// color (default to "red"). - public Cat(bool declawed = default(bool), string className = @"Cat", string color = @"red") : base(className, color) + public Cat(bool? declawed = default(bool?), string className = @"Cat", string color = @"red") : base(className, color) { this.Declawed = declawed; } @@ -50,7 +50,7 @@ protected Cat() { } /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed { get; set; } + public bool? Declawed { get; set; } /// /// Returns the string presentation of the object @@ -99,7 +99,8 @@ public bool Equals(Cat input) return base.Equals(input) && ( this.Declawed == input.Declawed || - this.Declawed.Equals(input.Declawed) + (this.Declawed != null && + this.Declawed.Equals(input.Declawed)) ); } @@ -112,7 +113,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = base.GetHashCode(); - hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + if (this.Declawed != null) + { + hashCode = (hashCode * 59) + this.Declawed.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index 52680d66e365..01b27415da02 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -40,7 +40,7 @@ protected Category() { } /// /// id. /// name (required) (default to "default-name"). - public Category(long id = default(long), string name = @"default-name") + public Category(long? id = default(long?), string name = @"default-name") { // to ensure "name" is required (not null) if (name == null) @@ -55,7 +55,7 @@ protected Category() { } /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -110,7 +110,8 @@ public bool Equals(Category input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -128,7 +129,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 2da6ff2c54e5..3015dee6afc3 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -34,7 +34,7 @@ public partial class DateOnlyClass : IEquatable /// Initializes a new instance of the class. /// /// dateOnlyProperty. - public DateOnlyClass(DateTime dateOnlyProperty = default(DateTime)) + public DateOnlyClass(DateTime? dateOnlyProperty = default(DateTime?)) { this.DateOnlyProperty = dateOnlyProperty; } @@ -45,7 +45,7 @@ public partial class DateOnlyClass : IEquatable /// Fri Jul 21 00:00:00 UTC 2017 [DataMember(Name = "dateOnlyProperty", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime DateOnlyProperty { get; set; } + public DateTime? DateOnlyProperty { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 627c8a3acd40..d15b45ac95d6 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -177,6 +177,7 @@ public enum EnumIntegerEnum /// /// Defines EnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum EnumIntegerOnlyEnum { /// diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 75f2f9581cf2..228e23521f03 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -62,7 +62,7 @@ protected FormatTest() { } /// A string that is a 10 digit number. Can have leading zeros.. /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.. /// None. - public FormatTest(int integer = default(int), int int32 = default(int), int int32Range = default(int), int int64Positive = default(int), int int64Negative = default(int), int int64PositiveExclusive = default(int), int int64NegativeExclusive = default(int), uint unsignedInteger = default(uint), long int64 = default(long), ulong unsignedLong = default(ulong), decimal number = default(decimal), float varFloat = default(float), double varDouble = default(double), decimal varDecimal = default(decimal), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime dateTime = default(DateTime), Guid uuid = default(Guid), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) + public FormatTest(int? integer = default(int?), int? int32 = default(int?), int? int32Range = default(int?), int? int64Positive = default(int?), int? int64Negative = default(int?), int? int64PositiveExclusive = default(int?), int? int64NegativeExclusive = default(int?), uint? unsignedInteger = default(uint?), long? int64 = default(long?), ulong? unsignedLong = default(ulong?), decimal number = default(decimal), float? varFloat = default(float?), double? varDouble = default(double?), decimal? varDecimal = default(decimal?), string varString = default(string), byte[] varByte = default(byte[]), System.IO.Stream binary = default(System.IO.Stream), DateTime date = default(DateTime), DateTime? dateTime = default(DateTime?), Guid? uuid = default(Guid?), string password = default(string), string patternWithDigits = default(string), string patternWithDigitsAndDelimiter = default(string), string patternWithBackslash = default(string)) { this.Number = number; // to ensure "varByte" is required (not null) @@ -104,61 +104,61 @@ protected FormatTest() { } /// Gets or Sets Integer /// [DataMember(Name = "integer", EmitDefaultValue = false)] - public int Integer { get; set; } + public int? Integer { get; set; } /// /// Gets or Sets Int32 /// [DataMember(Name = "int32", EmitDefaultValue = false)] - public int Int32 { get; set; } + public int? Int32 { get; set; } /// /// Gets or Sets Int32Range /// [DataMember(Name = "int32Range", EmitDefaultValue = false)] - public int Int32Range { get; set; } + public int? Int32Range { get; set; } /// /// Gets or Sets Int64Positive /// [DataMember(Name = "int64Positive", EmitDefaultValue = false)] - public long Int64Positive { get; set; } + public int? Int64Positive { get; set; } /// /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative { get; set; } + public int? Int64Negative { get; set; } /// /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive { get; set; } + public int? Int64PositiveExclusive { get; set; } /// /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive { get; set; } + public int? Int64NegativeExclusive { get; set; } /// /// Gets or Sets UnsignedInteger /// [DataMember(Name = "unsigned_integer", EmitDefaultValue = false)] - public uint UnsignedInteger { get; set; } + public uint? UnsignedInteger { get; set; } /// /// Gets or Sets Int64 /// [DataMember(Name = "int64", EmitDefaultValue = false)] - public long Int64 { get; set; } + public long? Int64 { get; set; } /// /// Gets or Sets UnsignedLong /// [DataMember(Name = "unsigned_long", EmitDefaultValue = false)] - public ulong UnsignedLong { get; set; } + public ulong? UnsignedLong { get; set; } /// /// Gets or Sets Number @@ -170,19 +170,19 @@ protected FormatTest() { } /// Gets or Sets Float /// [DataMember(Name = "float", EmitDefaultValue = false)] - public float Float { get; set; } + public float? Float { get; set; } /// /// Gets or Sets Double /// [DataMember(Name = "double", EmitDefaultValue = false)] - public double Double { get; set; } + public double? Double { get; set; } /// /// Gets or Sets Decimal /// [DataMember(Name = "decimal", EmitDefaultValue = false)] - public decimal Decimal { get; set; } + public decimal? Decimal { get; set; } /// /// Gets or Sets String @@ -215,14 +215,14 @@ protected FormatTest() { } /// /// 2007-12-03T10:15:30+01:00 [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Uuid /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets Password @@ -320,43 +320,53 @@ public bool Equals(FormatTest input) return ( this.Integer == input.Integer || - this.Integer.Equals(input.Integer) + (this.Integer != null && + this.Integer.Equals(input.Integer)) ) && ( this.Int32 == input.Int32 || - this.Int32.Equals(input.Int32) + (this.Int32 != null && + this.Int32.Equals(input.Int32)) ) && ( this.Int32Range == input.Int32Range || - this.Int32Range.Equals(input.Int32Range) + (this.Int32Range != null && + this.Int32Range.Equals(input.Int32Range)) ) && ( this.Int64Positive == input.Int64Positive || - this.Int64Positive.Equals(input.Int64Positive) + (this.Int64Positive != null && + this.Int64Positive.Equals(input.Int64Positive)) ) && ( this.Int64Negative == input.Int64Negative || - this.Int64Negative.Equals(input.Int64Negative) + (this.Int64Negative != null && + this.Int64Negative.Equals(input.Int64Negative)) ) && ( this.Int64PositiveExclusive == input.Int64PositiveExclusive || - this.Int64PositiveExclusive.Equals(input.Int64PositiveExclusive) + (this.Int64PositiveExclusive != null && + this.Int64PositiveExclusive.Equals(input.Int64PositiveExclusive)) ) && ( this.Int64NegativeExclusive == input.Int64NegativeExclusive || - this.Int64NegativeExclusive.Equals(input.Int64NegativeExclusive) + (this.Int64NegativeExclusive != null && + this.Int64NegativeExclusive.Equals(input.Int64NegativeExclusive)) ) && ( this.UnsignedInteger == input.UnsignedInteger || - this.UnsignedInteger.Equals(input.UnsignedInteger) + (this.UnsignedInteger != null && + this.UnsignedInteger.Equals(input.UnsignedInteger)) ) && ( this.Int64 == input.Int64 || - this.Int64.Equals(input.Int64) + (this.Int64 != null && + this.Int64.Equals(input.Int64)) ) && ( this.UnsignedLong == input.UnsignedLong || - this.UnsignedLong.Equals(input.UnsignedLong) + (this.UnsignedLong != null && + this.UnsignedLong.Equals(input.UnsignedLong)) ) && ( this.Number == input.Number || @@ -364,15 +374,18 @@ public bool Equals(FormatTest input) ) && ( this.Float == input.Float || - this.Float.Equals(input.Float) + (this.Float != null && + this.Float.Equals(input.Float)) ) && ( this.Double == input.Double || - this.Double.Equals(input.Double) + (this.Double != null && + this.Double.Equals(input.Double)) ) && ( this.Decimal == input.Decimal || - this.Decimal.Equals(input.Decimal) + (this.Decimal != null && + this.Decimal.Equals(input.Decimal)) ) && ( this.String == input.String || @@ -435,20 +448,59 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Integer.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32.GetHashCode(); - hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.Int64.GetHashCode(); - hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + if (this.Integer != null) + { + hashCode = (hashCode * 59) + this.Integer.GetHashCode(); + } + if (this.Int32 != null) + { + hashCode = (hashCode * 59) + this.Int32.GetHashCode(); + } + if (this.Int32Range != null) + { + hashCode = (hashCode * 59) + this.Int32Range.GetHashCode(); + } + if (this.Int64Positive != null) + { + hashCode = (hashCode * 59) + this.Int64Positive.GetHashCode(); + } + if (this.Int64Negative != null) + { + hashCode = (hashCode * 59) + this.Int64Negative.GetHashCode(); + } + if (this.Int64PositiveExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64PositiveExclusive.GetHashCode(); + } + if (this.Int64NegativeExclusive != null) + { + hashCode = (hashCode * 59) + this.Int64NegativeExclusive.GetHashCode(); + } + if (this.UnsignedInteger != null) + { + hashCode = (hashCode * 59) + this.UnsignedInteger.GetHashCode(); + } + if (this.Int64 != null) + { + hashCode = (hashCode * 59) + this.Int64.GetHashCode(); + } + if (this.UnsignedLong != null) + { + hashCode = (hashCode * 59) + this.UnsignedLong.GetHashCode(); + } hashCode = (hashCode * 59) + this.Number.GetHashCode(); - hashCode = (hashCode * 59) + this.Float.GetHashCode(); - hashCode = (hashCode * 59) + this.Double.GetHashCode(); - hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + if (this.Float != null) + { + hashCode = (hashCode * 59) + this.Float.GetHashCode(); + } + if (this.Double != null) + { + hashCode = (hashCode * 59) + this.Double.GetHashCode(); + } + if (this.Decimal != null) + { + hashCode = (hashCode * 59) + this.Decimal.GetHashCode(); + } if (this.String != null) { hashCode = (hashCode * 59) + this.String.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index f864601a1a5c..928819193740 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -56,7 +56,7 @@ public enum InnerEnum /// mapOfEnumString. /// directMap. /// indirectMap. - public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) + public MapTest(Dictionary> mapMapOfString = default(Dictionary>), Dictionary mapOfEnumString = default(Dictionary), Dictionary directMap = default(Dictionary), Dictionary indirectMap = default(Dictionary)) { this.MapMapOfString = mapMapOfString; this.MapOfEnumString = mapOfEnumString; @@ -80,13 +80,13 @@ public enum InnerEnum /// Gets or Sets DirectMap /// [DataMember(Name = "direct_map", EmitDefaultValue = false)] - public Dictionary DirectMap { get; set; } + public Dictionary DirectMap { get; set; } /// /// Gets or Sets IndirectMap /// [DataMember(Name = "indirect_map", EmitDefaultValue = false)] - public Dictionary IndirectMap { get; set; } + public Dictionary IndirectMap { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index dfc02b8315c4..1df49c027e57 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs @@ -70,7 +70,7 @@ protected MixLog() { } /// ProductId is only required for color mixes. /// ProductName is only required for color mixes. /// selectedVersionIndex. - public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int)) + public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid? shopId = default(Guid?), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int? selectedVersionIndex = default(int?)) { this.Id = id; // to ensure "description" is required (not null) @@ -133,7 +133,7 @@ protected MixLog() { } /// Gets or Sets ShopId /// [DataMember(Name = "shopId", EmitDefaultValue = false)] - public Guid ShopId { get; set; } + public Guid? ShopId { get; set; } /// /// Gets or Sets TotalPrice @@ -310,7 +310,7 @@ protected MixLog() { } /// Gets or Sets SelectedVersionIndex /// [DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)] - public int SelectedVersionIndex { get; set; } + public int? SelectedVersionIndex { get; set; } /// /// Returns the string presentation of the object @@ -540,7 +540,8 @@ public bool Equals(MixLog input) ) && ( this.SelectedVersionIndex == input.SelectedVersionIndex || - this.SelectedVersionIndex.Equals(input.SelectedVersionIndex) + (this.SelectedVersionIndex != null && + this.SelectedVersionIndex.Equals(input.SelectedVersionIndex)) ); } @@ -665,7 +666,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ProductName.GetHashCode(); } - hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + if (this.SelectedVersionIndex != null) + { + hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 7a79e22bec74..8d1e69635f9b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -46,10 +46,10 @@ public MixedAnyOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedAnyOfContent(bool actualInstance) + /// An instance of bool?. + public MixedAnyOfContent(bool? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -58,10 +58,10 @@ public MixedAnyOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedAnyOfContent(int actualInstance) + /// An instance of int?. + public MixedAnyOfContent(int? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -70,10 +70,10 @@ public MixedAnyOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedAnyOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedAnyOfContent(decimal? actualInstance) { IsNullable = false; SchemaType= "anyOf"; @@ -110,15 +110,15 @@ public override Object ActualInstance { _actualInstance = value; } - else if (value.GetType() == typeof(bool)) + else if (value.GetType() == typeof(bool?)) { _actualInstance = value; } - else if (value.GetType() == typeof(decimal)) + else if (value.GetType() == typeof(decimal?)) { _actualInstance = value; } - else if (value.GetType() == typeof(int)) + else if (value.GetType() == typeof(int?)) { _actualInstance = value; } @@ -128,7 +128,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -144,33 +144,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)ActualInstance; + return (bool?)ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)ActualInstance; + return (int?)ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)ActualInstance; + return (decimal?)ActualInstance; } /// @@ -233,38 +233,38 @@ public static MixedAnyOfContent FromJson(string jsonString) try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { - newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); + newMixedAnyOfContent = new MixedAnyOfContent(JsonConvert.DeserializeObject(jsonString, MixedAnyOfContent.SerializerSettings)); // deserialization is considered successful at this point if no exception has been thrown. return newMixedAnyOfContent; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs index 316352a3fed0..c5bc036deb1e 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOfContent.cs @@ -46,10 +46,10 @@ public MixedOneOfContent(string actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public MixedOneOfContent(bool actualInstance) + /// An instance of bool?. + public MixedOneOfContent(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -58,10 +58,10 @@ public MixedOneOfContent(bool actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of int. - public MixedOneOfContent(int actualInstance) + /// An instance of int?. + public MixedOneOfContent(int? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -70,10 +70,10 @@ public MixedOneOfContent(int actualInstance) /// /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of decimal. - public MixedOneOfContent(decimal actualInstance) + /// An instance of decimal?. + public MixedOneOfContent(decimal? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -110,15 +110,15 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } - else if (value.GetType() == typeof(decimal) || value is decimal) + else if (value.GetType() == typeof(decimal?) || value is decimal?) { this._actualInstance = value; } - else if (value.GetType() == typeof(int) || value is int) + else if (value.GetType() == typeof(int?) || value is int?) { this._actualInstance = value; } @@ -128,7 +128,7 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool, decimal, int, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: MixedSubId, bool?, decimal?, int?, string"); } } } @@ -144,33 +144,33 @@ public string GetString() } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// - /// Get the actual instance of `int`. If the actual instance is not `int`, + /// Get the actual instance of `int?`. If the actual instance is not `int?`, /// the InvalidClassException will be thrown /// - /// An instance of int - public int GetInt() + /// An instance of int? + public int? GetInt?() { - return (int)this.ActualInstance; + return (int?)this.ActualInstance; } /// - /// Get the actual instance of `decimal`. If the actual instance is not `decimal`, + /// Get the actual instance of `decimal?`. If the actual instance is not `decimal?`, /// the InvalidClassException will be thrown /// - /// An instance of decimal - public decimal GetDecimal() + /// An instance of decimal? + public decimal? GetDecimal?() { - return (decimal)this.ActualInstance; + return (decimal?)this.ActualInstance; } /// @@ -244,61 +244,61 @@ public static MixedOneOfContent FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(decimal).GetProperty("AdditionalProperties") == null) + if (typeof(decimal?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("decimal"); + matchedTypes.Add("decimal?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into decimal?: {1}", jsonString, exception.ToString())); } try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(int).GetProperty("AdditionalProperties") == null) + if (typeof(int?).GetProperty("AdditionalProperties") == null) { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.SerializerSettings)); } else { - newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); + newMixedOneOfContent = new MixedOneOfContent(JsonConvert.DeserializeObject(jsonString, MixedOneOfContent.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("int"); + matchedTypes.Add("int?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into int?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 521d350a9cee..d38f6bef2f0a 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -37,7 +37,7 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatableuuid. /// dateTime. /// map. - public MixedPropertiesAndAdditionalPropertiesClass(Guid uuidWithPattern = default(Guid), Guid uuid = default(Guid), DateTime dateTime = default(DateTime), Dictionary map = default(Dictionary)) + public MixedPropertiesAndAdditionalPropertiesClass(Guid? uuidWithPattern = default(Guid?), Guid? uuid = default(Guid?), DateTime? dateTime = default(DateTime?), Dictionary map = default(Dictionary)) { this.UuidWithPattern = uuidWithPattern; this.Uuid = uuid; @@ -49,19 +49,19 @@ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable [DataMember(Name = "uuid_with_pattern", EmitDefaultValue = false)] - public Guid UuidWithPattern { get; set; } + public Guid? UuidWithPattern { get; set; } /// /// Gets or Sets Uuid /// [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets DateTime /// [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + public DateTime? DateTime { get; set; } /// /// Gets or Sets Map diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 5ebae913605a..a308b2516f0d 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -35,7 +35,7 @@ public partial class Model200Response : IEquatable /// /// name. /// varClass. - public Model200Response(int name = default(int), string varClass = default(string)) + public Model200Response(int? name = default(int?), string varClass = default(string)) { this.Name = name; this.Class = varClass; @@ -45,7 +45,7 @@ public partial class Model200Response : IEquatable /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public int Name { get; set; } + public int? Name { get; set; } /// /// Gets or Sets Class @@ -100,7 +100,8 @@ public bool Equals(Model200Response input) return ( this.Name == input.Name || - this.Name.Equals(input.Name) + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( this.Class == input.Class || @@ -118,7 +119,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Class != null) { hashCode = (hashCode * 59) + this.Class.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index 12d0eca05173..5a37cd03805c 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -56,7 +56,7 @@ protected Name() { } /// Gets or Sets SnakeCase /// [DataMember(Name = "snake_case", EmitDefaultValue = false)] - public int SnakeCase { get; private set; } + public int? SnakeCase { get; private set; } /// /// Returns false as SnakeCase should not be serialized given that it's read-only. @@ -76,7 +76,7 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Var123Number /// [DataMember(Name = "123Number", EmitDefaultValue = false)] - public int Var123Number { get; private set; } + public int? Var123Number { get; private set; } /// /// Returns false as Var123Number should not be serialized given that it's read-only. @@ -139,7 +139,8 @@ public bool Equals(Name input) ) && ( this.SnakeCase == input.SnakeCase || - this.SnakeCase.Equals(input.SnakeCase) + (this.SnakeCase != null && + this.SnakeCase.Equals(input.SnakeCase)) ) && ( this.Property == input.Property || @@ -148,7 +149,8 @@ public bool Equals(Name input) ) && ( this.Var123Number == input.Var123Number || - this.Var123Number.Equals(input.Var123Number) + (this.Var123Number != null && + this.Var123Number.Equals(input.Var123Number)) ); } @@ -162,12 +164,18 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.VarName.GetHashCode(); - hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + if (this.SnakeCase != null) + { + hashCode = (hashCode * 59) + this.SnakeCase.GetHashCode(); + } if (this.Property != null) { hashCode = (hashCode * 59) + this.Property.GetHashCode(); } - hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + if (this.Var123Number != null) + { + hashCode = (hashCode * 59) + this.Var123Number.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 3230dcc91933..badd8b26a9c6 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -37,7 +37,7 @@ public partial class NumberOnly : IEquatable /// Initializes a new instance of the class. /// /// justNumber. - public NumberOnly(decimal justNumber = default(decimal)) + public NumberOnly(decimal? justNumber = default(decimal?)) { this.JustNumber = justNumber; } @@ -46,7 +46,7 @@ public partial class NumberOnly : IEquatable /// Gets or Sets JustNumber /// [DataMember(Name = "JustNumber", EmitDefaultValue = false)] - public decimal JustNumber { get; set; } + public decimal? JustNumber { get; set; } /// /// Returns the string presentation of the object @@ -94,7 +94,8 @@ public bool Equals(NumberOnly input) return ( this.JustNumber == input.JustNumber || - this.JustNumber.Equals(input.JustNumber) + (this.JustNumber != null && + this.JustNumber.Equals(input.JustNumber)) ); } @@ -107,7 +108,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + if (this.JustNumber != null) + { + hashCode = (hashCode * 59) + this.JustNumber.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 05bb2ca8de6c..bd5896e332e0 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -37,7 +37,7 @@ public partial class ObjectWithDeprecatedFields : IEquatableid. /// deprecatedRef. /// bars. - public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) + public ObjectWithDeprecatedFields(string uuid = default(string), decimal? id = default(decimal?), DeprecatedObject deprecatedRef = default(DeprecatedObject), List bars = default(List)) { this.Uuid = uuid; this.Id = id; @@ -56,7 +56,7 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef @@ -126,7 +126,8 @@ public bool Equals(ObjectWithDeprecatedFields input) ) && ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.DeprecatedRef == input.DeprecatedRef || @@ -154,7 +155,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Uuid.GetHashCode(); } - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.DeprecatedRef != null) { hashCode = (hashCode * 59) + this.DeprecatedRef.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index 972e7167b319..48b3a4f1297b 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -72,46 +72,47 @@ public enum StatusEnum /// shipDate. /// Order Status. /// complete (default to false). - public Order(long id = default(long), long petId = default(long), int quantity = default(int), DateTime shipDate = default(DateTime), StatusEnum? status = default(StatusEnum?), bool complete = false) + public Order(long? id = default(long?), long? petId = default(long?), int? quantity = default(int?), DateTime? shipDate = default(DateTime?), StatusEnum? status = default(StatusEnum?), bool? complete = false) { this.Id = id; this.PetId = petId; this.Quantity = quantity; this.ShipDate = shipDate; this.Status = status; - this.Complete = complete; + // use default value if no "complete" provided + this.Complete = complete ?? false; } /// /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets PetId /// [DataMember(Name = "petId", EmitDefaultValue = false)] - public long PetId { get; set; } + public long? PetId { get; set; } /// /// Gets or Sets Quantity /// [DataMember(Name = "quantity", EmitDefaultValue = false)] - public int Quantity { get; set; } + public int? Quantity { get; set; } /// /// Gets or Sets ShipDate /// /// 2020-02-02T20:20:20.000222Z [DataMember(Name = "shipDate", EmitDefaultValue = false)] - public DateTime ShipDate { get; set; } + public DateTime? ShipDate { get; set; } /// /// Gets or Sets Complete /// [DataMember(Name = "complete", EmitDefaultValue = true)] - public bool Complete { get; set; } + public bool? Complete { get; set; } /// /// Returns the string presentation of the object @@ -164,15 +165,18 @@ public bool Equals(Order input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.PetId == input.PetId || - this.PetId.Equals(input.PetId) + (this.PetId != null && + this.PetId.Equals(input.PetId)) ) && ( this.Quantity == input.Quantity || - this.Quantity.Equals(input.Quantity) + (this.Quantity != null && + this.Quantity.Equals(input.Quantity)) ) && ( this.ShipDate == input.ShipDate || @@ -185,7 +189,8 @@ public bool Equals(Order input) ) && ( this.Complete == input.Complete || - this.Complete.Equals(input.Complete) + (this.Complete != null && + this.Complete.Equals(input.Complete)) ); } @@ -198,15 +203,27 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - hashCode = (hashCode * 59) + this.PetId.GetHashCode(); - hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.PetId != null) + { + hashCode = (hashCode * 59) + this.PetId.GetHashCode(); + } + if (this.Quantity != null) + { + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + } if (this.ShipDate != null) { hashCode = (hashCode * 59) + this.ShipDate.GetHashCode(); } hashCode = (hashCode * 59) + this.Status.GetHashCode(); - hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + if (this.Complete != null) + { + hashCode = (hashCode * 59) + this.Complete.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 56abf7969479..f96c7ab765d0 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -36,7 +36,7 @@ public partial class OuterComposite : IEquatable /// myNumber. /// myString. /// myBoolean. - public OuterComposite(decimal myNumber = default(decimal), string myString = default(string), bool myBoolean = default(bool)) + public OuterComposite(decimal? myNumber = default(decimal?), string myString = default(string), bool? myBoolean = default(bool?)) { this.MyNumber = myNumber; this.MyString = myString; @@ -47,7 +47,7 @@ public partial class OuterComposite : IEquatable /// Gets or Sets MyNumber /// [DataMember(Name = "my_number", EmitDefaultValue = false)] - public decimal MyNumber { get; set; } + public decimal? MyNumber { get; set; } /// /// Gets or Sets MyString @@ -59,7 +59,7 @@ public partial class OuterComposite : IEquatable /// Gets or Sets MyBoolean /// [DataMember(Name = "my_boolean", EmitDefaultValue = true)] - public bool MyBoolean { get; set; } + public bool? MyBoolean { get; set; } /// /// Returns the string presentation of the object @@ -109,7 +109,8 @@ public bool Equals(OuterComposite input) return ( this.MyNumber == input.MyNumber || - this.MyNumber.Equals(input.MyNumber) + (this.MyNumber != null && + this.MyNumber.Equals(input.MyNumber)) ) && ( this.MyString == input.MyString || @@ -118,7 +119,8 @@ public bool Equals(OuterComposite input) ) && ( this.MyBoolean == input.MyBoolean || - this.MyBoolean.Equals(input.MyBoolean) + (this.MyBoolean != null && + this.MyBoolean.Equals(input.MyBoolean)) ); } @@ -131,12 +133,18 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + if (this.MyNumber != null) + { + hashCode = (hashCode * 59) + this.MyNumber.GetHashCode(); + } if (this.MyString != null) { hashCode = (hashCode * 59) + this.MyString.GetHashCode(); } - hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + if (this.MyBoolean != null) + { + hashCode = (hashCode * 59) + this.MyBoolean.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 5c1cdd9be600..c736ad2868bf 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -77,7 +77,7 @@ protected Pet() { } /// photoUrls (required). /// tags. /// pet status in the store. - public Pet(long id = default(long), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) + public Pet(long? id = default(long?), Category category = default(Category), string name = default(string), List photoUrls = default(List), List tags = default(List), StatusEnum? status = default(StatusEnum?)) { // to ensure "name" is required (not null) if (name == null) @@ -101,7 +101,7 @@ protected Pet() { } /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Category @@ -179,7 +179,8 @@ public bool Equals(Pet input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Category == input.Category || @@ -218,7 +219,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Category != null) { hashCode = (hashCode * 59) + this.Category.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ca7b920a8d63..890778b708b6 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -34,10 +34,10 @@ public partial class PolymorphicProperty : AbstractOpenAPISchema, IEquatable /// Initializes a new instance of the class - /// with the class + /// with the class /// - /// An instance of bool. - public PolymorphicProperty(bool actualInstance) + /// An instance of bool?. + public PolymorphicProperty(bool? actualInstance) { this.IsNullable = false; this.SchemaType= "oneOf"; @@ -102,7 +102,7 @@ public override Object ActualInstance { this._actualInstance = value; } - else if (value.GetType() == typeof(bool) || value is bool) + else if (value.GetType() == typeof(bool?) || value is bool?) { this._actualInstance = value; } @@ -112,19 +112,19 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool, string"); + throw new ArgumentException("Invalid instance found. Must be the following types: List, Object, bool?, string"); } } } /// - /// Get the actual instance of `bool`. If the actual instance is not `bool`, + /// Get the actual instance of `bool?`. If the actual instance is not `bool?`, /// the InvalidClassException will be thrown /// - /// An instance of bool - public bool GetBool() + /// An instance of bool? + public bool? GetBool?() { - return (bool)this.ActualInstance; + return (bool?)this.ActualInstance; } /// @@ -238,21 +238,21 @@ public static PolymorphicProperty FromJson(string jsonString) try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize - if (typeof(bool).GetProperty("AdditionalProperties") == null) + if (typeof(bool?).GetProperty("AdditionalProperties") == null) { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.SerializerSettings)); } else { - newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); + newPolymorphicProperty = new PolymorphicProperty(JsonConvert.DeserializeObject(jsonString, PolymorphicProperty.AdditionalPropertiesSerializerSettings)); } - matchedTypes.Add("bool"); + matchedTypes.Add("bool?"); match++; } catch (Exception exception) { // deserialization failed, try the next one - System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool: {1}", jsonString, exception.ToString())); + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into bool?: {1}", jsonString, exception.ToString())); } try diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index eb89d56999fc..3b0e840c9f7d 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -55,7 +55,7 @@ public enum RequiredNullableEnumIntegerEnum /// /// Defines RequiredNotnullableEnumInteger /// - public enum RequiredNotnullableEnumIntegerEnum + public enum RequiredNotnullableEnumIntegerEnu { /// /// Enum NUMBER_1 for value: 1 @@ -73,7 +73,7 @@ public enum RequiredNotnullableEnumIntegerEnum /// Gets or Sets RequiredNotnullableEnumInteger /// [DataMember(Name = "required_notnullable_enum_integer", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerEnum RequiredNotnullableEnumInteger { get; set; } + public RequiredNotnullableEnumIntegerEnu RequiredNotnullableEnumInteger { get; set; } /// /// Defines NotrequiredNullableEnumInteger /// @@ -144,7 +144,7 @@ public enum RequiredNullableEnumIntegerOnlyEnum /// /// Defines RequiredNotnullableEnumIntegerOnly /// - public enum RequiredNotnullableEnumIntegerOnlyEnum + public enum RequiredNotnullableEnumIntegerOnlyEnu { /// /// Enum NUMBER_2 for value: 2 @@ -162,7 +162,7 @@ public enum RequiredNotnullableEnumIntegerOnlyEnum /// Gets or Sets RequiredNotnullableEnumIntegerOnly /// [DataMember(Name = "required_notnullable_enum_integer_only", IsRequired = true, EmitDefaultValue = true)] - public RequiredNotnullableEnumIntegerOnlyEnum RequiredNotnullableEnumIntegerOnly { get; set; } + public RequiredNotnullableEnumIntegerOnlyEnu RequiredNotnullableEnumIntegerOnly { get; set; } /// /// Defines NotrequiredNullableEnumIntegerOnly /// @@ -189,6 +189,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -528,7 +529,7 @@ protected RequiredClass() { } /// requiredNotnullableArrayOfString (required). /// notrequiredNullableArrayOfString. /// notrequiredNotnullableArrayOfString. - public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int notRequiredNotnullableintegerProp = default(int), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool notrequiredNotnullableBooleanProp = default(bool), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime notRequiredNotnullableDateProp = default(DateTime), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime notrequiredNotnullableDatetimeProp = default(DateTime), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnum requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnum), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnum requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnum), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid notrequiredNotnullableUuid = default(Guid), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) + public RequiredClass(int? requiredNullableIntegerProp = default(int?), int requiredNotnullableintegerProp = default(int), int? notRequiredNullableIntegerProp = default(int?), int? notRequiredNotnullableintegerProp = default(int?), string requiredNullableStringProp = default(string), string requiredNotnullableStringProp = default(string), string notrequiredNullableStringProp = default(string), string notrequiredNotnullableStringProp = default(string), bool? requiredNullableBooleanProp = default(bool?), bool requiredNotnullableBooleanProp = default(bool), bool? notrequiredNullableBooleanProp = default(bool?), bool? notrequiredNotnullableBooleanProp = default(bool?), DateTime? requiredNullableDateProp = default(DateTime?), DateTime requiredNotNullableDateProp = default(DateTime), DateTime? notRequiredNullableDateProp = default(DateTime?), DateTime? notRequiredNotnullableDateProp = default(DateTime?), DateTime requiredNotnullableDatetimeProp = default(DateTime), DateTime? requiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNullableDatetimeProp = default(DateTime?), DateTime? notrequiredNotnullableDatetimeProp = default(DateTime?), RequiredNullableEnumIntegerEnum requiredNullableEnumInteger = default(RequiredNullableEnumIntegerEnum), RequiredNotnullableEnumIntegerEnu requiredNotnullableEnumInteger = default(RequiredNotnullableEnumIntegerEnu), NotrequiredNullableEnumIntegerEnum? notrequiredNullableEnumInteger = default(NotrequiredNullableEnumIntegerEnum?), NotrequiredNotnullableEnumIntegerEnum? notrequiredNotnullableEnumInteger = default(NotrequiredNotnullableEnumIntegerEnum?), RequiredNullableEnumIntegerOnlyEnum requiredNullableEnumIntegerOnly = default(RequiredNullableEnumIntegerOnlyEnum), RequiredNotnullableEnumIntegerOnlyEnu requiredNotnullableEnumIntegerOnly = default(RequiredNotnullableEnumIntegerOnlyEnu), NotrequiredNullableEnumIntegerOnlyEnum? notrequiredNullableEnumIntegerOnly = default(NotrequiredNullableEnumIntegerOnlyEnum?), NotrequiredNotnullableEnumIntegerOnlyEnum? notrequiredNotnullableEnumIntegerOnly = default(NotrequiredNotnullableEnumIntegerOnlyEnum?), RequiredNotnullableEnumStringEnum requiredNotnullableEnumString = default(RequiredNotnullableEnumStringEnum), RequiredNullableEnumStringEnum requiredNullableEnumString = default(RequiredNullableEnumStringEnum), NotrequiredNullableEnumStringEnum? notrequiredNullableEnumString = default(NotrequiredNullableEnumStringEnum?), NotrequiredNotnullableEnumStringEnum? notrequiredNotnullableEnumString = default(NotrequiredNotnullableEnumStringEnum?), OuterEnumDefaultValue requiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue), OuterEnumDefaultValue? notrequiredNullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), OuterEnumDefaultValue? notrequiredNotnullableOuterEnumDefaultValue = default(OuterEnumDefaultValue?), Guid? requiredNullableUuid = default(Guid?), Guid requiredNotnullableUuid = default(Guid), Guid? notrequiredNullableUuid = default(Guid?), Guid? notrequiredNotnullableUuid = default(Guid?), List requiredNullableArrayOfString = default(List), List requiredNotnullableArrayOfString = default(List), List notrequiredNullableArrayOfString = default(List), List notrequiredNotnullableArrayOfString = default(List)) { // to ensure "requiredNullableIntegerProp" is required (not null) if (requiredNullableIntegerProp == null) @@ -643,7 +644,7 @@ protected RequiredClass() { } /// Gets or Sets NotRequiredNotnullableintegerProp /// [DataMember(Name = "not_required_notnullableinteger_prop", EmitDefaultValue = false)] - public int NotRequiredNotnullableintegerProp { get; set; } + public int? NotRequiredNotnullableintegerProp { get; set; } /// /// Gets or Sets RequiredNullableStringProp @@ -691,7 +692,7 @@ protected RequiredClass() { } /// Gets or Sets NotrequiredNotnullableBooleanProp /// [DataMember(Name = "notrequired_notnullable_boolean_prop", EmitDefaultValue = true)] - public bool NotrequiredNotnullableBooleanProp { get; set; } + public bool? NotrequiredNotnullableBooleanProp { get; set; } /// /// Gets or Sets RequiredNullableDateProp @@ -719,7 +720,7 @@ protected RequiredClass() { } /// [DataMember(Name = "not_required_notnullable_date_prop", EmitDefaultValue = false)] [JsonConverter(typeof(OpenAPIDateConverter))] - public DateTime NotRequiredNotnullableDateProp { get; set; } + public DateTime? NotRequiredNotnullableDateProp { get; set; } /// /// Gets or Sets RequiredNotnullableDatetimeProp @@ -743,7 +744,7 @@ protected RequiredClass() { } /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [DataMember(Name = "notrequired_notnullable_datetime_prop", EmitDefaultValue = false)] - public DateTime NotrequiredNotnullableDatetimeProp { get; set; } + public DateTime? NotrequiredNotnullableDatetimeProp { get; set; } /// /// Gets or Sets RequiredNullableUuid @@ -771,7 +772,7 @@ protected RequiredClass() { } /// /// 72f98069-206d-4f12-9f12-3d1e525a8e84 [DataMember(Name = "notrequired_notnullable_uuid", EmitDefaultValue = false)] - public Guid NotrequiredNotnullableUuid { get; set; } + public Guid? NotrequiredNotnullableUuid { get; set; } /// /// Gets or Sets RequiredNullableArrayOfString @@ -900,7 +901,8 @@ public bool Equals(RequiredClass input) ) && ( this.NotRequiredNotnullableintegerProp == input.NotRequiredNotnullableintegerProp || - this.NotRequiredNotnullableintegerProp.Equals(input.NotRequiredNotnullableintegerProp) + (this.NotRequiredNotnullableintegerProp != null && + this.NotRequiredNotnullableintegerProp.Equals(input.NotRequiredNotnullableintegerProp)) ) && ( this.RequiredNullableStringProp == input.RequiredNullableStringProp || @@ -938,7 +940,8 @@ public bool Equals(RequiredClass input) ) && ( this.NotrequiredNotnullableBooleanProp == input.NotrequiredNotnullableBooleanProp || - this.NotrequiredNotnullableBooleanProp.Equals(input.NotrequiredNotnullableBooleanProp) + (this.NotrequiredNotnullableBooleanProp != null && + this.NotrequiredNotnullableBooleanProp.Equals(input.NotrequiredNotnullableBooleanProp)) ) && ( this.RequiredNullableDateProp == input.RequiredNullableDateProp || @@ -1108,7 +1111,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotRequiredNullableIntegerProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + if (this.NotRequiredNotnullableintegerProp != null) + { + hashCode = (hashCode * 59) + this.NotRequiredNotnullableintegerProp.GetHashCode(); + } if (this.RequiredNullableStringProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableStringProp.GetHashCode(); @@ -1134,7 +1140,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.NotrequiredNullableBooleanProp.GetHashCode(); } - hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + if (this.NotrequiredNotnullableBooleanProp != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableBooleanProp.GetHashCode(); + } if (this.RequiredNullableDateProp != null) { hashCode = (hashCode * 59) + this.RequiredNullableDateProp.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index e878ddab0b92..c54f3e8a1387 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -42,7 +42,7 @@ protected Return() { } /// varLock (required). /// varAbstract (required). /// varUnsafe. - public Return(int varReturn = default(int), string varLock = default(string), string varAbstract = default(string), string varUnsafe = default(string)) + public Return(int? varReturn = default(int?), string varLock = default(string), string varAbstract = default(string), string varUnsafe = default(string)) { // to ensure "varLock" is required (not null) if (varLock == null) @@ -64,7 +64,7 @@ protected Return() { } /// Gets or Sets VarReturn /// [DataMember(Name = "return", EmitDefaultValue = false)] - public int VarReturn { get; set; } + public int? VarReturn { get; set; } /// /// Gets or Sets Lock @@ -133,7 +133,8 @@ public bool Equals(Return input) return ( this.VarReturn == input.VarReturn || - this.VarReturn.Equals(input.VarReturn) + (this.VarReturn != null && + this.VarReturn.Equals(input.VarReturn)) ) && ( this.Lock == input.Lock || @@ -161,7 +162,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + if (this.VarReturn != null) + { + hashCode = (hashCode * 59) + this.VarReturn.GetHashCode(); + } if (this.Lock != null) { hashCode = (hashCode * 59) + this.Lock.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 60b9ac5c0008..ffd5e85fb304 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -35,7 +35,7 @@ public partial class RolesReportsHash : IEquatable /// /// roleUuid. /// role. - public RolesReportsHash(Guid roleUuid = default(Guid), RolesReportsHashRole role = default(RolesReportsHashRole)) + public RolesReportsHash(Guid? roleUuid = default(Guid?), RolesReportsHashRole role = default(RolesReportsHashRole)) { this.RoleUuid = roleUuid; this.Role = role; @@ -45,7 +45,7 @@ public partial class RolesReportsHash : IEquatable /// Gets or Sets RoleUuid /// [DataMember(Name = "role_uuid", EmitDefaultValue = false)] - public Guid RoleUuid { get; set; } + public Guid? RoleUuid { get; set; } /// /// Gets or Sets Role diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 4a637be16619..891a84c6f46e 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -35,7 +35,7 @@ public partial class SpecialModelName : IEquatable /// /// specialPropertyName. /// varSpecialModelName. - public SpecialModelName(long specialPropertyName = default(long), string varSpecialModelName = default(string)) + public SpecialModelName(long? specialPropertyName = default(long?), string varSpecialModelName = default(string)) { this.SpecialPropertyName = specialPropertyName; this.VarSpecialModelName = varSpecialModelName; @@ -45,7 +45,7 @@ public partial class SpecialModelName : IEquatable /// Gets or Sets SpecialPropertyName /// [DataMember(Name = "$special[property.name]", EmitDefaultValue = false)] - public long SpecialPropertyName { get; set; } + public long? SpecialPropertyName { get; set; } /// /// Gets or Sets VarSpecialModelName @@ -100,7 +100,8 @@ public bool Equals(SpecialModelName input) return ( this.SpecialPropertyName == input.SpecialPropertyName || - this.SpecialPropertyName.Equals(input.SpecialPropertyName) + (this.SpecialPropertyName != null && + this.SpecialPropertyName.Equals(input.SpecialPropertyName)) ) && ( this.VarSpecialModelName == input.VarSpecialModelName || @@ -118,7 +119,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + if (this.SpecialPropertyName != null) + { + hashCode = (hashCode * 59) + this.SpecialPropertyName.GetHashCode(); + } if (this.VarSpecialModelName != null) { hashCode = (hashCode * 59) + this.VarSpecialModelName.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 5699133e6672..96984a8e57a2 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -35,7 +35,7 @@ public partial class Tag : IEquatable /// /// id. /// name. - public Tag(long id = default(long), string name = default(string)) + public Tag(long? id = default(long?), string name = default(string)) { this.Id = id; this.Name = name; @@ -45,7 +45,7 @@ public partial class Tag : IEquatable /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -100,7 +100,8 @@ public bool Equals(Tag input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Name == input.Name || @@ -118,7 +119,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index 03599102829c..03bd68370925 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -45,7 +45,7 @@ public partial class User : IEquatable /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value.. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. See https://github.com/OAI/OpenAPI-Specification/issues/1389. /// test code generation for any type Here the 'type' attribute is not specified, which means the value can be anything, including the null value, string, number, boolean, array or object. The 'nullable' attribute does not change the allowed values.. - public User(long id = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int userStatus = default(int), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) + public User(long? id = default(long?), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int? userStatus = default(int?), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object)) { this.Id = id; this.Username = username; @@ -65,7 +65,7 @@ public partial class User : IEquatable /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Username @@ -108,7 +108,7 @@ public partial class User : IEquatable /// /// User Status [DataMember(Name = "userStatus", EmitDefaultValue = false)] - public int UserStatus { get; set; } + public int? UserStatus { get; set; } /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. @@ -195,7 +195,8 @@ public bool Equals(User input) return ( this.Id == input.Id || - this.Id.Equals(input.Id) + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.Username == input.Username || @@ -229,7 +230,8 @@ public bool Equals(User input) ) && ( this.UserStatus == input.UserStatus || - this.UserStatus.Equals(input.UserStatus) + (this.UserStatus != null && + this.UserStatus.Equals(input.UserStatus)) ) && ( this.ObjectWithNoDeclaredProps == input.ObjectWithNoDeclaredProps || @@ -262,7 +264,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); @@ -287,7 +292,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Phone.GetHashCode(); } - hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + if (this.UserStatus != null) + { + hashCode = (hashCode * 59) + this.UserStatus.GetHashCode(); + } if (this.ObjectWithNoDeclaredProps != null) { hashCode = (hashCode * 59) + this.ObjectWithNoDeclaredProps.GetHashCode(); diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 19775ac703bc..61111b21d3e9 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -41,7 +41,7 @@ protected Whale() { } /// hasBaleen. /// hasTeeth. /// className (required). - public Whale(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string)) + public Whale(bool? hasBaleen = default(bool?), bool? hasTeeth = default(bool?), string className = default(string)) { // to ensure "className" is required (not null) if (className == null) @@ -57,13 +57,13 @@ protected Whale() { } /// Gets or Sets HasBaleen /// [DataMember(Name = "hasBaleen", EmitDefaultValue = true)] - public bool HasBaleen { get; set; } + public bool? HasBaleen { get; set; } /// /// Gets or Sets HasTeeth /// [DataMember(Name = "hasTeeth", EmitDefaultValue = true)] - public bool HasTeeth { get; set; } + public bool? HasTeeth { get; set; } /// /// Gets or Sets ClassName @@ -119,11 +119,13 @@ public bool Equals(Whale input) return ( this.HasBaleen == input.HasBaleen || - this.HasBaleen.Equals(input.HasBaleen) + (this.HasBaleen != null && + this.HasBaleen.Equals(input.HasBaleen)) ) && ( this.HasTeeth == input.HasTeeth || - this.HasTeeth.Equals(input.HasTeeth) + (this.HasTeeth != null && + this.HasTeeth.Equals(input.HasTeeth)) ) && ( this.ClassName == input.ClassName || @@ -141,8 +143,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); - hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + if (this.HasBaleen != null) + { + hashCode = (hashCode * 59) + this.HasBaleen.GetHashCode(); + } + if (this.HasTeeth != null) + { + hashCode = (hashCode * 59) + this.HasTeeth.GetHashCode(); + } if (this.ClassName != null) { hashCode = (hashCode * 59) + this.ClassName.GetHashCode(); diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES b/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES index ec822fdd8838..8d58dbc93e12 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES @@ -63,6 +63,7 @@ docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md docs/Model/User.md git_push.sh phpunit.xml.dist +src/ApiException.php src/Api/AnotherFakeApi.php src/Api/DefaultApi.php src/Api/FakeApi.php @@ -70,7 +71,6 @@ src/Api/FakeClassnameTags123Api.php src/Api/PetApi.php src/Api/StoreApi.php src/Api/UserApi.php -src/ApiException.php src/Configuration.php src/HeaderSelector.php src/Model/AdditionalPropertiesClass.php diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist b/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist index 1135449a8d9b..cba878f52707 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist @@ -2,8 +2,8 @@ - ./src/Api - ./src/Model + ./src\/Api + ./src\/Model diff --git a/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES b/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES index 80ecc7a7237f..64737d51568c 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES +++ b/samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES @@ -60,6 +60,7 @@ docs/Model/Tag.md docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md docs/Model/User.md git_push.sh +lib/ApiException.php lib/Api/AnotherFakeApi.php lib/Api/DefaultApi.php lib/Api/FakeApi.php @@ -67,7 +68,6 @@ lib/Api/FakeClassnameTags123Api.php lib/Api/PetApi.php lib/Api/StoreApi.php lib/Api/UserApi.php -lib/ApiException.php lib/Configuration.php lib/HeaderSelector.php lib/Model/AdditionalPropertiesClass.php diff --git a/samples/client/petstore/php/psr-18/.openapi-generator/FILES b/samples/client/petstore/php/psr-18/.openapi-generator/FILES index 34aee01b39f6..c3884202a79d 100644 --- a/samples/client/petstore/php/psr-18/.openapi-generator/FILES +++ b/samples/client/petstore/php/psr-18/.openapi-generator/FILES @@ -60,6 +60,7 @@ docs/Model/Tag.md docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md docs/Model/User.md git_push.sh +lib/ApiException.php lib/Api/AnotherFakeApi.php lib/Api/DefaultApi.php lib/Api/FakeApi.php @@ -67,7 +68,6 @@ lib/Api/FakeClassnameTags123Api.php lib/Api/PetApi.php lib/Api/StoreApi.php lib/Api/UserApi.php -lib/ApiException.php lib/Configuration.php lib/DebugPlugin.php lib/HeaderSelector.php diff --git a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/FakeApi.cs index a0f2bd3b2315..eccd3a3006a6 100644 --- a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/FakeApi.cs index a0f2bd3b2315..eccd3a3006a6 100644 --- a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-3.1/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/FakeApi.cs index a0f2bd3b2315..eccd3a3006a6 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/FakeApi.cs index 6dd12a5fd682..47afda960757 100644 --- a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonSerializer.Deserialize(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs index d4230ca5a4c5..9aa7c62b8e82 100644 --- a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonSerializer.Deserialize(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs index 2c52f026791d..edb6042856df 100644 --- a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs index 5a0951513f3d..98e67314721d 100644 --- a/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/FakeApi.cs index a0f2bd3b2315..eccd3a3006a6 100644 --- a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs index fae01d29a624..64c652ea1875 100644 --- a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/FakeApi.cs index a0f2bd3b2315..eccd3a3006a6 100644 --- a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/FakeApi.cs index a0f2bd3b2315..eccd3a3006a6 100644 --- a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/FakeApi.cs index a0f2bd3b2315..eccd3a3006a6 100644 --- a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-6.0/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/FakeApi.cs index 6dd12a5fd682..47afda960757 100644 --- a/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonSerializer.Deserialize(exampleJson) diff --git a/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs index d4230ca5a4c5..9aa7c62b8e82 100644 --- a/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonSerializer.Deserialize(exampleJson) diff --git a/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs index 2c52f026791d..edb6042856df 100644 --- a/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs index 5a0951513f3d..98e67314721d 100644 --- a/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-NewtonsoftFalse/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/FakeApi.cs index a0f2bd3b2315..eccd3a3006a6 100644 --- a/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs index fae01d29a624..64c652ea1875 100644 --- a/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-nullableReferenceTypes/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/FakeApi.cs index a0f2bd3b2315..eccd3a3006a6 100644 --- a/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-pocoModels/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/FakeApi.cs index a0f2bd3b2315..eccd3a3006a6 100644 --- a/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-8.0-project4Models/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/FakeApi.cs b/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/FakeApi.cs index a0f2bd3b2315..eccd3a3006a6 100644 --- a/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/FakeApi.cs +++ b/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/FakeApi.cs @@ -43,7 +43,7 @@ public virtual IActionResult FakeNullableExampleTest() //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(TestNullable)); string exampleJson = null; - exampleJson = "{\n \"nullableName\" : \"nullableName\",\n \"name\" : \"name\"\n}"; + exampleJson = "{\r\n \"nullableName\" : \"nullableName\",\r\n \"name\" : \"name\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/PetApi.cs index 7dded4e0f16a..5a197da3156e 100644 --- a/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet) //TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(405); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n doggie\n \n aeiou\n \n \n \n aeiou\n"; var example = exampleJson != null @@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/StoreApi.cs index b925426c761d..c57b5fb3bd16 100644 --- a/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/UserApi.cs index 6d7094c81a9d..3277ae43fcfd 100644 --- a/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore-8.0/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs index 419bab14d099..562ee1b0ff43 100644 --- a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs +++ b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/PetApi.cs @@ -86,7 +86,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -117,7 +117,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]"; + exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -151,7 +151,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}"; + exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}"; exampleJson = "\n 123456789\n \n 123456789\n aeiou\n \n doggie\n \n aeiou\n \n \n \n 123456789\n aeiou\n \n \n aeiou\n"; var example = exampleJson != null @@ -226,7 +226,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(200, default(ApiResponse)); string exampleJson = null; - exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}"; + exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}"; var example = exampleJson != null ? JsonConvert.DeserializeObject(exampleJson) diff --git a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs index 8e493e399264..8dc20ddadfc4 100644 --- a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs +++ b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/StoreApi.cs @@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null @@ -127,7 +127,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order body) //TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(400); string exampleJson = null; - exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}"; + exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}"; exampleJson = "\n 123456789\n 123456789\n 123\n 2000-01-23T04:56:07.000Z\n aeiou\n true\n"; var example = exampleJson != null diff --git a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs index 6669f0418cee..d1d13530b839 100644 --- a/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs +++ b/samples/server/petstore/aspnetcore/src/Org.OpenAPITools/Controllers/UserApi.cs @@ -127,7 +127,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... // return StatusCode(404); string exampleJson = null; - exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}"; + exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}"; exampleJson = "\n 123456789\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n aeiou\n 123\n"; var example = exampleJson != null