From b56aa31d02773765877cb8a9f340a1f244012078 Mon Sep 17 00:00:00 2001 From: Bryan Aldrich Date: Thu, 5 Dec 2024 22:54:26 -0500 Subject: [PATCH] adjusted csharp codegen to allow for nullable properties (on value types only unless nullable reference types is enabled). Edited tests to compensate for the actual data types. They were optional/not-required in the yaml, but came back with non-nullable types. --- .../languages/AbstractCSharpCodegen.java | 4 +- .../languages/CSharpClientCodegen.java | 4 + .../CSharpClientCodegenTest.java | 4 +- .../csharpnetcore/CSharpModelTest.java | 8 +- .../echo_api/csharp-restsharp/docs/Bird.md | 4 +- .../csharp-restsharp/docs/Category.md | 4 +- .../csharp-restsharp/docs/DataQuery.md | 8 +- .../csharp-restsharp/docs/DefaultValue.md | 2 +- .../docs/NumberPropertiesOnly.md | 6 +- .../echo_api/csharp-restsharp/docs/Pet.md | 6 +- .../echo_api/csharp-restsharp/docs/Query.md | 2 +- .../echo_api/csharp-restsharp/docs/Tag.md | 4 +- .../TestFormObjectMultipartRequestMarker.md | 2 +- ...lodeTrueObjectAllOfQueryObjectParameter.md | 8 +- .../src/Org.OpenAPITools/Model/Bird.cs | 4 +- .../src/Org.OpenAPITools/Model/Category.cs | 12 +- .../src/Org.OpenAPITools/Model/DataQuery.cs | 6 +- .../Org.OpenAPITools/Model/DefaultValue.cs | 2 +- .../Model/NumberPropertiesOnly.cs | 38 ++-- .../src/Org.OpenAPITools/Model/Pet.cs | 12 +- .../src/Org.OpenAPITools/Model/Query.cs | 10 +- .../src/Org.OpenAPITools/Model/Tag.cs | 12 +- .../TestFormObjectMultipartRequestMarker.cs | 2 +- ...lodeTrueObjectAllOfQueryObjectParameter.cs | 16 +- .../csharp-functions/Org.OpenAPITools.sln | 26 +-- .../standard2.0/Petstore/docs/ApiResponse.md | 2 +- .../standard2.0/Petstore/docs/AppleReq.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 +- .../standard2.0/Petstore/docs/EnumTest.md | 6 +- .../standard2.0/Petstore/docs/FormatTest.md | 26 +-- .../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/MixLog.md | 2 +- .../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 | 6 +- .../Petstore/docs/OuterComposite.md | 4 +- .../standard2.0/Petstore/docs/Pet.md | 2 +- .../Petstore/docs/RequiredClass.md | 8 +- .../standard2.0/Petstore/docs/Return.md | 2 +- .../Petstore/docs/SpecialModelName.md | 2 +- .../standard2.0/Petstore/docs/Tag.md | 2 +- .../standard2.0/Petstore/docs/User.md | 4 +- .../standard2.0/Petstore/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 7 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 7 +- .../src/Org.OpenAPITools/Model/Banana.cs | 7 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 7 +- .../src/Org.OpenAPITools/Model/Cat.cs | 7 +- .../src/Org.OpenAPITools/Model/Category.cs | 7 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 155 +++++++++------ .../src/Org.OpenAPITools/Model/MixLog.cs | 7 +- .../Model/Model200Response.cs | 7 +- .../src/Org.OpenAPITools/Model/Name.cs | 14 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 7 +- .../Model/ObjectWithDeprecatedFields.cs | 7 +- .../src/Org.OpenAPITools/Model/Order.cs | 21 +- .../Org.OpenAPITools/Model/OuterComposite.cs | 14 +- .../src/Org.OpenAPITools/Model/Pet.cs | 7 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 15 +- .../src/Org.OpenAPITools/Model/Return.cs | 7 +- .../Model/SpecialModelName.cs | 7 +- .../src/Org.OpenAPITools/Model/Tag.cs | 7 +- .../src/Org.OpenAPITools/Model/User.cs | 14 +- .../src/Org.OpenAPITools/Model/Whale.cs | 14 +- .../MultipleFrameworks/docs/ApiResponse.md | 2 +- .../MultipleFrameworks/docs/Category.md | 2 +- .../net4.7/MultipleFrameworks/docs/Order.md | 6 +- .../net4.7/MultipleFrameworks/docs/Pet.md | 2 +- .../net4.7/MultipleFrameworks/docs/Tag.md | 2 +- .../net4.7/MultipleFrameworks/docs/User.md | 4 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 7 +- .../src/Org.OpenAPITools/Model/Category.cs | 7 +- .../src/Org.OpenAPITools/Model/Order.cs | 21 +- .../src/Org.OpenAPITools/Model/Pet.cs | 7 +- .../src/Org.OpenAPITools/Model/Tag.cs | 7 +- .../src/Org.OpenAPITools/Model/User.cs | 14 +- .../net4.7/Petstore/docs/ApiResponse.md | 2 +- .../net4.7/Petstore/docs/AppleReq.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/EnumTest.md | 6 +- .../net4.7/Petstore/docs/FormatTest.md | 16 +- .../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 +- .../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 | 6 +- .../net4.7/Petstore/docs/OuterComposite.md | 4 +- .../restsharp/net4.7/Petstore/docs/Pet.md | 2 +- .../net4.7/Petstore/docs/RequiredClass.md | 8 +- .../restsharp/net4.7/Petstore/docs/Return.md | 2 +- .../net4.7/Petstore/docs/SpecialModelName.md | 2 +- .../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/Model/ApiResponse.cs | 7 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 7 +- .../src/Org.OpenAPITools/Model/Banana.cs | 7 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 7 +- .../src/Org.OpenAPITools/Model/Cat.cs | 7 +- .../src/Org.OpenAPITools/Model/Category.cs | 7 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 96 ++++++---- .../Model/Model200Response.cs | 7 +- .../src/Org.OpenAPITools/Model/Name.cs | 14 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 7 +- .../Model/ObjectWithDeprecatedFields.cs | 7 +- .../src/Org.OpenAPITools/Model/Order.cs | 21 +- .../Org.OpenAPITools/Model/OuterComposite.cs | 14 +- .../src/Org.OpenAPITools/Model/Pet.cs | 7 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 15 +- .../src/Org.OpenAPITools/Model/Return.cs | 7 +- .../Model/SpecialModelName.cs | 7 +- .../src/Org.OpenAPITools/Model/Tag.cs | 7 +- .../src/Org.OpenAPITools/Model/User.cs | 14 +- .../src/Org.OpenAPITools/Model/Whale.cs | 14 +- .../net4.8/Petstore/docs/ApiResponse.md | 2 +- .../net4.8/Petstore/docs/AppleReq.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/EnumTest.md | 6 +- .../net4.8/Petstore/docs/FormatTest.md | 16 +- .../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 +- .../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 | 6 +- .../net4.8/Petstore/docs/OuterComposite.md | 4 +- .../restsharp/net4.8/Petstore/docs/Pet.md | 2 +- .../net4.8/Petstore/docs/RequiredClass.md | 8 +- .../restsharp/net4.8/Petstore/docs/Return.md | 2 +- .../net4.8/Petstore/docs/SpecialModelName.md | 2 +- .../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/Model/ApiResponse.cs | 7 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 7 +- .../src/Org.OpenAPITools/Model/Banana.cs | 7 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 7 +- .../src/Org.OpenAPITools/Model/Cat.cs | 7 +- .../src/Org.OpenAPITools/Model/Category.cs | 7 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 96 ++++++---- .../Model/Model200Response.cs | 7 +- .../src/Org.OpenAPITools/Model/Name.cs | 14 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 7 +- .../Model/ObjectWithDeprecatedFields.cs | 7 +- .../src/Org.OpenAPITools/Model/Order.cs | 21 +- .../Org.OpenAPITools/Model/OuterComposite.cs | 14 +- .../src/Org.OpenAPITools/Model/Pet.cs | 7 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 15 +- .../src/Org.OpenAPITools/Model/Return.cs | 7 +- .../Model/SpecialModelName.cs | 7 +- .../src/Org.OpenAPITools/Model/Tag.cs | 7 +- .../src/Org.OpenAPITools/Model/User.cs | 14 +- .../src/Org.OpenAPITools/Model/Whale.cs | 14 +- .../net6/ParameterMappings/docs/Env.md | 2 +- .../docs/PropertyNameMapping.md | 8 +- .../src/Org.OpenAPITools/Model/Env.cs | 2 +- .../Model/PropertyNameMapping.cs | 8 +- .../ActivityOutputElementRepresentation.md | 4 +- .../docs/AdditionalPropertiesClass.md | 8 +- .../net7/EnumMappings/docs/ApiResponse.md | 6 +- .../restsharp/net7/EnumMappings/docs/Apple.md | 6 +- .../net7/EnumMappings/docs/AppleReq.md | 2 +- .../net7/EnumMappings/docs/Banana.md | 2 +- .../net7/EnumMappings/docs/BananaReq.md | 2 +- .../net7/EnumMappings/docs/Capitalization.md | 12 +- .../restsharp/net7/EnumMappings/docs/Cat.md | 2 +- .../net7/EnumMappings/docs/Category.md | 2 +- .../net7/EnumMappings/docs/ChildCat.md | 2 +- .../net7/EnumMappings/docs/ClassModel.md | 2 +- .../net7/EnumMappings/docs/DateOnlyClass.md | 2 +- .../EnumMappings/docs/DeprecatedObject.md | 2 +- .../restsharp/net7/EnumMappings/docs/Dog.md | 2 +- .../net7/EnumMappings/docs/Drawing.md | 6 +- .../net7/EnumMappings/docs/EnumArrays.md | 2 +- .../net7/EnumMappings/docs/EnumTest.md | 16 +- .../restsharp/net7/EnumMappings/docs/File.md | 2 +- .../EnumMappings/docs/FileSchemaTestClass.md | 2 +- .../docs/FooGetDefaultResponse.md | 2 +- .../net7/EnumMappings/docs/FormatTest.md | 30 +-- .../restsharp/net7/EnumMappings/docs/Fruit.md | 10 +- .../net7/EnumMappings/docs/FruitReq.md | 4 +- .../net7/EnumMappings/docs/GmFruit.md | 10 +- .../net7/EnumMappings/docs/HasOnlyReadOnly.md | 4 +- .../EnumMappings/docs/HealthCheckResult.md | 2 +- .../restsharp/net7/EnumMappings/docs/List.md | 2 +- .../net7/EnumMappings/docs/Mammal.md | 6 +- .../net7/EnumMappings/docs/MixedAnyOf.md | 2 +- .../EnumMappings/docs/MixedAnyOfContent.md | 2 +- .../net7/EnumMappings/docs/MixedOneOf.md | 2 +- .../EnumMappings/docs/MixedOneOfContent.md | 2 +- ...dPropertiesAndAdditionalPropertiesClass.md | 6 +- .../net7/EnumMappings/docs/MixedSubId.md | 2 +- .../EnumMappings/docs/Model200Response.md | 4 +- .../net7/EnumMappings/docs/ModelClient.md | 2 +- .../restsharp/net7/EnumMappings/docs/Name.md | 6 +- .../net7/EnumMappings/docs/NullableClass.md | 2 +- .../net7/EnumMappings/docs/NumberOnly.md | 2 +- .../docs/ObjectWithDeprecatedFields.md | 6 +- .../restsharp/net7/EnumMappings/docs/Order.md | 10 +- .../net7/EnumMappings/docs/OuterComposite.md | 6 +- .../restsharp/net7/EnumMappings/docs/Pet.md | 6 +- .../net7/EnumMappings/docs/ReadOnlyFirst.md | 4 +- .../net7/EnumMappings/docs/RequiredClass.md | 26 +-- .../net7/EnumMappings/docs/Return.md | 2 +- .../EnumMappings/docs/RolesReportsHash.md | 4 +- .../EnumMappings/docs/RolesReportsHashRole.md | 2 +- .../EnumMappings/docs/SpecialModelName.md | 4 +- .../restsharp/net7/EnumMappings/docs/Tag.md | 4 +- .../docs/TestCollectionEndingWithWordList.md | 2 +- ...lineFreeformAdditionalPropertiesRequest.md | 2 +- .../restsharp/net7/EnumMappings/docs/User.md | 24 +-- .../restsharp/net7/EnumMappings/docs/Whale.md | 4 +- .../restsharp/net7/EnumMappings/docs/Zebra.md | 2 +- .../EnumMappings/docs/ZeroBasedEnumClass.md | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 11 +- .../src/Org.OpenAPITools/Model/Apple.cs | 12 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 7 +- .../src/Org.OpenAPITools/Model/Banana.cs | 7 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 7 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +- .../src/Org.OpenAPITools/Model/Cat.cs | 7 +- .../src/Org.OpenAPITools/Model/Category.cs | 7 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 2 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Dog.cs | 2 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 6 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 69 ++++--- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 118 +++++++----- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 9 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 16 +- .../Org.OpenAPITools/Model/NullableClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 7 +- .../Model/ObjectWithDeprecatedFields.cs | 11 +- .../src/Org.OpenAPITools/Model/Order.cs | 23 ++- .../Org.OpenAPITools/Model/OuterComposite.cs | 16 +- .../src/Org.OpenAPITools/Model/Pet.cs | 9 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 59 +++--- .../src/Org.OpenAPITools/Model/Return.cs | 7 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 9 +- .../src/Org.OpenAPITools/Model/Tag.cs | 9 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/User.cs | 34 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 14 +- .../ActivityOutputElementRepresentation.md | 4 +- .../docs/AdditionalPropertiesClass.md | 8 +- .../net7/Petstore/docs/ApiResponse.md | 6 +- .../restsharp/net7/Petstore/docs/Apple.md | 6 +- .../restsharp/net7/Petstore/docs/AppleReq.md | 2 +- .../restsharp/net7/Petstore/docs/Banana.md | 2 +- .../restsharp/net7/Petstore/docs/BananaReq.md | 2 +- .../net7/Petstore/docs/Capitalization.md | 12 +- .../restsharp/net7/Petstore/docs/Cat.md | 2 +- .../restsharp/net7/Petstore/docs/Category.md | 2 +- .../restsharp/net7/Petstore/docs/ChildCat.md | 2 +- .../net7/Petstore/docs/ClassModel.md | 2 +- .../net7/Petstore/docs/DateOnlyClass.md | 2 +- .../net7/Petstore/docs/DeprecatedObject.md | 2 +- .../restsharp/net7/Petstore/docs/Dog.md | 2 +- .../restsharp/net7/Petstore/docs/Drawing.md | 6 +- .../net7/Petstore/docs/EnumArrays.md | 2 +- .../restsharp/net7/Petstore/docs/EnumTest.md | 16 +- .../restsharp/net7/Petstore/docs/File.md | 2 +- .../net7/Petstore/docs/FileSchemaTestClass.md | 2 +- .../Petstore/docs/FooGetDefaultResponse.md | 2 +- .../net7/Petstore/docs/FormatTest.md | 40 ++-- .../restsharp/net7/Petstore/docs/Fruit.md | 10 +- .../restsharp/net7/Petstore/docs/FruitReq.md | 4 +- .../restsharp/net7/Petstore/docs/GmFruit.md | 10 +- .../net7/Petstore/docs/HasOnlyReadOnly.md | 4 +- .../net7/Petstore/docs/HealthCheckResult.md | 2 +- .../restsharp/net7/Petstore/docs/List.md | 2 +- .../restsharp/net7/Petstore/docs/Mammal.md | 6 +- .../restsharp/net7/Petstore/docs/MixLog.md | 44 ++--- .../net7/Petstore/docs/MixedAnyOf.md | 2 +- .../net7/Petstore/docs/MixedAnyOfContent.md | 2 +- .../net7/Petstore/docs/MixedOneOf.md | 2 +- .../net7/Petstore/docs/MixedOneOfContent.md | 2 +- ...dPropertiesAndAdditionalPropertiesClass.md | 6 +- .../net7/Petstore/docs/MixedSubId.md | 2 +- .../net7/Petstore/docs/Model200Response.md | 4 +- .../net7/Petstore/docs/ModelClient.md | 2 +- .../restsharp/net7/Petstore/docs/Name.md | 6 +- .../net7/Petstore/docs/NullableClass.md | 2 +- .../net7/Petstore/docs/NumberOnly.md | 2 +- .../docs/ObjectWithDeprecatedFields.md | 6 +- .../restsharp/net7/Petstore/docs/Order.md | 10 +- .../net7/Petstore/docs/OuterComposite.md | 6 +- .../restsharp/net7/Petstore/docs/Pet.md | 6 +- .../net7/Petstore/docs/ReadOnlyFirst.md | 4 +- .../net7/Petstore/docs/RequiredClass.md | 26 +-- .../restsharp/net7/Petstore/docs/Return.md | 4 +- .../net7/Petstore/docs/RolesReportsHash.md | 4 +- .../Petstore/docs/RolesReportsHashRole.md | 2 +- .../net7/Petstore/docs/SpecialModelName.md | 4 +- .../restsharp/net7/Petstore/docs/Tag.md | 4 +- .../docs/TestCollectionEndingWithWordList.md | 2 +- ...lineFreeformAdditionalPropertiesRequest.md | 2 +- .../restsharp/net7/Petstore/docs/User.md | 24 +-- .../restsharp/net7/Petstore/docs/Whale.md | 4 +- .../restsharp/net7/Petstore/docs/Zebra.md | 2 +- .../net7/Petstore/docs/ZeroBasedEnumClass.md | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 11 +- .../src/Org.OpenAPITools/Model/Apple.cs | 12 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 7 +- .../src/Org.OpenAPITools/Model/Banana.cs | 7 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 7 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +- .../src/Org.OpenAPITools/Model/Cat.cs | 7 +- .../src/Org.OpenAPITools/Model/Category.cs | 7 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 2 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Dog.cs | 2 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 6 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 69 ++++--- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 177 ++++++++++------- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../src/Org.OpenAPITools/Model/MixLog.cs | 49 ++--- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 9 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 16 +- .../Org.OpenAPITools/Model/NullableClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 7 +- .../Model/ObjectWithDeprecatedFields.cs | 11 +- .../src/Org.OpenAPITools/Model/Order.cs | 23 ++- .../Org.OpenAPITools/Model/OuterComposite.cs | 16 +- .../src/Org.OpenAPITools/Model/Pet.cs | 9 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 59 +++--- .../src/Org.OpenAPITools/Model/Return.cs | 9 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 9 +- .../src/Org.OpenAPITools/Model/Tag.cs | 9 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/User.cs | 34 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 14 +- .../docs/NowGet200Response.md | 4 +- .../Model/NowGet200Response.cs | 4 +- .../docs/ApiResponse.md | 2 +- .../ConditionalSerialization/docs/AppleReq.md | 2 +- .../ConditionalSerialization/docs/Banana.md | 2 +- .../docs/BananaReq.md | 2 +- .../ConditionalSerialization/docs/Cat.md | 2 +- .../ConditionalSerialization/docs/Category.md | 2 +- .../ConditionalSerialization/docs/EnumTest.md | 6 +- .../docs/FormatTest.md | 26 +-- .../ConditionalSerialization/docs/Fruit.md | 2 +- .../ConditionalSerialization/docs/FruitReq.md | 4 +- .../ConditionalSerialization/docs/GmFruit.md | 2 +- .../ConditionalSerialization/docs/Mammal.md | 4 +- .../ConditionalSerialization/docs/MixLog.md | 2 +- .../docs/Model200Response.md | 2 +- .../ConditionalSerialization/docs/Name.md | 4 +- .../docs/NumberOnly.md | 2 +- .../docs/ObjectWithDeprecatedFields.md | 2 +- .../ConditionalSerialization/docs/Order.md | 6 +- .../docs/OuterComposite.md | 4 +- .../ConditionalSerialization/docs/Pet.md | 2 +- .../docs/RequiredClass.md | 8 +- .../ConditionalSerialization/docs/Return.md | 2 +- .../docs/SpecialModelName.md | 2 +- .../ConditionalSerialization/docs/Tag.md | 2 +- .../ConditionalSerialization/docs/User.md | 4 +- .../ConditionalSerialization/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 9 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 9 +- .../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 | 181 +++++++++++------- .../src/Org.OpenAPITools/Model/MixLog.cs | 9 +- .../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 | 27 ++- .../Org.OpenAPITools/Model/OuterComposite.cs | 18 +- .../src/Org.OpenAPITools/Model/Pet.cs | 9 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 19 +- .../src/Org.OpenAPITools/Model/Return.cs | 9 +- .../Model/SpecialModelName.cs | 9 +- .../src/Org.OpenAPITools/Model/Tag.cs | 9 +- .../src/Org.OpenAPITools/Model/User.cs | 18 +- .../src/Org.OpenAPITools/Model/Whale.cs | 18 +- .../standard2.0/Petstore/docs/ApiResponse.md | 2 +- .../standard2.0/Petstore/docs/AppleReq.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 +- .../standard2.0/Petstore/docs/EnumTest.md | 6 +- .../standard2.0/Petstore/docs/FormatTest.md | 16 +- .../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 +- .../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 | 6 +- .../Petstore/docs/OuterComposite.md | 4 +- .../standard2.0/Petstore/docs/Pet.md | 2 +- .../Petstore/docs/RequiredClass.md | 8 +- .../standard2.0/Petstore/docs/Return.md | 2 +- .../Petstore/docs/SpecialModelName.md | 2 +- .../standard2.0/Petstore/docs/Tag.md | 2 +- .../standard2.0/Petstore/docs/User.md | 4 +- .../standard2.0/Petstore/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 7 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 7 +- .../src/Org.OpenAPITools/Model/Banana.cs | 7 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 7 +- .../src/Org.OpenAPITools/Model/Cat.cs | 7 +- .../src/Org.OpenAPITools/Model/Category.cs | 7 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 96 ++++++---- .../Model/Model200Response.cs | 7 +- .../src/Org.OpenAPITools/Model/Name.cs | 14 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 7 +- .../Model/ObjectWithDeprecatedFields.cs | 7 +- .../src/Org.OpenAPITools/Model/Order.cs | 21 +- .../Org.OpenAPITools/Model/OuterComposite.cs | 14 +- .../src/Org.OpenAPITools/Model/Pet.cs | 7 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 15 +- .../src/Org.OpenAPITools/Model/Return.cs | 7 +- .../Model/SpecialModelName.cs | 7 +- .../src/Org.OpenAPITools/Model/Tag.cs | 7 +- .../src/Org.OpenAPITools/Model/User.cs | 14 +- .../src/Org.OpenAPITools/Model/Whale.cs | 14 +- .../standard2.0/Petstore/docs/ApiResponse.md | 2 +- .../standard2.0/Petstore/docs/AppleReq.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 +- .../standard2.0/Petstore/docs/EnumTest.md | 6 +- .../standard2.0/Petstore/docs/FormatTest.md | 26 +-- .../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/MixLog.md | 2 +- .../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 | 6 +- .../Petstore/docs/OuterComposite.md | 4 +- .../standard2.0/Petstore/docs/Pet.md | 2 +- .../Petstore/docs/RequiredClass.md | 8 +- .../standard2.0/Petstore/docs/Return.md | 2 +- .../Petstore/docs/SpecialModelName.md | 2 +- .../standard2.0/Petstore/docs/Tag.md | 2 +- .../standard2.0/Petstore/docs/User.md | 4 +- .../standard2.0/Petstore/docs/Whale.md | 4 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 10 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 10 +- .../src/Org.OpenAPITools/Model/Banana.cs | 10 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 10 +- .../src/Org.OpenAPITools/Model/Cat.cs | 10 +- .../src/Org.OpenAPITools/Model/Category.cs | 10 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 1 + .../src/Org.OpenAPITools/Model/FormatTest.cs | 130 +++++++++---- .../src/Org.OpenAPITools/Model/MixLog.cs | 10 +- .../Model/Model200Response.cs | 10 +- .../src/Org.OpenAPITools/Model/Name.cs | 20 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 10 +- .../Model/ObjectWithDeprecatedFields.cs | 10 +- .../src/Org.OpenAPITools/Model/Order.cs | 30 ++- .../Org.OpenAPITools/Model/OuterComposite.cs | 20 +- .../src/Org.OpenAPITools/Model/Pet.cs | 10 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 21 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +- .../Model/SpecialModelName.cs | 10 +- .../src/Org.OpenAPITools/Model/Tag.cs | 10 +- .../src/Org.OpenAPITools/Model/User.cs | 20 +- .../src/Org.OpenAPITools/Model/Whale.cs | 20 +- 537 files changed, 2905 insertions(+), 1862 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java index 02043c013d9a..0f5562290a7a 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java @@ -488,7 +488,7 @@ public void postProcessModelProperty(CodegenModel model, CodegenProperty propert } Double maximum = asDouble(property.maximum); - if (property.dataType.equals("int") && maximum != null) { + if (property.dataType.startsWith("int") && maximum != null) { if ((!property.exclusiveMaximum && asInteger(property.maximum) == null) || (property.exclusiveMaximum && asInteger((maximum + 1) + "") == null)) { property.dataType = "long"; property.datatypeWithEnum = "long"; @@ -496,7 +496,7 @@ public void postProcessModelProperty(CodegenModel model, CodegenProperty propert } Double minimum = asDouble(property.minimum); - if (property.dataType.equals("int") && minimum != null) { + if (property.dataType.startsWith("int") && minimum != null) { if ((!property.exclusiveMinimum && asInteger(property.minimum) == null) || (property.exclusiveMinimum && asInteger((minimum - 1) + "") == null)) { property.dataType = "long"; property.datatypeWithEnum = "long"; diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java index f260a33dd32b..d87c23ee33d0 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CSharpClientCodegen.java @@ -669,6 +669,10 @@ public void postProcessModelProperty(CodegenModel model, CodegenProperty propert postProcessEmitDefaultValue(property.vendorExtensions); super.postProcessModelProperty(model, property); + + if (!GENERICHOST.equals(getLibrary()) && !property.dataType.endsWith("?") && !property.required && property.defaultValue == null && (this.getValueTypes().contains(property.dataType) || (nullReferenceTypesFlag && !property.isArray && !property.isMap))) { + property.dataType = property.dataType + "?"; + } } @Override diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java index 4617ec5044ad..69a50f9ca0e7 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java @@ -72,7 +72,7 @@ public void testUnsigned() { final CodegenProperty property1 = cm1.allVars.get(2); Assert.assertEquals(property1.baseName, "unsigned_integer"); - Assert.assertEquals(property1.dataType, "uint"); + Assert.assertEquals(property1.dataType, "uint?"); Assert.assertEquals(property1.vendorExtensions.get("x-unsigned"), Boolean.TRUE); Assert.assertTrue(property1.isPrimitiveType); Assert.assertTrue(property1.isInteger); @@ -82,7 +82,7 @@ public void testUnsigned() { final CodegenProperty property2 = cm1.allVars.get(4); Assert.assertEquals(property2.baseName, "unsigned_long"); - Assert.assertEquals(property2.dataType, "ulong"); + Assert.assertEquals(property2.dataType, "ulong?"); Assert.assertEquals(property2.vendorExtensions.get("x-unsigned"), Boolean.TRUE); Assert.assertTrue(property2.isPrimitiveType); Assert.assertTrue(property2.isLong); diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpModelTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpModelTest.java index c16b194e7957..bc52e1ec15bc 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpModelTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpModelTest.java @@ -194,7 +194,7 @@ public void simpleModelTest() { final CodegenProperty property3 = cm.vars.get(2); Assert.assertEquals(property3.baseName, "createdAt"); - Assert.assertEquals(property3.dataType, "DateTime"); + Assert.assertEquals(property3.dataType, "DateTime?"); Assert.assertEquals(property3.name, "CreatedAt"); Assert.assertNull(property3.defaultValue); Assert.assertEquals(property3.baseType, "DateTime"); @@ -243,7 +243,7 @@ public void nonNullablePropertyTest() { final CodegenProperty property3 = cm.vars.get(2); Assert.assertEquals(property3.baseName, "name"); - Assert.assertEquals(property3.dataType, "string"); + Assert.assertEquals(property3.dataType, "string?"); Assert.assertEquals(property3.name, "Name"); Assert.assertNull(property3.defaultValue); Assert.assertEquals(property3.baseType, "string"); @@ -293,7 +293,7 @@ public void nullablePropertyTest() { final CodegenProperty property3 = cm.vars.get(2); Assert.assertEquals(property3.baseName, "name"); - Assert.assertEquals(property3.dataType, "string"); + Assert.assertEquals(property3.dataType, "string?"); Assert.assertEquals(property3.name, "Name"); Assert.assertNull(property3.defaultValue); Assert.assertEquals(property3.baseType, "string"); @@ -510,7 +510,7 @@ public void complexPropertyTest() { final CodegenProperty property1 = cm.vars.get(0); Assert.assertEquals(property1.baseName, "children"); - Assert.assertEquals(property1.dataType, "Children"); + Assert.assertEquals(property1.dataType, "Children?"); Assert.assertEquals(property1.name, "Children"); Assert.assertEquals(property1.baseType, "Children"); Assert.assertFalse(property1.required); diff --git a/samples/client/echo_api/csharp-restsharp/docs/Bird.md b/samples/client/echo_api/csharp-restsharp/docs/Bird.md index ad2a13da1890..92c9d1de56b0 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Bird.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Bird.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Size** | **string** | | [optional] -**Color** | **string** | | [optional] +**Size** | **string?** | | [optional] +**Color** | **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/Category.md b/samples/client/echo_api/csharp-restsharp/docs/Category.md index fd3c5e2b257a..be23d2cc1723 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Category.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Category.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Name** | **string** | | [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..1effe6f9e3d3 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] +**Suffix** | **string?** | test suffix | [optional] +**Text** | **string?** | Some text containing white spaces | [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..f6a68f4745b4 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/DefaultValue.md +++ b/samples/client/echo_api/csharp-restsharp/docs/DefaultValue.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **ArrayString** | **List<string>** | | [optional] **ArrayStringNullable** | **List<string>** | | [optional] **ArrayStringExtensionNullable** | **List<string>** | | [optional] -**StringNullable** | **string** | | [optional] +**StringNullable** | **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/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/Pet.md b/samples/client/echo_api/csharp-restsharp/docs/Pet.md index ff2f348d392b..b8c7d51638c2 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Pet.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Pet.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] +**Id** | **long?** | | [optional] **Name** | **string** | | -**Category** | [**Category**](Category.md) | | [optional] +**Category** | [**Category?**](Category.md) | | [optional] **PhotoUrls** | **List<string>** | | **Tags** | [**List<Tag>**](Tag.md) | | [optional] -**Status** | **string** | pet status in the store | [optional] +**Status** | **string?** | pet status in the store | [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/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/Tag.md b/samples/client/echo_api/csharp-restsharp/docs/Tag.md index fdd22eb31fdd..1f6ddf2cdbe5 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/Tag.md +++ b/samples/client/echo_api/csharp-restsharp/docs/Tag.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Name** | **string** | | [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/TestFormObjectMultipartRequestMarker.md b/samples/client/echo_api/csharp-restsharp/docs/TestFormObjectMultipartRequestMarker.md index 6de6ca6f5f0d..6f32348802c6 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/TestFormObjectMultipartRequestMarker.md +++ b/samples/client/echo_api/csharp-restsharp/docs/TestFormObjectMultipartRequestMarker.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [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..9dfdd639c8ea 100644 --- a/samples/client/echo_api/csharp-restsharp/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md +++ b/samples/client/echo_api/csharp-restsharp/docs/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Size** | **string** | | [optional] -**Color** | **string** | | [optional] -**Id** | **long** | | [optional] -**Name** | **string** | | [optional] +**Size** | **string?** | | [optional] +**Color** | **string?** | | [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/Model/Bird.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Bird.cs index e87aec99cc66..f44b1b5d1a07 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Bird.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/Bird.cs @@ -47,13 +47,13 @@ public partial class Bird : IEquatable, IValidatableObject /// Gets or Sets Size /// [DataMember(Name = "size", EmitDefaultValue = false)] - public string Size { get; set; } + public string? Size { get; set; } /// /// Gets or Sets Color /// [DataMember(Name = "color", EmitDefaultValue = false)] - public string Color { get; set; } + public string? Color { get; set; } /// /// Returns the string presentation of the object 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 ae30da28141e..046e20a318df 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 @@ -50,7 +50,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 @@ -59,7 +59,7 @@ public partial class Category : IEquatable, IValidatableObject Dogs */ [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object @@ -108,7 +108,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 || @@ -126,7 +127,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 ee11b0f5c9b3..807b3354e9cd 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 @@ -52,7 +52,7 @@ public partial class DataQuery : Query, IEquatable, IValidatableObjec /// /// test suffix [DataMember(Name = "suffix", EmitDefaultValue = false)] - public string Suffix { get; set; } + public string? Suffix { get; set; } /// /// Some text containing white spaces @@ -62,14 +62,14 @@ public partial class DataQuery : Query, IEquatable, IValidatableObjec Some text */ [DataMember(Name = "text", EmitDefaultValue = false)] - public string Text { get; set; } + public string? Text { get; set; } /// /// A date /// /// 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..e0669a7cf25f 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 @@ -126,7 +126,7 @@ public enum ArrayStringEnumDefaultEnum /// Gets or Sets StringNullable /// [DataMember(Name = "string_nullable", EmitDefaultValue = true)] - public string StringNullable { get; set; } + public string? StringNullable { get; set; } /// /// Returns the string presentation of the object 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..e3f821f54029 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 @@ -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 f3b46cae4930..0162928887f2 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 @@ -106,7 +106,7 @@ protected Pet() { } 10 */ [DataMember(Name = "id", EmitDefaultValue = false)] - public long Id { get; set; } + public long? Id { get; set; } /// /// Gets or Sets Name @@ -121,7 +121,7 @@ protected Pet() { } /// Gets or Sets Category /// [DataMember(Name = "category", EmitDefaultValue = false)] - public Category Category { get; set; } + public Category? Category { get; set; } /// /// Gets or Sets PhotoUrls @@ -186,7 +186,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 || @@ -225,7 +226,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..2eb1ee2fedd7 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 @@ -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..16a6ef59b107 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 @@ -47,13 +47,13 @@ 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 /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object @@ -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/TestFormObjectMultipartRequestMarker.cs b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs index d38d85da5203..1f425f183c96 100644 --- a/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs +++ b/samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools/Model/TestFormObjectMultipartRequestMarker.cs @@ -45,7 +45,7 @@ public partial class TestFormObjectMultipartRequestMarker : IEquatable [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object 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 124ef98ce3a9..c3c092dbbc5d 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 @@ -51,13 +51,13 @@ public partial class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectPa /// Gets or Sets Size /// [DataMember(Name = "size", EmitDefaultValue = false)] - public string Size { get; set; } + public string? Size { get; set; } /// /// Gets or Sets Color /// [DataMember(Name = "color", EmitDefaultValue = false)] - public string Color { get; set; } + public string? Color { get; set; } /// /// Gets or Sets Id @@ -66,7 +66,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 @@ -75,7 +75,7 @@ public partial class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectPa Dogs */ [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object @@ -136,7 +136,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 || @@ -162,7 +163,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/petstore/csharp-functions/Org.OpenAPITools.sln b/samples/client/petstore/csharp-functions/Org.OpenAPITools.sln index 6f12b4fa17de..88af3afd0dad 100644 --- a/samples/client/petstore/csharp-functions/Org.OpenAPITools.sln +++ b/samples/client/petstore/csharp-functions/Org.OpenAPITools.sln @@ -6,17 +6,17 @@ MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Org.OpenAPITools", "src\Org.OpenAPITools\Org.OpenAPITools.csproj", "{6C41B0FB-16DE-4E0C-9797-286D6A24F96F}" EndProject Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6C41B0FB-16DE-4E0C-9797-286D6A24F96F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection EndGlobal 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/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/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/FormatTest.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/FormatTest.md index c028ca739018..0a5703ce8b05 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,20 +4,20 @@ 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** | **long?** | | [optional] +**Int64Negative** | **long?** | | [optional] +**Int64PositiveExclusive** | **long?** | | [optional] +**Int64NegativeExclusive** | **long?** | | [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] 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/MixLog.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/MixLog.md index 1872e30daaa3..ae8546abe127 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 @@ -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/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..c5d9f28ccc02 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,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] 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/RequiredClass.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/RequiredClass.md index 07b6f018f6c1..2ec1d6949ba0 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,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **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] 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/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/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/Model/ApiResponse.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 296753574edc..f8f8c81d0beb 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 @@ -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..b04982aac15c 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 @@ -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/Banana.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 55a7b982dfdf..40f64d37475d 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 @@ -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..bd04bf414a55 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 @@ -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 d0656ca88eb3..029b0b46fe40 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 @@ -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/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..905711947766 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 @@ -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/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 81da66d122d5..db969ac2eb4f 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 @@ -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 long? Int64Positive { get; set; } /// /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative { get; set; } + public long? Int64Negative { get; set; } /// /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive { get; set; } + public long? Int64PositiveExclusive { get; set; } /// /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive { get; set; } + public long? 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 @@ -345,20 +345,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(); @@ -414,74 +453,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 (long?) minimum + if (this.Int64Positive < (long?)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 (long?) maximum + if (this.Int64Negative > (long?)-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 (long?) minimum + if (this.Int64PositiveExclusive < (long?)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 (long?) maximum + if (this.Int64NegativeExclusive <= (long?)-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" }); } @@ -498,26 +537,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/MixLog.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index 31e0e4e46e3a..3c264243ada8 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 @@ -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/Model200Response.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 34aee45d4c8c..812d18e07a00 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 @@ -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..6b820bf3c828 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 @@ -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..8207ae501a46 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 @@ -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 3f9806f04db7..462d74f8814f 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 @@ -90,19 +90,19 @@ 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 @@ -182,9 +182,18 @@ 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(); 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..b32804a33253 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 @@ -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 e35abdf6a86c..a221acde9a50 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 @@ -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 @@ -200,7 +200,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/RequiredClass.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index d8c4bd8a3994..1c79c9a8897e 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 @@ -192,6 +192,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -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 @@ -922,7 +923,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(); @@ -948,7 +952,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..2a0dccf0b0d3 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 @@ -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/SpecialModelName.cs b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index e1e27974a67b..16fff45b5ce1 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 @@ -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..f89dfbdc03f3 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 @@ -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..a4a52325ecdf 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 @@ -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..8541bd1cd6ad 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 @@ -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..bf087227320a 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,9 +5,9 @@ An order for a pets from the pet store Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] 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/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/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.7/MultipleFrameworks/src/Org.OpenAPITools/Model/ApiResponse.cs index ef964fd4e870..fb5ac15b1037 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 @@ -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..b6e898ae864e 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 @@ -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..d400927d96cb 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 @@ -88,19 +88,19 @@ 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 @@ -170,9 +170,18 @@ 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(); 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 08848e98cd42..e9963bb4887b 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 @@ -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 @@ -189,7 +189,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..72fa6d18ef09 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 @@ -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..7178d3a4dde0 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 @@ -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/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/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/FormatTest.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/FormatTest.md index c2144b5e3cf6..9b6d809466c8 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,15 +4,15 @@ 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] 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/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..c5d9f28ccc02 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,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] 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/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/RequiredClass.md index 07b6f018f6c1..2ec1d6949ba0 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,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **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] 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/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/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/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1f..51772309eda8 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 @@ -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..67d2eecc4c26 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 @@ -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/Banana.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..64b9c31778d1 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 @@ -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..551074881d17 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 @@ -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 a52dd988da51..fc431e7b777d 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 @@ -57,7 +57,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 @@ -118,7 +118,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..6feda1e8c352 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 @@ -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/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 a741277dd273..a62831e60781 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 @@ -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 @@ -299,15 +299,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(); @@ -363,38 +387,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" }); } @@ -411,26 +435,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/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e754..7b1c87bbe7da 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 @@ -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..ee2c09f6c83e 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 @@ -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..6c728b477087 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 @@ -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 4b8b7068fe04..818eb45eb7ec 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 @@ -89,19 +89,19 @@ 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 @@ -181,9 +181,18 @@ 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(); 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..2470c13fdb60 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 @@ -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 e036d66bc889..37b02216fb02 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 @@ -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 @@ -199,7 +199,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/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 8160c859b76e..2ead3095aaa1 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 @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -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 @@ -921,7 +922,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(); @@ -947,7 +951,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..ac44065ab1b0 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 @@ -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/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f..d31817992fe2 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 @@ -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..b8f4e20ed848 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 @@ -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..3371b44e43c1 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 @@ -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..d242dc782d15 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 @@ -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/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/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/FormatTest.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/FormatTest.md index c2144b5e3cf6..9b6d809466c8 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,15 +4,15 @@ 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] 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/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..c5d9f28ccc02 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,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] 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/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/RequiredClass.md index 07b6f018f6c1..2ec1d6949ba0 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,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **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] 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/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/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/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1f..51772309eda8 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 @@ -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..67d2eecc4c26 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 @@ -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/Banana.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..64b9c31778d1 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 @@ -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..551074881d17 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 @@ -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 a52dd988da51..fc431e7b777d 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 @@ -57,7 +57,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 @@ -118,7 +118,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..6feda1e8c352 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 @@ -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/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 a741277dd273..a62831e60781 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 @@ -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 @@ -299,15 +299,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(); @@ -363,38 +387,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" }); } @@ -411,26 +435,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/Model200Response.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e754..7b1c87bbe7da 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 @@ -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..ee2c09f6c83e 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 @@ -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..6c728b477087 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 @@ -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 4b8b7068fe04..818eb45eb7ec 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 @@ -89,19 +89,19 @@ 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 @@ -181,9 +181,18 @@ 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(); 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..2470c13fdb60 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 @@ -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 e036d66bc889..37b02216fb02 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 @@ -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 @@ -199,7 +199,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/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 8160c859b76e..2ead3095aaa1 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 @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -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 @@ -921,7 +922,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(); @@ -947,7 +951,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..ac44065ab1b0 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 @@ -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/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f..d31817992fe2 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 @@ -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..b8f4e20ed848 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 @@ -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..3371b44e43c1 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 @@ -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..d242dc782d15 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 @@ -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/docs/Env.md b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/Env.md index c9c69c0f23a2..4cfa41b01195 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/Env.md +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/Env.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Dummy** | **string** | | [optional] +**Dummy** | **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/net6/ParameterMappings/docs/PropertyNameMapping.md b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/PropertyNameMapping.md index cef568d4db6a..e4ec109b00c7 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/PropertyNameMapping.md +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/docs/PropertyNameMapping.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HttpDebugOperation** | **string** | | [optional] -**UnderscoreType** | **string** | | [optional] -**Type** | **string** | | [optional] -**TypeWithUnderscore** | **string** | | [optional] +**HttpDebugOperation** | **string?** | | [optional] +**UnderscoreType** | **string?** | | [optional] +**Type** | **string?** | | [optional] +**TypeWithUnderscore** | **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/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs index ea3d938c159a..beac89d0ac89 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/Env.cs @@ -44,7 +44,7 @@ public partial class Env : IEquatable, IValidatableObject /// Gets or Sets Dummy /// [DataMember(Name = "dummy", EmitDefaultValue = false)] - public string Dummy { get; set; } + public string? Dummy { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs index 597e015588f8..ca79fda72079 100644 --- a/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs +++ b/samples/client/petstore/csharp/restsharp/net6/ParameterMappings/src/Org.OpenAPITools/Model/PropertyNameMapping.cs @@ -50,25 +50,25 @@ public partial class PropertyNameMapping : IEquatable, IVal /// Gets or Sets HttpDebugOperation /// [DataMember(Name = "http_debug_operation", EmitDefaultValue = false)] - public string HttpDebugOperation { get; set; } + public string? HttpDebugOperation { get; set; } /// /// Gets or Sets UnderscoreType /// [DataMember(Name = "_type", EmitDefaultValue = false)] - public string UnderscoreType { get; set; } + public string? UnderscoreType { get; set; } /// /// Gets or Sets Type /// [DataMember(Name = "type", EmitDefaultValue = false)] - public string Type { get; set; } + public string? Type { get; set; } /// /// Gets or Sets TypeWithUnderscore /// [DataMember(Name = "type_", EmitDefaultValue = false)] - public string TypeWithUnderscore { get; set; } + public string? TypeWithUnderscore { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ActivityOutputElementRepresentation.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ActivityOutputElementRepresentation.md index 21f226b39525..7f37e8a701aa 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ActivityOutputElementRepresentation.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ActivityOutputElementRepresentation.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Prop1** | **string** | | [optional] -**Prop2** | **Object** | | [optional] +**Prop1** | **string?** | | [optional] +**Prop2** | **Object?** | | [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/AdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AdditionalPropertiesClass.md index c40cd0f8accb..e9b9f2256d9f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/AdditionalPropertiesClass.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapProperty** | **Dictionary<string, string>** | | [optional] **MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [optional] -**Anytype1** | **Object** | | [optional] -**MapWithUndeclaredPropertiesAnytype1** | **Object** | | [optional] -**MapWithUndeclaredPropertiesAnytype2** | **Object** | | [optional] +**Anytype1** | **Object?** | | [optional] +**MapWithUndeclaredPropertiesAnytype1** | **Object?** | | [optional] +**MapWithUndeclaredPropertiesAnytype2** | **Object?** | | [optional] **MapWithUndeclaredPropertiesAnytype3** | **Dictionary<string, Object>** | | [optional] -**EmptyMap** | **Object** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] +**EmptyMap** | **Object?** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] **MapWithUndeclaredPropertiesString** | **Dictionary<string, 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/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ApiResponse.md index bb723d2baa13..7bae51a82b75 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ApiResponse.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] -**Type** | **string** | | [optional] -**Message** | **string** | | [optional] +**Code** | **int?** | | [optional] +**Type** | **string?** | | [optional] +**Message** | **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/Apple.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Apple.md index 6261194e4800..7711490a679b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Apple.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Apple.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **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/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/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/Capitalization.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Capitalization.md index 1b1352d918f4..e9b31d33a641 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Capitalization.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Capitalization.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SmallCamel** | **string** | | [optional] -**CapitalCamel** | **string** | | [optional] -**SmallSnake** | **string** | | [optional] -**CapitalSnake** | **string** | | [optional] -**SCAETHFlowPoints** | **string** | | [optional] -**ATT_NAME** | **string** | Name of the pet | [optional] +**SmallCamel** | **string?** | | [optional] +**CapitalCamel** | **string?** | | [optional] +**SmallSnake** | **string?** | | [optional] +**CapitalSnake** | **string?** | | [optional] +**SCAETHFlowPoints** | **string?** | | [optional] +**ATT_NAME** | **string?** | Name of the pet | [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/ChildCat.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ChildCat.md index 8ce6449e5f22..3d0a819274cf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ChildCat.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ChildCat.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] +**Name** | **string?** | | [optional] **PetType** | **string** | | [default to PetTypeEnum.ChildCat] [[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/ClassModel.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ClassModel.md index f39982657c89..9bd76dc855f8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ClassModel.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [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/DateOnlyClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DateOnlyClass.md index 8291b9cb6d78..e56ad3ae3df7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DateOnlyClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DateOnlyClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateOnlyProperty** | **DateOnly** | | [optional] +**DateOnlyProperty** | **DateOnly?** | | [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/DeprecatedObject.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DeprecatedObject.md index bb7824a3d640..3b5eacc8e075 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DeprecatedObject.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/DeprecatedObject.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [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/Dog.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Dog.md index 3aa00144e9aa..721425ea1e13 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Dog.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Dog.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Breed** | **string** | | [optional] +**Breed** | **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/Drawing.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Drawing.md index 6b7122940afa..50b962c62e8f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Drawing.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Drawing.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MainShape** | [**Shape**](Shape.md) | | [optional] -**ShapeOrNull** | [**ShapeOrNull**](ShapeOrNull.md) | | [optional] -**NullableShape** | [**NullableShape**](NullableShape.md) | | [optional] +**MainShape** | [**Shape?**](Shape.md) | | [optional] +**ShapeOrNull** | [**ShapeOrNull?**](ShapeOrNull.md) | | [optional] +**NullableShape** | [**NullableShape?**](NullableShape.md) | | [optional] **Shapes** | [**List<Shape>**](Shape.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/EnumArrays.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumArrays.md index 62e34f03dbc3..1691ef8adb0a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumArrays.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumArrays.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustSymbol** | **string** | | [optional] +**JustSymbol** | **string?** | | [optional] **ArrayEnum** | **List<EnumArrays.ArrayEnumEnum>** | | [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/EnumTest.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumTest.md index 5ce3c4addd9b..720f9ae54ace 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/EnumTest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EnumString** | **string** | | [optional] +**EnumString** | **string?** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] -**OuterEnum** | **OuterEnum** | | [optional] -**OuterEnumInteger** | **OuterEnumInteger** | | [optional] -**OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] -**OuterEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] +**OuterEnum** | [**OuterEnum?**](OuterEnum.md) | | [optional] +**OuterEnumInteger** | [**OuterEnumInteger?**](OuterEnumInteger.md) | | [optional] +**OuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] +**OuterEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue?**](OuterEnumIntegerDefaultValue.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/File.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/File.md index 28959feda088..e67cd955342f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/File.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/File.md @@ -5,7 +5,7 @@ Must be named `File` for test. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SourceURI** | **string** | Test capitalization | [optional] +**SourceURI** | **string?** | Test capitalization | [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/FileSchemaTestClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FileSchemaTestClass.md index 0ce4be56cc72..ccb2d082f662 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FileSchemaTestClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**File** | [**File**](File.md) | | [optional] +**File** | [**File?**](File.md) | | [optional] **Files** | [**List<File>**](File.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/FooGetDefaultResponse.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FooGetDefaultResponse.md index dde9b9729b93..28fc2f659f08 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**String** | [**Foo?**](Foo.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/FormatTest.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FormatTest.md index 14efa7b0f63e..4b1c2a4194d6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/FormatTest.md @@ -4,25 +4,25 @@ 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] -**String** | **string** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] +**String** | **string?** | | [optional] **Byte** | **byte[]** | | -**Binary** | **System.IO.Stream** | | [optional] +**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] -**PatternWithBackslash** | **string** | None | [optional] +**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] +**PatternWithBackslash** | **string?** | None | [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/Fruit.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Fruit.md index 40df92d7c9b1..c446aa06b20b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Fruit.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Color** | **string** | | [optional] -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**Color** | **string?** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **string?** | | [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..3ef782902939 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/GmFruit.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Color** | **string** | | [optional] -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**Color** | **string?** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **string?** | | [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/HasOnlyReadOnly.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HasOnlyReadOnly.md index 64549c18b0a1..b4d3bd8c6d57 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HasOnlyReadOnly.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Bar** | **string** | | [optional] [readonly] -**Foo** | **string** | | [optional] [readonly] +**Bar** | **string?** | | [optional] [readonly] +**Foo** | **string?** | | [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/HealthCheckResult.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HealthCheckResult.md index f7d1a7eb6886..154fd14dcc7d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HealthCheckResult.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/HealthCheckResult.md @@ -5,7 +5,7 @@ Just a string to inform instance is up and running. Make it nullable in hope to Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NullableMessage** | **string** | | [optional] +**NullableMessage** | **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/List.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/List.md index c00ef31e6e25..65dd7bf072a2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/List.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Var123List** | **string** | | [optional] +**Var123List** | **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/Mammal.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Mammal.md index aab8f4db9c75..e82462c4bbaa 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Mammal.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | -**Type** | **string** | | [optional] +**Type** | **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/MixedAnyOf.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOf.md index 6a6aa093bebe..1cee08f2a5dc 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOf.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOf.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Content** | [**MixedAnyOfContent**](MixedAnyOfContent.md) | | [optional] +**Content** | [**MixedAnyOfContent?**](MixedAnyOfContent.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/MixedAnyOfContent.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOfContent.md index 9af972f3219f..deb8047505e8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOfContent.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedAnyOfContent.md @@ -5,7 +5,7 @@ Mixed anyOf types for testing Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **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/MixedOneOf.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOf.md index dc9650a8e3a0..0c5625d3f74c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOf.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOf.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Content** | [**MixedOneOfContent**](MixedOneOfContent.md) | | [optional] +**Content** | [**MixedOneOfContent?**](MixedOneOfContent.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/MixedOneOfContent.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOfContent.md index 8468f9024f73..4629cf446150 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOfContent.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedOneOfContent.md @@ -5,7 +5,7 @@ Mixed oneOf types for testing Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **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/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/MixedSubId.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedSubId.md index b9268e37cba6..c5989c5922d9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedSubId.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/MixedSubId.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **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/Model200Response.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Model200Response.md index 31f4d86fe43d..c719083851e4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Model200Response.md @@ -5,8 +5,8 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] -**Class** | **string** | | [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/ModelClient.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ModelClient.md index 1d8afe3e1a7a..d525ccdaa521 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ModelClient.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarClient** | **string** | | [optional] +**VarClient** | **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..a89e8d24d4a7 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] -**Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] +**Property** | **string?** | | [optional] +**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/NullableClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NullableClass.md index 2d238d6a80cb..64578b092a03 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NullableClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/NullableClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **IntegerProp** | **int?** | | [optional] **NumberProp** | **decimal?** | | [optional] **BooleanProp** | **bool?** | | [optional] -**StringProp** | **string** | | [optional] +**StringProp** | **string?** | | [optional] **DateProp** | **DateOnly?** | | [optional] **DatetimeProp** | **DateTime?** | | [optional] **ArrayNullableProp** | **List<Object>** | | [optional] 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..a36d8ca84a70 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ObjectWithDeprecatedFields.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] -**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] +**Uuid** | **string?** | | [optional] +**Id** | **decimal?** | | [optional] +**DeprecatedRef** | [**DeprecatedObject?**](DeprecatedObject.md) | | [optional] **Bars** | **List<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/Order.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Order.md index 66c55c3b4737..72f9aefc4239 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Order.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] -**Status** | **string** | Order Status | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] +**Status** | **string?** | Order Status | [optional] **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..e1a61b97a536 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] -**MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyNumber** | **decimal?** | | [optional] +**MyString** | **string?** | | [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..503652fad78f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Pet.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Category** | [**Category**](Category.md) | | [optional] +**Id** | **long?** | | [optional] +**Category** | [**Category?**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | **Tags** | [**List<Tag>**](Tag.md) | | [optional] -**Status** | **string** | pet status in the store | [optional] +**Status** | **string?** | pet status in the store | [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/ReadOnlyFirst.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ReadOnlyFirst.md index b3f4a17ea34e..c3d41e7f8f46 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ReadOnlyFirst.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Bar** | **string** | | [optional] [readonly] -**Baz** | **string** | | [optional] +**Bar** | **string?** | | [optional] [readonly] +**Baz** | **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/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RequiredClass.md index 7f734db8a618..2c00b36dce18 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RequiredClass.md @@ -7,43 +7,43 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | -**NotrequiredNullableStringProp** | **string** | | [optional] -**NotrequiredNotnullableStringProp** | **string** | | [optional] +**NotrequiredNullableStringProp** | **string?** | | [optional] +**NotrequiredNotnullableStringProp** | **string?** | | [optional] **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateOnly?** | | **RequiredNotNullableDateProp** | **DateOnly** | | **NotRequiredNullableDateProp** | **DateOnly?** | | [optional] -**NotRequiredNotnullableDateProp** | **DateOnly** | | [optional] +**NotRequiredNotnullableDateProp** | **DateOnly?** | | [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] -**NotrequiredNotnullableEnumString** | **string** | | [optional] +**NotrequiredNullableEnumString** | **string?** | | [optional] +**NotrequiredNotnullableEnumString** | **string?** | | [optional] **RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | **RequiredNotnullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | -**NotrequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] -**NotrequiredNotnullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] +**NotrequiredNullableOuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] +**NotrequiredNotnullableOuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] **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..e73788a32fb3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHash.md @@ -5,8 +5,8 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] -**Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [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/RolesReportsHashRole.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHashRole.md index 6f9affc24032..8b9da914ec6c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHashRole.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/RolesReportsHashRole.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [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/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/SpecialModelName.md index 7f8ffca34fa1..50b87d981d57 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/SpecialModelName.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] -**VarSpecialModelName** | **string** | | [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/Tag.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Tag.md index fdd22eb31fdd..1f6ddf2cdbe5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Tag.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Name** | **string** | | [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/TestCollectionEndingWithWordList.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestCollectionEndingWithWordList.md index 0e5568637b89..3e90bb8a3d6c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestCollectionEndingWithWordList.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestCollectionEndingWithWordList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Value** | **string** | | [optional] +**Value** | **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/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md index c1cf9ce2f812..a2ebd09f076b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/TestInlineFreeformAdditionalPropertiesRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SomeProperty** | **string** | | [optional] +**SomeProperty** | **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..38d3987d7fc6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/User.md @@ -4,18 +4,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**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] -**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] -**AnyTypePropNullable** | **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. The 'nullable' attribute does not change the allowed values. | [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] +**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] +**AnyTypePropNullable** | **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. The 'nullable' attribute does not change the allowed values. | [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/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/docs/Zebra.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Zebra.md index 31e686adf0e7..4b4313ba5038 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Zebra.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/Zebra.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | | [optional] +**Type** | **string?** | | [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/docs/ZeroBasedEnumClass.md b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ZeroBasedEnumClass.md index b804bc0d7fb4..46002998b553 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ZeroBasedEnumClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/docs/ZeroBasedEnumClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ZeroBasedEnum** | **string** | | [optional] +**ZeroBasedEnum** | **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/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index dce3f9134dbb..a17d3d7d8e1f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -48,13 +48,13 @@ public partial class ActivityOutputElementRepresentation : IEquatable [DataMember(Name = "prop1", EmitDefaultValue = false)] - public string Prop1 { get; set; } + public string? Prop1 { get; set; } /// /// Gets or Sets Prop2 /// [DataMember(Name = "prop2", EmitDefaultValue = false)] - public Object Prop2 { get; set; } + public Object? Prop2 { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index c83597fc607e..671a639bc53b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -72,19 +72,19 @@ public partial class AdditionalPropertiesClass : IEquatable [DataMember(Name = "anytype_1", EmitDefaultValue = true)] - public Object Anytype1 { get; set; } + public Object? Anytype1 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype1 /// [DataMember(Name = "map_with_undeclared_properties_anytype_1", EmitDefaultValue = false)] - public Object MapWithUndeclaredPropertiesAnytype1 { get; set; } + public Object? MapWithUndeclaredPropertiesAnytype1 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype2 /// [DataMember(Name = "map_with_undeclared_properties_anytype_2", EmitDefaultValue = false)] - public Object MapWithUndeclaredPropertiesAnytype2 { get; set; } + public Object? MapWithUndeclaredPropertiesAnytype2 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype3 @@ -97,7 +97,7 @@ public partial class AdditionalPropertiesClass : IEquatable /// an object with no declared properties and no undeclared properties, hence it's an empty map. [DataMember(Name = "empty_map", EmitDefaultValue = false)] - public Object EmptyMap { get; set; } + public Object? EmptyMap { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesString 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..c0f08ba338c3 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 @@ -50,19 +50,19 @@ 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 /// [DataMember(Name = "type", EmitDefaultValue = false)] - public string Type { get; set; } + public string? Type { get; set; } /// /// Gets or Sets Message /// [DataMember(Name = "message", EmitDefaultValue = false)] - public string Message { get; set; } + public string? Message { get; set; } /// /// Gets or Sets additional properties @@ -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/Apple.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs index 8d3f9af56df6..0ea98c67d9dc 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Apple.cs @@ -50,19 +50,19 @@ public partial class Apple : IEquatable, IValidatableObject /// Gets or Sets Cultivar /// [DataMember(Name = "cultivar", EmitDefaultValue = false)] - public string Cultivar { get; set; } + public string? Cultivar { get; set; } /// /// Gets or Sets Origin /// [DataMember(Name = "origin", EmitDefaultValue = false)] - public string Origin { get; set; } + public string? Origin { get; set; } /// /// Gets or Sets ColorCode /// [DataMember(Name = "color_code", EmitDefaultValue = false)] - public string ColorCode { get; set; } + public string? ColorCode { get; set; } /// /// Gets or Sets additional properties @@ -152,7 +152,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.Cultivar != null) { - // Cultivar (string) pattern + // Cultivar (string?) pattern Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); if (!regexCultivar.Match(this.Cultivar).Success) { @@ -161,7 +161,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.Origin != null) { - // Origin (string) pattern + // Origin (string?) pattern Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexOrigin.Match(this.Origin).Success) { @@ -170,7 +170,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.ColorCode != null) { - // ColorCode (string) pattern + // ColorCode (string?) pattern Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); if (!regexColorCode.Match(this.ColorCode).Success) { 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..67d2eecc4c26 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 @@ -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/Banana.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..64b9c31778d1 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 @@ -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..551074881d17 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 @@ -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/Capitalization.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs index f46fffa0ad6c..17ac7f915b56 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Capitalization.cs @@ -56,38 +56,38 @@ public partial class Capitalization : IEquatable, IValidatableOb /// Gets or Sets SmallCamel /// [DataMember(Name = "smallCamel", EmitDefaultValue = false)] - public string SmallCamel { get; set; } + public string? SmallCamel { get; set; } /// /// Gets or Sets CapitalCamel /// [DataMember(Name = "CapitalCamel", EmitDefaultValue = false)] - public string CapitalCamel { get; set; } + public string? CapitalCamel { get; set; } /// /// Gets or Sets SmallSnake /// [DataMember(Name = "small_Snake", EmitDefaultValue = false)] - public string SmallSnake { get; set; } + public string? SmallSnake { get; set; } /// /// Gets or Sets CapitalSnake /// [DataMember(Name = "Capital_Snake", EmitDefaultValue = false)] - public string CapitalSnake { get; set; } + public string? CapitalSnake { get; set; } /// /// Gets or Sets SCAETHFlowPoints /// [DataMember(Name = "SCA_ETH_Flow_Points", EmitDefaultValue = false)] - public string SCAETHFlowPoints { get; set; } + public string? SCAETHFlowPoints { get; set; } /// /// Name of the pet /// /// Name of the pet [DataMember(Name = "ATT_NAME", EmitDefaultValue = false)] - public string ATT_NAME { get; set; } + public string? ATT_NAME { get; set; } /// /// Gets or Sets additional properties 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 a52dd988da51..fc431e7b777d 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 @@ -57,7 +57,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 @@ -118,7 +118,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..6feda1e8c352 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 @@ -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/ChildCat.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs index f546083c72f5..d85993746d90 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ChildCat.cs @@ -76,7 +76,7 @@ protected ChildCat() /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs index 7a0846aec4e1..e5c5deb9958e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ClassModel.cs @@ -46,7 +46,7 @@ public partial class ClassModel : IEquatable, IValidatableObject /// Gets or Sets Class /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class { get; set; } + public string? Class { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs index b260c723ba6b..954f75a6779c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -49,7 +49,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje Fri Jul 21 00:00:00 UTC 2017 */ [DataMember(Name = "dateOnlyProperty", EmitDefaultValue = false)] - public DateOnly DateOnlyProperty { get; set; } + public DateOnly? DateOnlyProperty { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 2895d518a81f..916002e1213e 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -46,7 +46,7 @@ public partial class DeprecatedObject : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs index 7437cf68475a..67051676a8b3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Dog.cs @@ -57,7 +57,7 @@ protected Dog() /// Gets or Sets Breed /// [DataMember(Name = "breed", EmitDefaultValue = false)] - public string Breed { get; set; } + public string? Breed { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs index 98c683539e6f..03ade818aa1a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/Drawing.cs @@ -52,19 +52,19 @@ public partial class Drawing : IEquatable, IValidatableObject /// Gets or Sets MainShape /// [DataMember(Name = "mainShape", EmitDefaultValue = false)] - public Shape MainShape { get; set; } + public Shape? MainShape { get; set; } /// /// Gets or Sets ShapeOrNull /// [DataMember(Name = "shapeOrNull", EmitDefaultValue = true)] - public ShapeOrNull ShapeOrNull { get; set; } + public ShapeOrNull? ShapeOrNull { get; set; } /// /// Gets or Sets NullableShape /// [DataMember(Name = "nullableShape", EmitDefaultValue = true)] - public NullableShape NullableShape { get; set; } + public NullableShape? NullableShape { get; set; } /// /// Gets or Sets Shapes 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..8c6366ac82fe 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 { /// @@ -223,30 +224,6 @@ public enum EnumNumberEnum /// [DataMember(Name = "enum_number", EmitDefaultValue = false)] public EnumNumberEnum? EnumNumber { get; set; } - - /// - /// Gets or Sets OuterEnum - /// - [DataMember(Name = "outerEnum", EmitDefaultValue = true)] - public OuterEnum? OuterEnum { get; set; } - - /// - /// Gets or Sets OuterEnumInteger - /// - [DataMember(Name = "outerEnumInteger", EmitDefaultValue = false)] - public OuterEnumInteger? OuterEnumInteger { get; set; } - - /// - /// Gets or Sets OuterEnumDefaultValue - /// - [DataMember(Name = "outerEnumDefaultValue", EmitDefaultValue = false)] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets OuterEnumIntegerDefaultValue - /// - [DataMember(Name = "outerEnumIntegerDefaultValue", EmitDefaultValue = false)] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get; set; } /// /// Initializes a new instance of the class. /// @@ -281,6 +258,30 @@ protected EnumTest() this.AdditionalProperties = new Dictionary(); } + /// + /// Gets or Sets OuterEnum + /// + [DataMember(Name = "outerEnum", EmitDefaultValue = true)] + public OuterEnum? OuterEnum { get; set; } + + /// + /// Gets or Sets OuterEnumInteger + /// + [DataMember(Name = "outerEnumInteger", EmitDefaultValue = false)] + public OuterEnumInteger? OuterEnumInteger { get; set; } + + /// + /// Gets or Sets OuterEnumDefaultValue + /// + [DataMember(Name = "outerEnumDefaultValue", EmitDefaultValue = false)] + public OuterEnumDefaultValue? OuterEnumDefaultValue { get; set; } + + /// + /// Gets or Sets OuterEnumIntegerDefaultValue + /// + [DataMember(Name = "outerEnumIntegerDefaultValue", EmitDefaultValue = false)] + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get; set; } + /// /// Gets or Sets additional properties /// @@ -352,10 +353,22 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.EnumInteger.GetHashCode(); hashCode = (hashCode * 59) + this.EnumIntegerOnly.GetHashCode(); hashCode = (hashCode * 59) + this.EnumNumber.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnum.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumIntegerDefaultValue.GetHashCode(); + if (this.OuterEnum != null) + { + hashCode = (hashCode * 59) + this.OuterEnum.GetHashCode(); + } + if (this.OuterEnumInteger != null) + { + hashCode = (hashCode * 59) + this.OuterEnumInteger.GetHashCode(); + } + if (this.OuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.OuterEnumDefaultValue.GetHashCode(); + } + if (this.OuterEnumIntegerDefaultValue != null) + { + hashCode = (hashCode * 59) + this.OuterEnumIntegerDefaultValue.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/File.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/File.cs index 72b34e492626..b6a92c42e601 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/File.cs @@ -47,7 +47,7 @@ public partial class File : IEquatable, IValidatableObject /// /// Test capitalization [DataMember(Name = "sourceURI", EmitDefaultValue = false)] - public string SourceURI { get; set; } + public string? SourceURI { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index cd75dba4a925..a969139850d0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -48,7 +48,7 @@ public partial class FileSchemaTestClass : IEquatable, IVal /// Gets or Sets File /// [DataMember(Name = "file", EmitDefaultValue = false)] - public File File { get; set; } + public File? File { get; set; } /// /// Gets or Sets Files diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 1ce81eece3ee..3b26cdae0ef6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -46,7 +46,7 @@ public partial class FooGetDefaultResponse : IEquatable, /// Gets or Sets String /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } + public Foo? String { get; set; } /// /// Gets or Sets additional properties 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 59c8975b9295..07a71a8e09c6 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 @@ -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,25 +136,25 @@ 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 /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } + public string? String { get; set; } /// /// Gets or Sets Byte @@ -166,7 +166,7 @@ protected FormatTest() /// Gets or Sets Binary /// [DataMember(Name = "binary", EmitDefaultValue = false)] - public System.IO.Stream Binary { get; set; } + public System.IO.Stream? Binary { get; set; } /// /// Gets or Sets Date @@ -184,7 +184,7 @@ 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 @@ -193,7 +193,7 @@ protected FormatTest() 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets Password @@ -206,21 +206,21 @@ protected FormatTest() /// /// A string that is a 10 digit number. Can have leading zeros. [DataMember(Name = "pattern_with_digits", EmitDefaultValue = false)] - public string PatternWithDigits { get; set; } + public string? PatternWithDigits { get; set; } /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [DataMember(Name = "pattern_with_digits_and_delimiter", EmitDefaultValue = false)] - public string PatternWithDigitsAndDelimiter { get; set; } + public string? PatternWithDigitsAndDelimiter { get; set; } /// /// None /// /// None [DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)] - public string PatternWithBackslash { get; set; } + public string? PatternWithBackslash { get; set; } /// /// Gets or Sets additional properties @@ -298,15 +298,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(); @@ -362,38 +386,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" }); } @@ -410,32 +434,32 @@ 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" }); } if (this.String != null) { - // String (string) pattern + // String (string?) pattern Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexString.Match(this.String).Success) { @@ -456,7 +480,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithDigits != null) { - // PatternWithDigits (string) pattern + // PatternWithDigits (string?) pattern Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) { @@ -465,7 +489,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithDigitsAndDelimiter != null) { - // PatternWithDigitsAndDelimiter (string) pattern + // PatternWithDigitsAndDelimiter (string?) pattern Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) { @@ -474,7 +498,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithBackslash != null) { - // PatternWithBackslash (string) pattern + // PatternWithBackslash (string?) pattern Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 3c6298d7d8d2..c1f73df75345 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -45,7 +45,7 @@ public HasOnlyReadOnly() /// Gets or Sets Bar /// [DataMember(Name = "bar", EmitDefaultValue = false)] - public string Bar { get; private set; } + public string? Bar { get; private set; } /// /// Returns false as Bar should not be serialized given that it's read-only. @@ -59,7 +59,7 @@ public bool ShouldSerializeBar() /// Gets or Sets Foo /// [DataMember(Name = "foo", EmitDefaultValue = false)] - public string Foo { get; private set; } + public string? Foo { get; private set; } /// /// Returns false as Foo should not be serialized given that it's read-only. diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 6fe074907762..ede1eddafbd9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -46,7 +46,7 @@ public partial class HealthCheckResult : IEquatable, IValidat /// Gets or Sets NullableMessage /// [DataMember(Name = "NullableMessage", EmitDefaultValue = true)] - public string NullableMessage { get; set; } + public string? NullableMessage { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs index e06a3f381f12..0a72274a601a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/List.cs @@ -46,7 +46,7 @@ public partial class List : IEquatable, IValidatableObject /// Gets or Sets Var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string Var123List { get; set; } + public string? Var123List { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 2b62d5975478..b38843c05183 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -46,7 +46,7 @@ public partial class MixedAnyOf : IEquatable, IValidatableObject /// Gets or Sets Content /// [DataMember(Name = "content", EmitDefaultValue = false)] - public MixedAnyOfContent Content { get; set; } + public MixedAnyOfContent? Content { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs index bd0255888b86..847ba54fba76 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -46,7 +46,7 @@ public partial class MixedOneOf : IEquatable, IValidatableObject /// Gets or Sets Content /// [DataMember(Name = "content", EmitDefaultValue = false)] - public MixedOneOfContent Content { get; set; } + public MixedOneOfContent? Content { get; set; } /// /// Gets or Sets additional properties 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..9963b806cbaa 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 @@ -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/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs index 1906ce0b2709..2955fbf641e6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -46,7 +46,7 @@ public partial class MixedSubId : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + public string? Id { get; set; } /// /// Gets or Sets additional properties 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..aabfa2cb3032 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 @@ -48,13 +48,13 @@ 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 /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class { get; set; } + public string? Class { get; set; } /// /// Gets or Sets additional properties @@ -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/ModelClient.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs index 690894994947..d29bc1c83458 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ModelClient.cs @@ -46,7 +46,7 @@ public partial class ModelClient : IEquatable, IValidatableObject /// Gets or Sets VarClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string VarClient { get; set; } + public string? VarClient { get; set; } /// /// Gets or Sets additional properties 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..24f6da7f12f7 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. @@ -76,13 +76,13 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Property /// [DataMember(Name = "property", EmitDefaultValue = false)] - public string Property { get; set; } + public string? Property { get; set; } /// /// 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/NullableClass.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs index c8fda56e4303..abd9d32c2b26 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/NullableClass.cs @@ -86,7 +86,7 @@ public partial class NullableClass : IEquatable, IValidatableObje /// Gets or Sets StringProp /// [DataMember(Name = "string_prop", EmitDefaultValue = true)] - public string StringProp { get; set; } + public string? StringProp { get; set; } /// /// Gets or Sets DateProp 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..ee2c09f6c83e 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 @@ -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..43c34a011993 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 @@ -52,21 +52,21 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "uuid", EmitDefaultValue = false)] - public string Uuid { get; set; } + public string? Uuid { get; set; } /// /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef /// [DataMember(Name = "deprecatedRef", EmitDefaultValue = false)] [Obsolete] - public DeprecatedObject DeprecatedRef { get; set; } + public DeprecatedObject? DeprecatedRef { get; set; } /// /// Gets or Sets Bars @@ -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 cc1ac17c1835..d3ac14c40d3a 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 @@ -89,19 +89,19 @@ 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 @@ -110,7 +110,7 @@ public enum StatusEnum 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 @@ -181,9 +181,18 @@ 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(); 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..0141d3d587b4 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 @@ -50,19 +50,19 @@ 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 /// [DataMember(Name = "my_string", EmitDefaultValue = false)] - public string MyString { get; set; } + public string? MyString { get; set; } /// /// 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 e036d66bc889..95a72ecc587e 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 @@ -107,13 +107,13 @@ 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 /// [DataMember(Name = "category", EmitDefaultValue = false)] - public Category Category { get; set; } + public Category? Category { get; set; } /// /// Gets or Sets Name @@ -199,7 +199,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/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 46ed3b3948c0..be5591e483a4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -46,7 +46,7 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObje /// Gets or Sets Bar /// [DataMember(Name = "bar", EmitDefaultValue = false)] - public string Bar { get; private set; } + public string? Bar { get; private set; } /// /// Returns false as Bar should not be serialized given that it's read-only. @@ -60,7 +60,7 @@ public bool ShouldSerializeBar() /// Gets or Sets Baz /// [DataMember(Name = "baz", EmitDefaultValue = false)] - public string Baz { get; set; } + public string? Baz { get; set; } /// /// Gets or Sets additional properties 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 76ce29ff67e1..5e4cc386daf5 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 @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -466,18 +467,6 @@ public enum NotrequiredNotnullableEnumStringEnum /// [DataMember(Name = "required_notnullable_outerEnumDefaultValue", IsRequired = true, EmitDefaultValue = true)] public OuterEnumDefaultValue RequiredNotnullableOuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue - /// - [DataMember(Name = "notrequired_nullable_outerEnumDefaultValue", EmitDefaultValue = true)] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue - /// - [DataMember(Name = "notrequired_notnullable_outerEnumDefaultValue", EmitDefaultValue = false)] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get; set; } /// /// Initializes a new instance of the class. /// @@ -649,7 +638,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 @@ -667,13 +656,13 @@ protected RequiredClass() /// Gets or Sets NotrequiredNullableStringProp /// [DataMember(Name = "notrequired_nullable_string_prop", EmitDefaultValue = true)] - public string NotrequiredNullableStringProp { get; set; } + public string? NotrequiredNullableStringProp { get; set; } /// /// Gets or Sets NotrequiredNotnullableStringProp /// [DataMember(Name = "notrequired_notnullable_string_prop", EmitDefaultValue = false)] - public string NotrequiredNotnullableStringProp { get; set; } + public string? NotrequiredNotnullableStringProp { get; set; } /// /// Gets or Sets RequiredNullableBooleanProp @@ -697,7 +686,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 @@ -721,7 +710,7 @@ protected RequiredClass() /// Gets or Sets NotRequiredNotnullableDateProp /// [DataMember(Name = "not_required_notnullable_date_prop", EmitDefaultValue = false)] - public DateOnly NotRequiredNotnullableDateProp { get; set; } + public DateOnly? NotRequiredNotnullableDateProp { get; set; } /// /// Gets or Sets RequiredNotnullableDatetimeProp @@ -745,7 +734,19 @@ 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 NotrequiredNullableOuterEnumDefaultValue + /// + [DataMember(Name = "notrequired_nullable_outerEnumDefaultValue", EmitDefaultValue = true)] + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get; set; } + + /// + /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue + /// + [DataMember(Name = "notrequired_notnullable_outerEnumDefaultValue", EmitDefaultValue = false)] + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get; set; } /// /// Gets or Sets RequiredNullableUuid @@ -781,7 +782,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 @@ -917,7 +918,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(); @@ -943,7 +947,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(); @@ -990,8 +997,14 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.NotrequiredNotnullableEnumString.GetHashCode(); hashCode = (hashCode * 59) + this.RequiredNullableOuterEnumDefaultValue.GetHashCode(); hashCode = (hashCode * 59) + this.RequiredNotnullableOuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.NotrequiredNullableOuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.NotrequiredNotnullableOuterEnumDefaultValue.GetHashCode(); + if (this.NotrequiredNullableOuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNullableOuterEnumDefaultValue.GetHashCode(); + } + if (this.NotrequiredNotnullableOuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableOuterEnumDefaultValue.GetHashCode(); + } if (this.RequiredNullableUuid != null) { hashCode = (hashCode * 59) + this.RequiredNullableUuid.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..ac44065ab1b0 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 @@ -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..ce546ac21674 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 @@ -48,13 +48,13 @@ 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 /// [DataMember(Name = "role", EmitDefaultValue = false)] - public RolesReportsHashRole Role { get; set; } + public RolesReportsHashRole? Role { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ef21c6091f38..328b8e00dd8d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -46,7 +46,7 @@ public partial class RolesReportsHashRole : IEquatable, IV /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Gets or Sets additional properties 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..a0576690b446 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 @@ -48,13 +48,13 @@ 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 /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string VarSpecialModelName { get; set; } + public string? VarSpecialModelName { get; set; } /// /// Gets or Sets additional properties @@ -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..e0aaa0f4a2a8 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 @@ -48,13 +48,13 @@ 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 /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Gets or Sets additional properties @@ -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/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f7782b6fd5a7..47d4e4135144 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -46,7 +46,7 @@ public partial class TestCollectionEndingWithWordList : IEquatable [DataMember(Name = "value", EmitDefaultValue = false)] - public string Value { get; set; } + public string? Value { get; set; } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 457b88ac9c74..d43a9a31babb 100644 --- a/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/EnumMappings/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -46,7 +46,7 @@ public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable< /// Gets or Sets SomeProperty /// [DataMember(Name = "someProperty", EmitDefaultValue = false)] - public string SomeProperty { get; set; } + public string? SomeProperty { get; set; } /// /// Gets or Sets additional properties 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..b0c865a28ecf 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 @@ -68,78 +68,78 @@ 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 /// [DataMember(Name = "username", EmitDefaultValue = false)] - public string Username { get; set; } + public string? Username { get; set; } /// /// Gets or Sets FirstName /// [DataMember(Name = "firstName", EmitDefaultValue = false)] - public string FirstName { get; set; } + public string? FirstName { get; set; } /// /// Gets or Sets LastName /// [DataMember(Name = "lastName", EmitDefaultValue = false)] - public string LastName { get; set; } + public string? LastName { get; set; } /// /// Gets or Sets Email /// [DataMember(Name = "email", EmitDefaultValue = false)] - public string Email { get; set; } + public string? Email { get; set; } /// /// Gets or Sets Password /// [DataMember(Name = "password", EmitDefaultValue = false)] - public string Password { get; set; } + public string? Password { get; set; } /// /// Gets or Sets Phone /// [DataMember(Name = "phone", EmitDefaultValue = false)] - public string Phone { get; set; } + public string? Phone { get; set; } /// /// User Status /// /// 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. /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [DataMember(Name = "objectWithNoDeclaredProps", EmitDefaultValue = false)] - public Object ObjectWithNoDeclaredProps { get; set; } + public Object? ObjectWithNoDeclaredProps { get; set; } /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [DataMember(Name = "objectWithNoDeclaredPropsNullable", EmitDefaultValue = true)] - public Object ObjectWithNoDeclaredPropsNullable { get; set; } + public Object? ObjectWithNoDeclaredPropsNullable { get; set; } /// /// 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. See https://github.com/OAI/OpenAPI-Specification/issues/1389 [DataMember(Name = "anyTypeProp", EmitDefaultValue = true)] - public Object AnyTypeProp { get; set; } + public Object? AnyTypeProp { get; set; } /// /// 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. /// /// 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. [DataMember(Name = "anyTypePropNullable", EmitDefaultValue = true)] - public Object AnyTypePropNullable { get; set; } + public Object? AnyTypePropNullable { get; set; } /// /// Gets or Sets additional properties @@ -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..d242dc782d15 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 @@ -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/ActivityOutputElementRepresentation.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ActivityOutputElementRepresentation.md index 21f226b39525..7f37e8a701aa 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ActivityOutputElementRepresentation.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ActivityOutputElementRepresentation.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Prop1** | **string** | | [optional] -**Prop2** | **Object** | | [optional] +**Prop1** | **string?** | | [optional] +**Prop2** | **Object?** | | [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/AdditionalPropertiesClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AdditionalPropertiesClass.md index c40cd0f8accb..e9b9f2256d9f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/AdditionalPropertiesClass.md @@ -6,11 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapProperty** | **Dictionary<string, string>** | | [optional] **MapOfMapProperty** | **Dictionary<string, Dictionary<string, string>>** | | [optional] -**Anytype1** | **Object** | | [optional] -**MapWithUndeclaredPropertiesAnytype1** | **Object** | | [optional] -**MapWithUndeclaredPropertiesAnytype2** | **Object** | | [optional] +**Anytype1** | **Object?** | | [optional] +**MapWithUndeclaredPropertiesAnytype1** | **Object?** | | [optional] +**MapWithUndeclaredPropertiesAnytype2** | **Object?** | | [optional] **MapWithUndeclaredPropertiesAnytype3** | **Dictionary<string, Object>** | | [optional] -**EmptyMap** | **Object** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] +**EmptyMap** | **Object?** | an object with no declared properties and no undeclared properties, hence it's an empty map. | [optional] **MapWithUndeclaredPropertiesString** | **Dictionary<string, 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/ApiResponse.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ApiResponse.md index bb723d2baa13..7bae51a82b75 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ApiResponse.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ApiResponse.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Code** | **int** | | [optional] -**Type** | **string** | | [optional] -**Message** | **string** | | [optional] +**Code** | **int?** | | [optional] +**Type** | **string?** | | [optional] +**Message** | **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/Apple.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Apple.md index 6261194e4800..7711490a679b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Apple.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Apple.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **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/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/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/Capitalization.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Capitalization.md index 1b1352d918f4..e9b31d33a641 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Capitalization.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Capitalization.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SmallCamel** | **string** | | [optional] -**CapitalCamel** | **string** | | [optional] -**SmallSnake** | **string** | | [optional] -**CapitalSnake** | **string** | | [optional] -**SCAETHFlowPoints** | **string** | | [optional] -**ATT_NAME** | **string** | Name of the pet | [optional] +**SmallCamel** | **string?** | | [optional] +**CapitalCamel** | **string?** | | [optional] +**SmallSnake** | **string?** | | [optional] +**CapitalSnake** | **string?** | | [optional] +**SCAETHFlowPoints** | **string?** | | [optional] +**ATT_NAME** | **string?** | Name of the pet | [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/ChildCat.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ChildCat.md index 8ce6449e5f22..3d0a819274cf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ChildCat.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ChildCat.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [optional] +**Name** | **string?** | | [optional] **PetType** | **string** | | [default to PetTypeEnum.ChildCat] [[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/ClassModel.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ClassModel.md index f39982657c89..9bd76dc855f8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ClassModel.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ClassModel.md @@ -5,7 +5,7 @@ Model for testing model with \"_class\" property Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Class** | **string** | | [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/DateOnlyClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DateOnlyClass.md index 8291b9cb6d78..e56ad3ae3df7 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DateOnlyClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DateOnlyClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DateOnlyProperty** | **DateOnly** | | [optional] +**DateOnlyProperty** | **DateOnly?** | | [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/DeprecatedObject.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DeprecatedObject.md index bb7824a3d640..3b5eacc8e075 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DeprecatedObject.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/DeprecatedObject.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [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/Dog.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Dog.md index 3aa00144e9aa..721425ea1e13 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Dog.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Dog.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | **Color** | **string** | | [optional] [default to "red"] -**Breed** | **string** | | [optional] +**Breed** | **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/Drawing.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Drawing.md index 6b7122940afa..50b962c62e8f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Drawing.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Drawing.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MainShape** | [**Shape**](Shape.md) | | [optional] -**ShapeOrNull** | [**ShapeOrNull**](ShapeOrNull.md) | | [optional] -**NullableShape** | [**NullableShape**](NullableShape.md) | | [optional] +**MainShape** | [**Shape?**](Shape.md) | | [optional] +**ShapeOrNull** | [**ShapeOrNull?**](ShapeOrNull.md) | | [optional] +**NullableShape** | [**NullableShape?**](NullableShape.md) | | [optional] **Shapes** | [**List<Shape>**](Shape.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/EnumArrays.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumArrays.md index 62e34f03dbc3..1691ef8adb0a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumArrays.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumArrays.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**JustSymbol** | **string** | | [optional] +**JustSymbol** | **string?** | | [optional] **ArrayEnum** | **List<EnumArrays.ArrayEnumEnum>** | | [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/EnumTest.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumTest.md index 5ce3c4addd9b..720f9ae54ace 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/EnumTest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**EnumString** | **string** | | [optional] +**EnumString** | **string?** | | [optional] **EnumStringRequired** | **string** | | -**EnumInteger** | **int** | | [optional] -**EnumIntegerOnly** | **int** | | [optional] -**EnumNumber** | **double** | | [optional] -**OuterEnum** | **OuterEnum** | | [optional] -**OuterEnumInteger** | **OuterEnumInteger** | | [optional] -**OuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] -**OuterEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional] +**EnumInteger** | **int?** | | [optional] +**EnumIntegerOnly** | **int?** | | [optional] +**EnumNumber** | **double?** | | [optional] +**OuterEnum** | [**OuterEnum?**](OuterEnum.md) | | [optional] +**OuterEnumInteger** | [**OuterEnumInteger?**](OuterEnumInteger.md) | | [optional] +**OuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] +**OuterEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue?**](OuterEnumIntegerDefaultValue.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/File.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/File.md index 28959feda088..e67cd955342f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/File.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/File.md @@ -5,7 +5,7 @@ Must be named `File` for test. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SourceURI** | **string** | Test capitalization | [optional] +**SourceURI** | **string?** | Test capitalization | [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/FileSchemaTestClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FileSchemaTestClass.md index 0ce4be56cc72..ccb2d082f662 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FileSchemaTestClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**File** | [**File**](File.md) | | [optional] +**File** | [**File?**](File.md) | | [optional] **Files** | [**List<File>**](File.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/FooGetDefaultResponse.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FooGetDefaultResponse.md index dde9b9729b93..28fc2f659f08 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FooGetDefaultResponse.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FooGetDefaultResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**String** | [**Foo**](Foo.md) | | [optional] +**String** | [**Foo?**](Foo.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/FormatTest.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FormatTest.md index 2fe92b2cac89..4ba8e119c02a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FormatTest.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/FormatTest.md @@ -4,30 +4,30 @@ 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** | **long?** | | [optional] +**Int64Negative** | **long?** | | [optional] +**Int64PositiveExclusive** | **long?** | | [optional] +**Int64NegativeExclusive** | **long?** | | [optional] +**UnsignedInteger** | **uint?** | | [optional] +**Int64** | **long?** | | [optional] +**UnsignedLong** | **ulong?** | | [optional] **Number** | **decimal** | | -**Float** | **float** | | [optional] -**Double** | **double** | | [optional] -**Decimal** | **decimal** | | [optional] -**String** | **string** | | [optional] +**Float** | **float?** | | [optional] +**Double** | **double?** | | [optional] +**Decimal** | **decimal?** | | [optional] +**String** | **string?** | | [optional] **Byte** | **byte[]** | | -**Binary** | **System.IO.Stream** | | [optional] +**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] -**PatternWithBackslash** | **string** | None | [optional] +**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] +**PatternWithBackslash** | **string?** | None | [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/Fruit.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Fruit.md index 40df92d7c9b1..c446aa06b20b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Fruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Fruit.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Color** | **string** | | [optional] -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**Color** | **string?** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **string?** | | [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..3ef782902939 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/GmFruit.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/GmFruit.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Color** | **string** | | [optional] -**Cultivar** | **string** | | [optional] -**Origin** | **string** | | [optional] -**ColorCode** | **string** | | [optional] -**LengthCm** | **decimal** | | [optional] +**Color** | **string?** | | [optional] +**Cultivar** | **string?** | | [optional] +**Origin** | **string?** | | [optional] +**ColorCode** | **string?** | | [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/HasOnlyReadOnly.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HasOnlyReadOnly.md index 64549c18b0a1..b4d3bd8c6d57 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HasOnlyReadOnly.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Bar** | **string** | | [optional] [readonly] -**Foo** | **string** | | [optional] [readonly] +**Bar** | **string?** | | [optional] [readonly] +**Foo** | **string?** | | [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/HealthCheckResult.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HealthCheckResult.md index f7d1a7eb6886..154fd14dcc7d 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HealthCheckResult.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/HealthCheckResult.md @@ -5,7 +5,7 @@ Just a string to inform instance is up and running. Make it nullable in hope to Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**NullableMessage** | **string** | | [optional] +**NullableMessage** | **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/List.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/List.md index c00ef31e6e25..65dd7bf072a2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/List.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/List.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Var123List** | **string** | | [optional] +**Var123List** | **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/Mammal.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Mammal.md index aab8f4db9c75..e82462c4bbaa 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Mammal.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Mammal.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HasBaleen** | **bool** | | [optional] -**HasTeeth** | **bool** | | [optional] +**HasBaleen** | **bool?** | | [optional] +**HasTeeth** | **bool?** | | [optional] **ClassName** | **string** | | -**Type** | **string** | | [optional] +**Type** | **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/MixLog.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixLog.md index 1872e30daaa3..2bd04a68fda4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixLog.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixLog.md @@ -7,35 +7,35 @@ Name | Type | Description | Notes **Id** | **Guid** | | **Description** | **string** | | **MixDate** | **DateTime** | | -**ShopId** | **Guid** | | [optional] +**ShopId** | **Guid?** | | [optional] **TotalPrice** | **float?** | | [optional] **TotalRecalculations** | **int** | | **TotalOverPoors** | **int** | | **TotalSkips** | **int** | | **TotalUnderPours** | **int** | | **FormulaVersionDate** | **DateTime** | | -**SomeCode** | **string** | SomeCode is only required for color mixes | [optional] -**BatchNumber** | **string** | | [optional] -**BrandCode** | **string** | BrandCode is only required for non-color mixes | [optional] -**BrandId** | **string** | BrandId is only required for color mixes | [optional] -**BrandName** | **string** | BrandName is only required for color mixes | [optional] -**CategoryCode** | **string** | CategoryCode is not used anymore | [optional] -**Color** | **string** | Color is only required for color mixes | [optional] -**ColorDescription** | **string** | | [optional] -**Comment** | **string** | | [optional] -**CommercialProductCode** | **string** | | [optional] -**ProductLineCode** | **string** | ProductLineCode is only required for color mixes | [optional] -**Country** | **string** | | [optional] -**CreatedBy** | **string** | | [optional] -**CreatedByFirstName** | **string** | | [optional] -**CreatedByLastName** | **string** | | [optional] -**DeltaECalculationRepaired** | **string** | | [optional] -**DeltaECalculationSprayout** | **string** | | [optional] +**SomeCode** | **string?** | SomeCode is only required for color mixes | [optional] +**BatchNumber** | **string?** | | [optional] +**BrandCode** | **string?** | BrandCode is only required for non-color mixes | [optional] +**BrandId** | **string?** | BrandId is only required for color mixes | [optional] +**BrandName** | **string?** | BrandName is only required for color mixes | [optional] +**CategoryCode** | **string?** | CategoryCode is not used anymore | [optional] +**Color** | **string?** | Color is only required for color mixes | [optional] +**ColorDescription** | **string?** | | [optional] +**Comment** | **string?** | | [optional] +**CommercialProductCode** | **string?** | | [optional] +**ProductLineCode** | **string?** | ProductLineCode is only required for color mixes | [optional] +**Country** | **string?** | | [optional] +**CreatedBy** | **string?** | | [optional] +**CreatedByFirstName** | **string?** | | [optional] +**CreatedByLastName** | **string?** | | [optional] +**DeltaECalculationRepaired** | **string?** | | [optional] +**DeltaECalculationSprayout** | **string?** | | [optional] **OwnColorVariantNumber** | **int?** | | [optional] -**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] +**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] [[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/MixedAnyOf.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOf.md index 6a6aa093bebe..1cee08f2a5dc 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOf.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOf.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Content** | [**MixedAnyOfContent**](MixedAnyOfContent.md) | | [optional] +**Content** | [**MixedAnyOfContent?**](MixedAnyOfContent.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/MixedAnyOfContent.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOfContent.md index 9af972f3219f..deb8047505e8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOfContent.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedAnyOfContent.md @@ -5,7 +5,7 @@ Mixed anyOf types for testing Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **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/MixedOneOf.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOf.md index dc9650a8e3a0..0c5625d3f74c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOf.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOf.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Content** | [**MixedOneOfContent**](MixedOneOfContent.md) | | [optional] +**Content** | [**MixedOneOfContent?**](MixedOneOfContent.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/MixedOneOfContent.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOfContent.md index 8468f9024f73..4629cf446150 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOfContent.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedOneOfContent.md @@ -5,7 +5,7 @@ Mixed oneOf types for testing Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **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/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/MixedSubId.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedSubId.md index b9268e37cba6..c5989c5922d9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedSubId.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/MixedSubId.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Id** | **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/Model200Response.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Model200Response.md index 31f4d86fe43d..c719083851e4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Model200Response.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Model200Response.md @@ -5,8 +5,8 @@ Model for testing model name starting with number Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **int** | | [optional] -**Class** | **string** | | [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/ModelClient.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ModelClient.md index 1d8afe3e1a7a..d525ccdaa521 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ModelClient.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ModelClient.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarClient** | **string** | | [optional] +**VarClient** | **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..a89e8d24d4a7 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] -**Property** | **string** | | [optional] -**Var123Number** | **int** | | [optional] [readonly] +**SnakeCase** | **int?** | | [optional] [readonly] +**Property** | **string?** | | [optional] +**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/NullableClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NullableClass.md index 2d238d6a80cb..64578b092a03 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NullableClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/NullableClass.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **IntegerProp** | **int?** | | [optional] **NumberProp** | **decimal?** | | [optional] **BooleanProp** | **bool?** | | [optional] -**StringProp** | **string** | | [optional] +**StringProp** | **string?** | | [optional] **DateProp** | **DateOnly?** | | [optional] **DatetimeProp** | **DateTime?** | | [optional] **ArrayNullableProp** | **List<Object>** | | [optional] 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..a36d8ca84a70 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ObjectWithDeprecatedFields.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ObjectWithDeprecatedFields.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Uuid** | **string** | | [optional] -**Id** | **decimal** | | [optional] -**DeprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] +**Uuid** | **string?** | | [optional] +**Id** | **decimal?** | | [optional] +**DeprecatedRef** | [**DeprecatedObject?**](DeprecatedObject.md) | | [optional] **Bars** | **List<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/Order.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Order.md index 66c55c3b4737..72f9aefc4239 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Order.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Order.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] -**ShipDate** | **DateTime** | | [optional] -**Status** | **string** | Order Status | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] +**ShipDate** | **DateTime?** | | [optional] +**Status** | **string?** | Order Status | [optional] **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..e1a61b97a536 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] -**MyString** | **string** | | [optional] -**MyBoolean** | **bool** | | [optional] +**MyNumber** | **decimal?** | | [optional] +**MyString** | **string?** | | [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..503652fad78f 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Pet.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Pet.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Category** | [**Category**](Category.md) | | [optional] +**Id** | **long?** | | [optional] +**Category** | [**Category?**](Category.md) | | [optional] **Name** | **string** | | **PhotoUrls** | **List<string>** | | **Tags** | [**List<Tag>**](Tag.md) | | [optional] -**Status** | **string** | pet status in the store | [optional] +**Status** | **string?** | pet status in the store | [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/ReadOnlyFirst.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ReadOnlyFirst.md index b3f4a17ea34e..c3d41e7f8f46 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ReadOnlyFirst.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Bar** | **string** | | [optional] [readonly] -**Baz** | **string** | | [optional] +**Bar** | **string?** | | [optional] [readonly] +**Baz** | **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/RequiredClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RequiredClass.md index 7f734db8a618..2c00b36dce18 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RequiredClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RequiredClass.md @@ -7,43 +7,43 @@ Name | Type | Description | Notes **RequiredNullableIntegerProp** | **int?** | | **RequiredNotnullableintegerProp** | **int** | | **NotRequiredNullableIntegerProp** | **int?** | | [optional] -**NotRequiredNotnullableintegerProp** | **int** | | [optional] +**NotRequiredNotnullableintegerProp** | **int?** | | [optional] **RequiredNullableStringProp** | **string** | | **RequiredNotnullableStringProp** | **string** | | -**NotrequiredNullableStringProp** | **string** | | [optional] -**NotrequiredNotnullableStringProp** | **string** | | [optional] +**NotrequiredNullableStringProp** | **string?** | | [optional] +**NotrequiredNotnullableStringProp** | **string?** | | [optional] **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateOnly?** | | **RequiredNotNullableDateProp** | **DateOnly** | | **NotRequiredNullableDateProp** | **DateOnly?** | | [optional] -**NotRequiredNotnullableDateProp** | **DateOnly** | | [optional] +**NotRequiredNotnullableDateProp** | **DateOnly?** | | [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] -**NotrequiredNotnullableEnumString** | **string** | | [optional] +**NotrequiredNullableEnumString** | **string?** | | [optional] +**NotrequiredNotnullableEnumString** | **string?** | | [optional] **RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | **RequiredNotnullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | -**NotrequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] -**NotrequiredNotnullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] +**NotrequiredNullableOuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] +**NotrequiredNotnullableOuterEnumDefaultValue** | [**OuterEnumDefaultValue?**](OuterEnumDefaultValue.md) | | [optional] **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..3cc33993a8da 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Return.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Return.md @@ -5,10 +5,10 @@ Model for testing reserved words Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VarReturn** | **int** | | [optional] +**VarReturn** | **int?** | | [optional] **Lock** | **string** | | **Abstract** | **string** | | -**Unsafe** | **string** | | [optional] +**Unsafe** | **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/RolesReportsHash.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHash.md index 309b0c02615c..e73788a32fb3 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHash.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHash.md @@ -5,8 +5,8 @@ Role report Hash Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**RoleUuid** | **Guid** | | [optional] -**Role** | [**RolesReportsHashRole**](RolesReportsHashRole.md) | | [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/RolesReportsHashRole.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHashRole.md index 6f9affc24032..8b9da914ec6c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHashRole.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/RolesReportsHashRole.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | | [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/SpecialModelName.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/SpecialModelName.md index 7f8ffca34fa1..50b87d981d57 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/SpecialModelName.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/SpecialModelName.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SpecialPropertyName** | **long** | | [optional] -**VarSpecialModelName** | **string** | | [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/Tag.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Tag.md index fdd22eb31fdd..1f6ddf2cdbe5 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Tag.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Tag.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**Name** | **string** | | [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/TestCollectionEndingWithWordList.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestCollectionEndingWithWordList.md index 0e5568637b89..3e90bb8a3d6c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestCollectionEndingWithWordList.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestCollectionEndingWithWordList.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Value** | **string** | | [optional] +**Value** | **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/TestInlineFreeformAdditionalPropertiesRequest.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md index c1cf9ce2f812..a2ebd09f076b 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/TestInlineFreeformAdditionalPropertiesRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SomeProperty** | **string** | | [optional] +**SomeProperty** | **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..38d3987d7fc6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/User.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/User.md @@ -4,18 +4,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**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] -**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] -**AnyTypePropNullable** | **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. The 'nullable' attribute does not change the allowed values. | [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] +**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] +**AnyTypePropNullable** | **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. The 'nullable' attribute does not change the allowed values. | [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/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/docs/Zebra.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Zebra.md index 31e686adf0e7..4b4313ba5038 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Zebra.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/Zebra.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | **string** | | [optional] +**Type** | **string?** | | [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/docs/ZeroBasedEnumClass.md b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ZeroBasedEnumClass.md index b804bc0d7fb4..46002998b553 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ZeroBasedEnumClass.md +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/docs/ZeroBasedEnumClass.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ZeroBasedEnum** | **string** | | [optional] +**ZeroBasedEnum** | **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/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 61656615b137..397d4376436a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -47,13 +47,13 @@ public partial class ActivityOutputElementRepresentation : IEquatable [DataMember(Name = "prop1", EmitDefaultValue = false)] - public string Prop1 { get; set; } + public string? Prop1 { get; set; } /// /// Gets or Sets Prop2 /// [DataMember(Name = "prop2", EmitDefaultValue = false)] - public Object Prop2 { get; set; } + public Object? Prop2 { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 6f73dd2a107e..f824825b4bee 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -71,19 +71,19 @@ public partial class AdditionalPropertiesClass : IEquatable [DataMember(Name = "anytype_1", EmitDefaultValue = true)] - public Object Anytype1 { get; set; } + public Object? Anytype1 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype1 /// [DataMember(Name = "map_with_undeclared_properties_anytype_1", EmitDefaultValue = false)] - public Object MapWithUndeclaredPropertiesAnytype1 { get; set; } + public Object? MapWithUndeclaredPropertiesAnytype1 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype2 /// [DataMember(Name = "map_with_undeclared_properties_anytype_2", EmitDefaultValue = false)] - public Object MapWithUndeclaredPropertiesAnytype2 { get; set; } + public Object? MapWithUndeclaredPropertiesAnytype2 { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesAnytype3 @@ -96,7 +96,7 @@ public partial class AdditionalPropertiesClass : IEquatable /// an object with no declared properties and no undeclared properties, hence it's an empty map. [DataMember(Name = "empty_map", EmitDefaultValue = false)] - public Object EmptyMap { get; set; } + public Object? EmptyMap { get; set; } /// /// Gets or Sets MapWithUndeclaredPropertiesString 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..9e8e675b975d 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 @@ -49,19 +49,19 @@ 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 /// [DataMember(Name = "type", EmitDefaultValue = false)] - public string Type { get; set; } + public string? Type { get; set; } /// /// Gets or Sets Message /// [DataMember(Name = "message", EmitDefaultValue = false)] - public string Message { get; set; } + public string? Message { get; set; } /// /// Returns the string presentation of the object @@ -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/Apple.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 5d0bdb98c302..35e26453f627 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -49,19 +49,19 @@ public partial class Apple : IEquatable, IValidatableObject /// Gets or Sets Cultivar /// [DataMember(Name = "cultivar", EmitDefaultValue = false)] - public string Cultivar { get; set; } + public string? Cultivar { get; set; } /// /// Gets or Sets Origin /// [DataMember(Name = "origin", EmitDefaultValue = false)] - public string Origin { get; set; } + public string? Origin { get; set; } /// /// Gets or Sets ColorCode /// [DataMember(Name = "color_code", EmitDefaultValue = false)] - public string ColorCode { get; set; } + public string? ColorCode { get; set; } /// /// Returns the string presentation of the object @@ -140,7 +140,7 @@ public override int GetHashCode() IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { if (this.Cultivar != null) { - // Cultivar (string) pattern + // Cultivar (string?) pattern Regex regexCultivar = new Regex(@"^[a-zA-Z\s]*$", RegexOptions.CultureInvariant); if (!regexCultivar.Match(this.Cultivar).Success) { @@ -149,7 +149,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.Origin != null) { - // Origin (string) pattern + // Origin (string?) pattern Regex regexOrigin = new Regex(@"^[A-Z\s]*$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexOrigin.Match(this.Origin).Success) { @@ -158,7 +158,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.ColorCode != null) { - // ColorCode (string) pattern + // ColorCode (string?) pattern Regex regexColorCode = new Regex(@"^#(([0-9a-fA-F]{2}){3}|([0-9a-fA-F]){3})$", RegexOptions.CultureInvariant); if (!regexColorCode.Match(this.ColorCode).Success) { 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..67d2eecc4c26 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 @@ -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/Banana.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index dffda1bedc28..745a0aa11bfe 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 @@ -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..551074881d17 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 @@ -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/Capitalization.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 78a9791fcd6f..47cedcae2caf 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -55,38 +55,38 @@ public partial class Capitalization : IEquatable, IValidatableOb /// Gets or Sets SmallCamel /// [DataMember(Name = "smallCamel", EmitDefaultValue = false)] - public string SmallCamel { get; set; } + public string? SmallCamel { get; set; } /// /// Gets or Sets CapitalCamel /// [DataMember(Name = "CapitalCamel", EmitDefaultValue = false)] - public string CapitalCamel { get; set; } + public string? CapitalCamel { get; set; } /// /// Gets or Sets SmallSnake /// [DataMember(Name = "small_Snake", EmitDefaultValue = false)] - public string SmallSnake { get; set; } + public string? SmallSnake { get; set; } /// /// Gets or Sets CapitalSnake /// [DataMember(Name = "Capital_Snake", EmitDefaultValue = false)] - public string CapitalSnake { get; set; } + public string? CapitalSnake { get; set; } /// /// Gets or Sets SCAETHFlowPoints /// [DataMember(Name = "SCA_ETH_Flow_Points", EmitDefaultValue = false)] - public string SCAETHFlowPoints { get; set; } + public string? SCAETHFlowPoints { get; set; } /// /// Name of the pet /// /// Name of the pet [DataMember(Name = "ATT_NAME", EmitDefaultValue = false)] - public string ATT_NAME { get; set; } + public string? ATT_NAME { get; set; } /// /// Returns the string presentation of the object 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 c3e81b768d43..990318fbae14 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 @@ -53,7 +53,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 @@ -107,7 +107,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..6a0063088076 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 @@ -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/ChildCat.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 92f35a336bad..a4ee7666678c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -72,7 +72,7 @@ protected ChildCat() { } /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index f8060109b1a7..d3a21750afc9 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -45,7 +45,7 @@ public partial class ClassModel : IEquatable, IValidatableObject /// Gets or Sets Class /// [DataMember(Name = "_class", EmitDefaultValue = false)] - public string Class { get; set; } + public string? Class { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index f66839f5b4f0..4772c8172603 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -48,7 +48,7 @@ public partial class DateOnlyClass : IEquatable, IValidatableObje Fri Jul 21 00:00:00 UTC 2017 */ [DataMember(Name = "dateOnlyProperty", EmitDefaultValue = false)] - public DateOnly DateOnlyProperty { get; set; } + public DateOnly? DateOnlyProperty { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index a852e8c459a1..fd8e7e4f4e36 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -45,7 +45,7 @@ public partial class DeprecatedObject : IEquatable, IValidatab /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 343a162cbf1c..092edfae0c51 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -53,7 +53,7 @@ protected Dog() { } /// Gets or Sets Breed /// [DataMember(Name = "breed", EmitDefaultValue = false)] - public string Breed { get; set; } + public string? Breed { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 98c683539e6f..03ade818aa1a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -52,19 +52,19 @@ public partial class Drawing : IEquatable, IValidatableObject /// Gets or Sets MainShape /// [DataMember(Name = "mainShape", EmitDefaultValue = false)] - public Shape MainShape { get; set; } + public Shape? MainShape { get; set; } /// /// Gets or Sets ShapeOrNull /// [DataMember(Name = "shapeOrNull", EmitDefaultValue = true)] - public ShapeOrNull ShapeOrNull { get; set; } + public ShapeOrNull? ShapeOrNull { get; set; } /// /// Gets or Sets NullableShape /// [DataMember(Name = "nullableShape", EmitDefaultValue = true)] - public NullableShape NullableShape { get; set; } + public NullableShape? NullableShape { get; set; } /// /// Gets or Sets Shapes 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..35cdb452cada 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 { /// @@ -223,30 +224,6 @@ public enum EnumNumberEnum /// [DataMember(Name = "enum_number", EmitDefaultValue = false)] public EnumNumberEnum? EnumNumber { get; set; } - - /// - /// Gets or Sets OuterEnum - /// - [DataMember(Name = "outerEnum", EmitDefaultValue = true)] - public OuterEnum? OuterEnum { get; set; } - - /// - /// Gets or Sets OuterEnumInteger - /// - [DataMember(Name = "outerEnumInteger", EmitDefaultValue = false)] - public OuterEnumInteger? OuterEnumInteger { get; set; } - - /// - /// Gets or Sets OuterEnumDefaultValue - /// - [DataMember(Name = "outerEnumDefaultValue", EmitDefaultValue = false)] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets OuterEnumIntegerDefaultValue - /// - [DataMember(Name = "outerEnumIntegerDefaultValue", EmitDefaultValue = false)] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get; set; } /// /// Initializes a new instance of the class. /// @@ -277,6 +254,30 @@ protected EnumTest() { } this.OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue; } + /// + /// Gets or Sets OuterEnum + /// + [DataMember(Name = "outerEnum", EmitDefaultValue = true)] + public OuterEnum? OuterEnum { get; set; } + + /// + /// Gets or Sets OuterEnumInteger + /// + [DataMember(Name = "outerEnumInteger", EmitDefaultValue = false)] + public OuterEnumInteger? OuterEnumInteger { get; set; } + + /// + /// Gets or Sets OuterEnumDefaultValue + /// + [DataMember(Name = "outerEnumDefaultValue", EmitDefaultValue = false)] + public OuterEnumDefaultValue? OuterEnumDefaultValue { get; set; } + + /// + /// Gets or Sets OuterEnumIntegerDefaultValue + /// + [DataMember(Name = "outerEnumIntegerDefaultValue", EmitDefaultValue = false)] + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get; set; } + /// /// Returns the string presentation of the object /// @@ -341,10 +342,22 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.EnumInteger.GetHashCode(); hashCode = (hashCode * 59) + this.EnumIntegerOnly.GetHashCode(); hashCode = (hashCode * 59) + this.EnumNumber.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnum.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumInteger.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.OuterEnumIntegerDefaultValue.GetHashCode(); + if (this.OuterEnum != null) + { + hashCode = (hashCode * 59) + this.OuterEnum.GetHashCode(); + } + if (this.OuterEnumInteger != null) + { + hashCode = (hashCode * 59) + this.OuterEnumInteger.GetHashCode(); + } + if (this.OuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.OuterEnumDefaultValue.GetHashCode(); + } + if (this.OuterEnumIntegerDefaultValue != null) + { + hashCode = (hashCode * 59) + this.OuterEnumIntegerDefaultValue.GetHashCode(); + } return hashCode; } } diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs index 328601f24b6c..60d2e560ccd4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -46,7 +46,7 @@ public partial class File : IEquatable, IValidatableObject /// /// Test capitalization [DataMember(Name = "sourceURI", EmitDefaultValue = false)] - public string SourceURI { get; set; } + public string? SourceURI { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d3f9f7cba774..334dddf0eba0 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -47,7 +47,7 @@ public partial class FileSchemaTestClass : IEquatable, IVal /// Gets or Sets File /// [DataMember(Name = "file", EmitDefaultValue = false)] - public File File { get; set; } + public File? File { get; set; } /// /// Gets or Sets Files diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 3069deb125e7..2375775c3239 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -45,7 +45,7 @@ public partial class FooGetDefaultResponse : IEquatable, /// Gets or Sets String /// [DataMember(Name = "string", EmitDefaultValue = false)] - public Foo String { get; set; } + public Foo? String { get; set; } /// /// Returns the string presentation of the object 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 fc3472412e57..cc3161e4a329 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 @@ -106,61 +106,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 long? Int64Positive { get; set; } /// /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative { get; set; } + public long? Int64Negative { get; set; } /// /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive { get; set; } + public long? Int64PositiveExclusive { get; set; } /// /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive { get; set; } + public long? 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 @@ -172,25 +172,25 @@ 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 /// [DataMember(Name = "string", EmitDefaultValue = false)] - public string String { get; set; } + public string? String { get; set; } /// /// Gets or Sets Byte @@ -202,7 +202,7 @@ protected FormatTest() { } /// Gets or Sets Binary /// [DataMember(Name = "binary", EmitDefaultValue = false)] - public System.IO.Stream Binary { get; set; } + public System.IO.Stream? Binary { get; set; } /// /// Gets or Sets Date @@ -220,7 +220,7 @@ 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 @@ -229,7 +229,7 @@ protected FormatTest() { } 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [DataMember(Name = "uuid", EmitDefaultValue = false)] - public Guid Uuid { get; set; } + public Guid? Uuid { get; set; } /// /// Gets or Sets Password @@ -242,21 +242,21 @@ protected FormatTest() { } /// /// A string that is a 10 digit number. Can have leading zeros. [DataMember(Name = "pattern_with_digits", EmitDefaultValue = false)] - public string PatternWithDigits { get; set; } + public string? PatternWithDigits { get; set; } /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [DataMember(Name = "pattern_with_digits_and_delimiter", EmitDefaultValue = false)] - public string PatternWithDigitsAndDelimiter { get; set; } + public string? PatternWithDigitsAndDelimiter { get; set; } /// /// None /// /// None [DataMember(Name = "pattern_with_backslash", EmitDefaultValue = false)] - public string PatternWithBackslash { get; set; } + public string? PatternWithBackslash { get; set; } /// /// Returns the string presentation of the object @@ -332,20 +332,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(); @@ -397,74 +436,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 (long?) minimum + if (this.Int64Positive < (long?)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 (long?) maximum + if (this.Int64Negative > (long?)-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 (long?) minimum + if (this.Int64PositiveExclusive < (long?)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 (long?) maximum + if (this.Int64NegativeExclusive <= (long?)-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" }); } @@ -481,32 +520,32 @@ 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" }); } if (this.String != null) { - // String (string) pattern + // String (string?) pattern Regex regexString = new Regex(@"[a-z]", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexString.Match(this.String).Success) { @@ -527,7 +566,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithDigits != null) { - // PatternWithDigits (string) pattern + // PatternWithDigits (string?) pattern Regex regexPatternWithDigits = new Regex(@"^\d{10}$", RegexOptions.CultureInvariant); if (!regexPatternWithDigits.Match(this.PatternWithDigits).Success) { @@ -536,7 +575,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithDigitsAndDelimiter != null) { - // PatternWithDigitsAndDelimiter (string) pattern + // PatternWithDigitsAndDelimiter (string?) pattern Regex regexPatternWithDigitsAndDelimiter = new Regex(@"^image_\d{1,3}$", RegexOptions.CultureInvariant | RegexOptions.IgnoreCase); if (!regexPatternWithDigitsAndDelimiter.Match(this.PatternWithDigitsAndDelimiter).Success) { @@ -545,7 +584,7 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali } if (this.PatternWithBackslash != null) { - // PatternWithBackslash (string) pattern + // PatternWithBackslash (string?) pattern Regex regexPatternWithBackslash = new Regex(@"^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$", RegexOptions.CultureInvariant); if (!regexPatternWithBackslash.Match(this.PatternWithBackslash).Success) { diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 712d33733e8d..8bb9ed3e69a4 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -44,7 +44,7 @@ public HasOnlyReadOnly() /// Gets or Sets Bar /// [DataMember(Name = "bar", EmitDefaultValue = false)] - public string Bar { get; private set; } + public string? Bar { get; private set; } /// /// Returns false as Bar should not be serialized given that it's read-only. @@ -58,7 +58,7 @@ public bool ShouldSerializeBar() /// Gets or Sets Foo /// [DataMember(Name = "foo", EmitDefaultValue = false)] - public string Foo { get; private set; } + public string? Foo { get; private set; } /// /// Returns false as Foo should not be serialized given that it's read-only. diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index ec05e7c4c85a..c372186ee856 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -45,7 +45,7 @@ public partial class HealthCheckResult : IEquatable, IValidat /// Gets or Sets NullableMessage /// [DataMember(Name = "NullableMessage", EmitDefaultValue = true)] - public string NullableMessage { get; set; } + public string? NullableMessage { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs index 67e6c5a616a1..1ed3afd2a3dc 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -45,7 +45,7 @@ public partial class List : IEquatable, IValidatableObject /// Gets or Sets Var123List /// [DataMember(Name = "123-list", EmitDefaultValue = false)] - public string Var123List { get; set; } + public string? Var123List { 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..75bb377db76c 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 @@ -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 @@ -178,109 +178,109 @@ protected MixLog() { } /// /// SomeCode is only required for color mixes [DataMember(Name = "someCode", EmitDefaultValue = true)] - public string SomeCode { get; set; } + public string? SomeCode { get; set; } /// /// Gets or Sets BatchNumber /// [DataMember(Name = "batchNumber", EmitDefaultValue = false)] - public string BatchNumber { get; set; } + public string? BatchNumber { get; set; } /// /// BrandCode is only required for non-color mixes /// /// BrandCode is only required for non-color mixes [DataMember(Name = "brandCode", EmitDefaultValue = false)] - public string BrandCode { get; set; } + public string? BrandCode { get; set; } /// /// BrandId is only required for color mixes /// /// BrandId is only required for color mixes [DataMember(Name = "brandId", EmitDefaultValue = false)] - public string BrandId { get; set; } + public string? BrandId { get; set; } /// /// BrandName is only required for color mixes /// /// BrandName is only required for color mixes [DataMember(Name = "brandName", EmitDefaultValue = false)] - public string BrandName { get; set; } + public string? BrandName { get; set; } /// /// CategoryCode is not used anymore /// /// CategoryCode is not used anymore [DataMember(Name = "categoryCode", EmitDefaultValue = false)] - public string CategoryCode { get; set; } + public string? CategoryCode { get; set; } /// /// Color is only required for color mixes /// /// Color is only required for color mixes [DataMember(Name = "color", EmitDefaultValue = false)] - public string Color { get; set; } + public string? Color { get; set; } /// /// Gets or Sets ColorDescription /// [DataMember(Name = "colorDescription", EmitDefaultValue = false)] - public string ColorDescription { get; set; } + public string? ColorDescription { get; set; } /// /// Gets or Sets Comment /// [DataMember(Name = "comment", EmitDefaultValue = false)] - public string Comment { get; set; } + public string? Comment { get; set; } /// /// Gets or Sets CommercialProductCode /// [DataMember(Name = "commercialProductCode", EmitDefaultValue = false)] - public string CommercialProductCode { get; set; } + public string? CommercialProductCode { get; set; } /// /// ProductLineCode is only required for color mixes /// /// ProductLineCode is only required for color mixes [DataMember(Name = "productLineCode", EmitDefaultValue = false)] - public string ProductLineCode { get; set; } + public string? ProductLineCode { get; set; } /// /// Gets or Sets Country /// [DataMember(Name = "country", EmitDefaultValue = false)] - public string Country { get; set; } + public string? Country { get; set; } /// /// Gets or Sets CreatedBy /// [DataMember(Name = "createdBy", EmitDefaultValue = false)] - public string CreatedBy { get; set; } + public string? CreatedBy { get; set; } /// /// Gets or Sets CreatedByFirstName /// [DataMember(Name = "createdByFirstName", EmitDefaultValue = false)] - public string CreatedByFirstName { get; set; } + public string? CreatedByFirstName { get; set; } /// /// Gets or Sets CreatedByLastName /// [DataMember(Name = "createdByLastName", EmitDefaultValue = false)] - public string CreatedByLastName { get; set; } + public string? CreatedByLastName { get; set; } /// /// Gets or Sets DeltaECalculationRepaired /// [DataMember(Name = "deltaECalculationRepaired", EmitDefaultValue = false)] - public string DeltaECalculationRepaired { get; set; } + public string? DeltaECalculationRepaired { get; set; } /// /// Gets or Sets DeltaECalculationSprayout /// [DataMember(Name = "deltaECalculationSprayout", EmitDefaultValue = false)] - public string DeltaECalculationSprayout { get; set; } + public string? DeltaECalculationSprayout { get; set; } /// /// Gets or Sets OwnColorVariantNumber @@ -292,27 +292,27 @@ protected MixLog() { } /// Gets or Sets PrimerProductId /// [DataMember(Name = "primerProductId", EmitDefaultValue = false)] - public string PrimerProductId { get; set; } + public string? PrimerProductId { get; set; } /// /// ProductId is only required for color mixes /// /// ProductId is only required for color mixes [DataMember(Name = "productId", EmitDefaultValue = false)] - public string ProductId { get; set; } + public string? ProductId { get; set; } /// /// ProductName is only required for color mixes /// /// ProductName is only required for color mixes [DataMember(Name = "productName", EmitDefaultValue = false)] - public string ProductName { get; set; } + public string? ProductName { get; set; } /// /// 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/MixedAnyOf.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 9d7d88aea93f..450587d1b527 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -45,7 +45,7 @@ public partial class MixedAnyOf : IEquatable, IValidatableObject /// Gets or Sets Content /// [DataMember(Name = "content", EmitDefaultValue = false)] - public MixedAnyOfContent Content { get; set; } + public MixedAnyOfContent? Content { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2cb289fae178..7c519987740a 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -45,7 +45,7 @@ public partial class MixedOneOf : IEquatable, IValidatableObject /// Gets or Sets Content /// [DataMember(Name = "content", EmitDefaultValue = false)] - public MixedOneOfContent Content { get; set; } + public MixedOneOfContent? Content { get; set; } /// /// Returns the string presentation of the object 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..c3b6808b3250 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 @@ -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/MixedSubId.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index c56e0ada331a..52d85bc18ce2 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -45,7 +45,7 @@ public partial class MixedSubId : IEquatable, IValidatableObject /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + public string? Id { get; set; } /// /// Returns the string presentation of the object 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..ab1774f2687c 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 @@ -47,13 +47,13 @@ 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 /// [DataMember(Name = "class", EmitDefaultValue = false)] - public string Class { get; set; } + public string? Class { get; set; } /// /// Returns the string presentation of the object @@ -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/ModelClient.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 7b75059cad1b..efbba684091c 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -45,7 +45,7 @@ public partial class ModelClient : IEquatable, IValidatableObject /// Gets or Sets VarClient /// [DataMember(Name = "client", EmitDefaultValue = false)] - public string VarClient { get; set; } + public string? VarClient { get; set; } /// /// Returns the string presentation of the object 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..48f636977b2a 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. @@ -72,13 +72,13 @@ public bool ShouldSerializeSnakeCase() /// Gets or Sets Property /// [DataMember(Name = "property", EmitDefaultValue = false)] - public string Property { get; set; } + public string? Property { get; set; } /// /// 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/NullableClass.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index c8fda56e4303..abd9d32c2b26 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -86,7 +86,7 @@ public partial class NullableClass : IEquatable, IValidatableObje /// Gets or Sets StringProp /// [DataMember(Name = "string_prop", EmitDefaultValue = true)] - public string StringProp { get; set; } + public string? StringProp { get; set; } /// /// Gets or Sets DateProp 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..9a21c0ebc1c2 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 @@ -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..56bfa30f0236 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 @@ -51,21 +51,21 @@ public partial class ObjectWithDeprecatedFields : IEquatable [DataMember(Name = "uuid", EmitDefaultValue = false)] - public string Uuid { get; set; } + public string? Uuid { get; set; } /// /// Gets or Sets Id /// [DataMember(Name = "id", EmitDefaultValue = false)] [Obsolete] - public decimal Id { get; set; } + public decimal? Id { get; set; } /// /// Gets or Sets DeprecatedRef /// [DataMember(Name = "deprecatedRef", EmitDefaultValue = false)] [Obsolete] - public DeprecatedObject DeprecatedRef { get; set; } + public DeprecatedObject? DeprecatedRef { get; set; } /// /// Gets or Sets Bars @@ -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 54e252b2feb2..7593aa13c6c4 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 @@ -88,19 +88,19 @@ 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 @@ -109,7 +109,7 @@ public enum StatusEnum 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 @@ -173,9 +173,18 @@ 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(); 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..2fa00f4465f5 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 @@ -49,19 +49,19 @@ 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 /// [DataMember(Name = "my_string", EmitDefaultValue = false)] - public string MyString { get; set; } + public string? MyString { get; set; } /// /// 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 51b091ba5106..e4623d43b040 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 @@ -103,13 +103,13 @@ 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 /// [DataMember(Name = "category", EmitDefaultValue = false)] - public Category Category { get; set; } + public Category? Category { get; set; } /// /// Gets or Sets Name @@ -188,7 +188,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/ReadOnlyFirst.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 7551b621ebd8..c7f14fff4eb6 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -45,7 +45,7 @@ public partial class ReadOnlyFirst : IEquatable, IValidatableObje /// Gets or Sets Bar /// [DataMember(Name = "bar", EmitDefaultValue = false)] - public string Bar { get; private set; } + public string? Bar { get; private set; } /// /// Returns false as Bar should not be serialized given that it's read-only. @@ -59,7 +59,7 @@ public bool ShouldSerializeBar() /// Gets or Sets Baz /// [DataMember(Name = "baz", EmitDefaultValue = false)] - public string Baz { get; set; } + public string? Baz { get; set; } /// /// Returns the string presentation of the object 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 ea386b3a0c54..1df1019694a8 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 @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -466,18 +467,6 @@ public enum NotrequiredNotnullableEnumStringEnum /// [DataMember(Name = "required_notnullable_outerEnumDefaultValue", IsRequired = true, EmitDefaultValue = true)] public OuterEnumDefaultValue RequiredNotnullableOuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue - /// - [DataMember(Name = "notrequired_nullable_outerEnumDefaultValue", EmitDefaultValue = true)] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get; set; } - - /// - /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue - /// - [DataMember(Name = "notrequired_notnullable_outerEnumDefaultValue", EmitDefaultValue = false)] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get; set; } /// /// Initializes a new instance of the class. /// @@ -645,7 +634,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 @@ -663,13 +652,13 @@ protected RequiredClass() { } /// Gets or Sets NotrequiredNullableStringProp /// [DataMember(Name = "notrequired_nullable_string_prop", EmitDefaultValue = true)] - public string NotrequiredNullableStringProp { get; set; } + public string? NotrequiredNullableStringProp { get; set; } /// /// Gets or Sets NotrequiredNotnullableStringProp /// [DataMember(Name = "notrequired_notnullable_string_prop", EmitDefaultValue = false)] - public string NotrequiredNotnullableStringProp { get; set; } + public string? NotrequiredNotnullableStringProp { get; set; } /// /// Gets or Sets RequiredNullableBooleanProp @@ -693,7 +682,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 @@ -717,7 +706,7 @@ protected RequiredClass() { } /// Gets or Sets NotRequiredNotnullableDateProp /// [DataMember(Name = "not_required_notnullable_date_prop", EmitDefaultValue = false)] - public DateOnly NotRequiredNotnullableDateProp { get; set; } + public DateOnly? NotRequiredNotnullableDateProp { get; set; } /// /// Gets or Sets RequiredNotnullableDatetimeProp @@ -741,7 +730,19 @@ 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 NotrequiredNullableOuterEnumDefaultValue + /// + [DataMember(Name = "notrequired_nullable_outerEnumDefaultValue", EmitDefaultValue = true)] + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get; set; } + + /// + /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue + /// + [DataMember(Name = "notrequired_notnullable_outerEnumDefaultValue", EmitDefaultValue = false)] + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { 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 @@ -906,7 +907,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(); @@ -932,7 +936,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(); @@ -979,8 +986,14 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.NotrequiredNotnullableEnumString.GetHashCode(); hashCode = (hashCode * 59) + this.RequiredNullableOuterEnumDefaultValue.GetHashCode(); hashCode = (hashCode * 59) + this.RequiredNotnullableOuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.NotrequiredNullableOuterEnumDefaultValue.GetHashCode(); - hashCode = (hashCode * 59) + this.NotrequiredNotnullableOuterEnumDefaultValue.GetHashCode(); + if (this.NotrequiredNullableOuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNullableOuterEnumDefaultValue.GetHashCode(); + } + if (this.NotrequiredNotnullableOuterEnumDefaultValue != null) + { + hashCode = (hashCode * 59) + this.NotrequiredNotnullableOuterEnumDefaultValue.GetHashCode(); + } if (this.RequiredNullableUuid != null) { hashCode = (hashCode * 59) + this.RequiredNullableUuid.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..e1b01834583b 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 @@ -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 @@ -84,7 +84,7 @@ protected Return() { } /// Gets or Sets Unsafe /// [DataMember(Name = "unsafe", EmitDefaultValue = false)] - public string Unsafe { get; set; } + public string? Unsafe { get; set; } /// /// Returns the string presentation of the object @@ -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..be7f1fa1b744 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 @@ -47,13 +47,13 @@ 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 /// [DataMember(Name = "role", EmitDefaultValue = false)] - public RolesReportsHashRole Role { get; set; } + public RolesReportsHashRole? Role { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 60e2f9e50c07..77378b9fd5e8 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -45,7 +45,7 @@ public partial class RolesReportsHashRole : IEquatable, IV /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object 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..84d34b5a1f61 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 @@ -47,13 +47,13 @@ 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 /// [DataMember(Name = "_special_model.name_", EmitDefaultValue = false)] - public string VarSpecialModelName { get; set; } + public string? VarSpecialModelName { get; set; } /// /// Returns the string presentation of the object @@ -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..51da73d95177 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 @@ -47,13 +47,13 @@ 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 /// [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + public string? Name { get; set; } /// /// Returns the string presentation of the object @@ -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/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index bb23b1f52456..37845f87df11 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -45,7 +45,7 @@ public partial class TestCollectionEndingWithWordList : IEquatable [DataMember(Name = "value", EmitDefaultValue = false)] - public string Value { get; set; } + public string? Value { get; set; } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 457b88ac9c74..d43a9a31babb 100644 --- a/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/restsharp/net7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -46,7 +46,7 @@ public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable< /// Gets or Sets SomeProperty /// [DataMember(Name = "someProperty", EmitDefaultValue = false)] - public string SomeProperty { get; set; } + public string? SomeProperty { get; set; } /// /// Gets or Sets additional properties 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..20816334774c 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 @@ -67,78 +67,78 @@ 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 /// [DataMember(Name = "username", EmitDefaultValue = false)] - public string Username { get; set; } + public string? Username { get; set; } /// /// Gets or Sets FirstName /// [DataMember(Name = "firstName", EmitDefaultValue = false)] - public string FirstName { get; set; } + public string? FirstName { get; set; } /// /// Gets or Sets LastName /// [DataMember(Name = "lastName", EmitDefaultValue = false)] - public string LastName { get; set; } + public string? LastName { get; set; } /// /// Gets or Sets Email /// [DataMember(Name = "email", EmitDefaultValue = false)] - public string Email { get; set; } + public string? Email { get; set; } /// /// Gets or Sets Password /// [DataMember(Name = "password", EmitDefaultValue = false)] - public string Password { get; set; } + public string? Password { get; set; } /// /// Gets or Sets Phone /// [DataMember(Name = "phone", EmitDefaultValue = false)] - public string Phone { get; set; } + public string? Phone { get; set; } /// /// User Status /// /// 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. /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [DataMember(Name = "objectWithNoDeclaredProps", EmitDefaultValue = false)] - public Object ObjectWithNoDeclaredProps { get; set; } + public Object? ObjectWithNoDeclaredProps { get; set; } /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [DataMember(Name = "objectWithNoDeclaredPropsNullable", EmitDefaultValue = true)] - public Object ObjectWithNoDeclaredPropsNullable { get; set; } + public Object? ObjectWithNoDeclaredPropsNullable { get; set; } /// /// 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. See https://github.com/OAI/OpenAPI-Specification/issues/1389 [DataMember(Name = "anyTypeProp", EmitDefaultValue = true)] - public Object AnyTypeProp { get; set; } + public Object? AnyTypeProp { get; set; } /// /// 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. /// /// 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. [DataMember(Name = "anyTypePropNullable", EmitDefaultValue = true)] - public Object AnyTypePropNullable { get; set; } + public Object? AnyTypePropNullable { get; set; } /// /// Returns the string presentation of the object @@ -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..a13202366aaf 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 @@ -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..31e8171b2c0a 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 @@ -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/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/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/FormatTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/FormatTest.md index 1b12163e9a6a..e7ae81c3c760 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,20 +4,20 @@ 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** | **long?** | | [optional] +**Int64Negative** | **long?** | | [optional] +**Int64PositiveExclusive** | **long?** | | [optional] +**Int64NegativeExclusive** | **long?** | | [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] 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/MixLog.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/MixLog.md index 1872e30daaa3..ae8546abe127 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 @@ -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/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..c5d9f28ccc02 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,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] 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/RequiredClass.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/RequiredClass.md index 07b6f018f6c1..2ec1d6949ba0 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,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **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] 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/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/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/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/ApiResponse.cs index 440c5810db56..b050cc9b33cb 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 @@ -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..68b909a78e76 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 @@ -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/Banana.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Banana.cs index cc328cf2d95e..c4ea98f514e2 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 @@ -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..70176d97cec2 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 @@ -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 83b09df72770..3eafddf2de01 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 @@ -61,7 +61,7 @@ protected Cat() /// Gets or Sets Declawed /// [DataMember(Name = "declawed", EmitDefaultValue = true)] - public bool Declawed + public bool? Declawed { get{ return _Declawed;} set @@ -70,7 +70,7 @@ public bool Declawed _flagDeclawed = true; } } - private bool _Declawed; + private bool? _Declawed; private bool _flagDeclawed; /// @@ -140,7 +140,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..b3556ea03c12 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 @@ -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/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 4c576118fb1e..e0d2506035dd 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 @@ -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 long? Int64Positive { get{ return _Int64Positive;} set @@ -271,7 +271,7 @@ public long Int64Positive _flagInt64Positive = true; } } - private long _Int64Positive; + private long? _Int64Positive; private bool _flagInt64Positive; /// @@ -286,7 +286,7 @@ public bool ShouldSerializeInt64Positive() /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative + public long? Int64Negative { get{ return _Int64Negative;} set @@ -295,7 +295,7 @@ public long Int64Negative _flagInt64Negative = true; } } - private long _Int64Negative; + private long? _Int64Negative; private bool _flagInt64Negative; /// @@ -310,7 +310,7 @@ public bool ShouldSerializeInt64Negative() /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive + public long? Int64PositiveExclusive { get{ return _Int64PositiveExclusive;} set @@ -319,7 +319,7 @@ public long Int64PositiveExclusive _flagInt64PositiveExclusive = true; } } - private long _Int64PositiveExclusive; + private long? _Int64PositiveExclusive; private bool _flagInt64PositiveExclusive; /// @@ -334,7 +334,7 @@ public bool ShouldSerializeInt64PositiveExclusive() /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive + public long? Int64NegativeExclusive { get{ return _Int64NegativeExclusive;} set @@ -343,7 +343,7 @@ public long Int64NegativeExclusive _flagInt64NegativeExclusive = true; } } - private long _Int64NegativeExclusive; + private long? _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; /// @@ -856,20 +856,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(); @@ -925,74 +964,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 (long?) minimum + if (this.Int64Positive < (long?)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 (long?) maximum + if (this.Int64Negative > (long?)-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 (long?) minimum + if (this.Int64PositiveExclusive < (long?)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 (long?) maximum + if (this.Int64NegativeExclusive <= (long?)-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" }); } @@ -1009,26 +1048,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/MixLog.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/MixLog.cs index a698b135146d..036c272e5b4a 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 @@ -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/Model200Response.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/Model200Response.cs index 48815cd97300..985c3967fc40 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 @@ -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..fb075870f97f 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 @@ -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..994af2787c2c 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 @@ -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 df74883777de..270ad31505fc 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 @@ -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; /// @@ -310,9 +310,18 @@ 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(); 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..543a719c5ada 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 @@ -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 70938b71f8d8..218daeefe1d2 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 @@ -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; /// @@ -325,7 +325,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/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/RequiredClass.cs index 2bad0ac611df..9ec97321ee50 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 @@ -331,6 +331,7 @@ public bool ShouldSerializeNotrequiredNullableEnumIntegerOnly() /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -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; /// @@ -1833,7 +1834,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(); @@ -1859,7 +1863,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..2597e57dfa8d 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 @@ -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/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/src/Org.OpenAPITools/Model/SpecialModelName.cs index 0a0faf3cba34..54cc8a7f3477 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 @@ -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..a34e233c31bf 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 @@ -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..1c5264b6ca30 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 @@ -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..8c83619d77ce 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 @@ -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/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/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/FormatTest.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/FormatTest.md index c2144b5e3cf6..9b6d809466c8 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,15 +4,15 @@ 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] 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/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..c5d9f28ccc02 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,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] 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/RequiredClass.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/RequiredClass.md index 07b6f018f6c1..2ec1d6949ba0 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,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **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] 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/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/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/Model/ApiResponse.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index e55d523aad1f..51772309eda8 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 @@ -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..67d2eecc4c26 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 @@ -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/Banana.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 04d69550656d..64b9c31778d1 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 @@ -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..551074881d17 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 @@ -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 a52dd988da51..fc431e7b777d 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 @@ -57,7 +57,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 @@ -118,7 +118,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..6feda1e8c352 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 @@ -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/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 a741277dd273..a62831e60781 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 @@ -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 @@ -299,15 +299,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(); @@ -363,38 +387,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" }); } @@ -411,26 +435,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/Model200Response.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index a023e3c3e754..7b1c87bbe7da 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 @@ -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..ee2c09f6c83e 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 @@ -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..6c728b477087 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 @@ -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 4b8b7068fe04..818eb45eb7ec 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 @@ -89,19 +89,19 @@ 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 @@ -181,9 +181,18 @@ 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(); 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..2470c13fdb60 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 @@ -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 e036d66bc889..37b02216fb02 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 @@ -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 @@ -199,7 +199,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/RequiredClass.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 8160c859b76e..2ead3095aaa1 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 @@ -191,6 +191,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -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 @@ -921,7 +922,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(); @@ -947,7 +951,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..ac44065ab1b0 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 @@ -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/SpecialModelName.cs b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 33320b76cf1f..d31817992fe2 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 @@ -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..b8f4e20ed848 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 @@ -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..3371b44e43c1 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 @@ -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..d242dc782d15 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 @@ -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/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/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/FormatTest.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/FormatTest.md index 1b12163e9a6a..e7ae81c3c760 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,20 +4,20 @@ 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** | **long?** | | [optional] +**Int64Negative** | **long?** | | [optional] +**Int64PositiveExclusive** | **long?** | | [optional] +**Int64NegativeExclusive** | **long?** | | [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] 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/MixLog.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/MixLog.md index 1872e30daaa3..ae8546abe127 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 @@ -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/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..c5d9f28ccc02 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,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **long** | | [optional] -**PetId** | **long** | | [optional] -**Quantity** | **int** | | [optional] +**Id** | **long?** | | [optional] +**PetId** | **long?** | | [optional] +**Quantity** | **int?** | | [optional] **ShipDate** | **DateTime** | | [optional] **Status** | **string** | Order Status | [optional] **Complete** | **bool** | | [optional] [default to false] 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/RequiredClass.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/RequiredClass.md index 07b6f018f6c1..2ec1d6949ba0 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,7 +15,7 @@ Name | Type | Description | Notes **RequiredNullableBooleanProp** | **bool?** | | **RequiredNotnullableBooleanProp** | **bool** | | **NotrequiredNullableBooleanProp** | **bool?** | | [optional] -**NotrequiredNotnullableBooleanProp** | **bool** | | [optional] +**NotrequiredNotnullableBooleanProp** | **bool?** | | [optional] **RequiredNullableDateProp** | **DateTime?** | | **RequiredNotNullableDateProp** | **DateTime** | | **NotRequiredNullableDateProp** | **DateTime?** | | [optional] @@ -27,11 +27,11 @@ Name | Type | Description | Notes **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] 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/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/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/Model/ApiResponse.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 4d83d2d347b5..03816c3e9c90 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 @@ -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..7b354a6e7062 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 @@ -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/Banana.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index b31a453f9e87..b27848069b78 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 @@ -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..4b1e84cd621f 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 @@ -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..ebd438c4d902 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 @@ -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..697a7a594171 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 @@ -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/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 5a287cd71827..2e12f312fbb4 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 @@ -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 long? Int64Positive { get; set; } /// /// Gets or Sets Int64Negative /// [DataMember(Name = "int64Negative", EmitDefaultValue = false)] - public long Int64Negative { get; set; } + public long? Int64Negative { get; set; } /// /// Gets or Sets Int64PositiveExclusive /// [DataMember(Name = "int64PositiveExclusive", EmitDefaultValue = false)] - public long Int64PositiveExclusive { get; set; } + public long? Int64PositiveExclusive { get; set; } /// /// Gets or Sets Int64NegativeExclusive /// [DataMember(Name = "int64NegativeExclusive", EmitDefaultValue = false)] - public long Int64NegativeExclusive { get; set; } + public long? 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 @@ -326,43 +326,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 || @@ -370,15 +380,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 || @@ -441,20 +454,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/MixLog.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixLog.cs index dfc02b8315c4..e80c086e2f5c 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 @@ -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/Model200Response.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 5ebae913605a..eff25e70c2d2 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 @@ -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..2377352391cc 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 @@ -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..e899cec7584d 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 @@ -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 24a19990a2e9..8b0410416dd6 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 @@ -86,19 +86,19 @@ 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 @@ -166,15 +166,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 || @@ -200,9 +203,18 @@ 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(); 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..3a5d939ab2e5 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 @@ -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 18a5bfabe2b9..6d9bcce593f6 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 @@ -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 @@ -181,7 +181,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 || @@ -220,7 +221,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/RequiredClass.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 5c3f9047a911..653410e527ee 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 @@ -189,6 +189,7 @@ public enum NotrequiredNullableEnumIntegerOnlyEnum /// /// Defines NotrequiredNotnullableEnumIntegerOnly /// + [JsonConverter(typeof(StringEnumConverter))] public enum NotrequiredNotnullableEnumIntegerOnlyEnum { /// @@ -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 @@ -908,7 +909,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 || @@ -946,7 +948,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 || @@ -1116,7 +1119,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(); @@ -1142,7 +1148,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..582bce46fc08 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 @@ -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/SpecialModelName.cs b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 4a637be16619..53497817a8d1 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 @@ -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..10a95ca329ab 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 @@ -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..6fbf2f28d114 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 @@ -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..3f7f7e00a2b7 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 @@ -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();