From 99c84789e503fa060c91c91b0ff0ebcc7cc6a2ac Mon Sep 17 00:00:00 2001 From: devhl Date: Tue, 24 Mar 2026 23:25:24 -0400 Subject: [PATCH] address comment --- .../generichost/modelGeneric.mustache | 2 +- .../Model/HelloWorldPostRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/IconsDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/TestObject.cs | 2 +- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 2 +- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 4 +- .../src/Org.OpenAPITools/Model/Person.cs | 4 +- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Orange.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../Model/NowGet200Response.cs | 4 +- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 2 +- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 4 +- .../src/Org.OpenAPITools/Model/Person.cs | 4 +- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Orange.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../Model/NowGet200Response.cs | 4 +- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 2 +- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 4 +- .../src/Org.OpenAPITools/Model/Person.cs | 4 +- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Orange.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../Model/NowGet200Response.cs | 4 +- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 2 +- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 4 +- .../src/Org.OpenAPITools/Model/Person.cs | 4 +- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Orange.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../Model/NowGet200Response.cs | 4 +- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 2 +- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 4 +- .../src/Org.OpenAPITools/Model/Person.cs | 4 +- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Orange.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- .../Model/NowGet200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 16 +++---- .../src/Org.OpenAPITools/Model/Animal.cs | 2 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +-- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +-- .../src/Org.OpenAPITools/Model/AppleReq.cs | 2 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +-- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 2 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 ++--- .../src/Org.OpenAPITools/Model/Cat.cs | 2 +- .../src/Org.OpenAPITools/Model/Category.cs | 2 +- .../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 | 8 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 46 +++++++++---------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/HealthCheckResult.cs | 2 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 ++-- .../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 | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 6 +-- .../Org.OpenAPITools/Model/NullableClass.cs | 24 +++++----- .../Model/NullableGuidClass.cs | 2 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 ++-- .../src/Org.OpenAPITools/Model/Order.cs | 10 ++-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +-- .../src/Org.OpenAPITools/Model/Pet.cs | 6 +-- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 28 +++++------ .../src/Org.OpenAPITools/Model/Result.cs | 6 +-- .../src/Org.OpenAPITools/Model/Return.cs | 4 +- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 24 +++++----- .../src/Org.OpenAPITools/Model/Whale.cs | 4 +- 1129 files changed, 3031 insertions(+), 3031 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache index 4c2ab6929162..da018d3c7bf2 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache @@ -240,7 +240,7 @@ {{#deprecated}} [Obsolete] {{/deprecated}} - public {{{datatypeWithEnum}}}{{#lambda.first}}{{#isNullable}}{{>NullConditionalProperty}} {{/isNullable}}{{^required}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{/required}}{{/lambda.first}} {{name}} {{#required}}{ get; {{^isReadOnly}}set; {{/isReadOnly}}}{{/required}}{{^required}}{ get { return this.{{name}}Option; } {{^isReadOnly}}set { this.{{name}}Option = new{{^net70OrLater}} Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}>{{/net70OrLater}}(value); } {{/isReadOnly}}}{{/required}} + public {{{datatypeWithEnum}}}{{#lambda.first}}{{#isNullable}}{{>NullConditionalProperty}} {{/isNullable}}{{^required}}{{nrt?}}{{^nrt}}{{#vendorExtensions.x-is-value-type}}?{{/vendorExtensions.x-is-value-type}}{{/nrt}} {{/required}}{{/lambda.first}} {{name}} {{#required}}{ get; {{^isReadOnly}}set; {{/isReadOnly}}}{{/required}}{{^required}}{ get { return this.{{name}}Option.Value; } {{^isReadOnly}}set { this.{{name}}Option = new{{^net70OrLater}} Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}>{{/net70OrLater}}(value); } {{/isReadOnly}}}{{/required}} {{/isInherited}} {{/isEnum}} diff --git a/samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Model/HelloWorldPostRequest.cs b/samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Model/HelloWorldPostRequest.cs index 91e619f2390b..b8e0cf86cc1a 100644 --- a/samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Model/HelloWorldPostRequest.cs +++ b/samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Model/HelloWorldPostRequest.cs @@ -54,7 +54,7 @@ public HelloWorldPostRequest(Option message = default) /// Gets or Sets Message /// [JsonPropertyName("message")] - public string? Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string? Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/Foo.cs index ef709bf75ac8..43feb8067f8c 100644 --- a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/Foo.cs @@ -54,7 +54,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string? Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsDefaultResponse.cs b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsDefaultResponse.cs index f3bd541429d4..1a72fd31be03 100644 --- a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsDefaultResponse.cs @@ -54,7 +54,7 @@ public IconsDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/TestObject.cs b/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/TestObject.cs index f6e193cb8ddd..ab314f9b60b2 100644 --- a/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/TestObject.cs +++ b/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/TestObject.cs @@ -54,7 +54,7 @@ public TestObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Adult.cs index e5c016d2627d..a3d002d6a641 100644 --- a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -57,7 +57,7 @@ public Adult(Option?> children = default, Option firstName /// Gets or Sets Children /// [JsonPropertyName("children")] - public List? Children { get { return this.ChildrenOption; } set { this.ChildrenOption = new(value); } } + public List? Children { get { return this.ChildrenOption.Value; } set { this.ChildrenOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Child.cs index 94cfd4f4aa62..59f69018ba73 100644 --- a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -59,7 +59,7 @@ public Child(Option age = default, Option boosterSeat = default, Op /// Gets or Sets Age /// [JsonPropertyName("age")] - public int? Age { get { return this.AgeOption; } set { this.AgeOption = new(value); } } + public int? Age { get { return this.AgeOption.Value; } set { this.AgeOption = new(value); } } /// /// Used to track the state of BoosterSeat @@ -72,7 +72,7 @@ public Child(Option age = default, Option boosterSeat = default, Op /// Gets or Sets BoosterSeat /// [JsonPropertyName("boosterSeat")] - public bool? BoosterSeat { get { return this.BoosterSeatOption; } set { this.BoosterSeatOption = new(value); } } + public bool? BoosterSeat { get { return this.BoosterSeatOption.Value; } set { this.BoosterSeatOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Person.cs index 6da989d4e3a7..d9492d554adc 100644 --- a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -58,7 +58,7 @@ public Person(Option firstName = default, Option lastName = de /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string? FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of LastName @@ -71,7 +71,7 @@ public Person(Option firstName = default, Option lastName = de /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string? LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string? LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..48c25acf6a06 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -55,7 +55,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string? Kind { get { return this.KindOption; } set { this.KindOption = new(value); } } + public string? Kind { get { return this.KindOption.Value; } set { this.KindOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 170ad4b54dac..cbb9288ca436 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -55,7 +55,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 90ae7568d3fc..da640dfcf94b 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -82,7 +82,7 @@ public Fruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 8531edebf731..9bd7762033f4 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -54,7 +54,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string? Kind { get { return this.KindOption; } set { this.KindOption = new(value); } } + public string? Kind { get { return this.KindOption.Value; } set { this.KindOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 93897bf0b56a..0d586d0b1139 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -54,7 +54,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index 8a99245775f6..3d6c67bdb254 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -81,7 +81,7 @@ public Fruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Activity.cs index aabac63ce195..f8fa083b7ad4 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -53,7 +53,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 1da19734a2d3..0b12f4726b49 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 5fa49b8033da..61958ab6c36c 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 5a0b22326df1..75a681a9d1ff 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -61,7 +61,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 78ce72e42861..e4e387cd5b74 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -57,7 +57,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -70,7 +70,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Message /// [JsonPropertyName("message")] - public string Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -83,7 +83,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Type /// [JsonPropertyName("type")] - public string Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..4254f9e7ec10 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -57,7 +57,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -70,7 +70,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -83,7 +83,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index f9d8cb0178a6..6a91a5eb30af 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 6bd3d13aec0c..559b48410c03 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c1fc28e5e87e..5b12bfe3aba2 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 24f40349480e..3c2d6f6454fa 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -57,7 +57,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -70,7 +70,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -83,7 +83,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Banana.cs index e0176c9c103d..c6f348ce52b0 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index dd211ecc28ae..0df184a89485 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -61,7 +61,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..6ea9c87adf9e 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -64,7 +64,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -77,7 +77,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -90,7 +90,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -103,7 +103,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -116,7 +116,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -129,7 +129,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 6b4b1efcac37..212f9d249e7c 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -54,7 +54,7 @@ public Cat(Option color = default, Option declawed = default) : b /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Category.cs index 406cff32fdf5..168034e1f436 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 99c5b315aa00..0dceb943de13 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -61,7 +61,7 @@ public ChildCat(Option name = default) : base() /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..70163597dbf8 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -53,7 +53,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 921b10388991..86961f05e8d2 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -54,7 +54,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..83c6ef134a3e 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -53,7 +53,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Dog.cs index a4879a78dc05..f746e6816595 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -54,7 +54,7 @@ public Dog(Option breed = default, Option color = default) : bas /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index 50db62858883..b6d426437c95 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -59,7 +59,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -72,7 +72,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -85,7 +85,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -98,7 +98,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 7fe4cb3c8afa..ef41971722d9 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -68,7 +68,7 @@ public EnumArrays(Option> arrayEnum = default, Op /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..45b84933c9e4 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -54,7 +54,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 601c8e998661..232f7bc3d1e1 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -55,7 +55,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets File /// [JsonPropertyName("file")] - public File File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -68,7 +68,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets Files /// [JsonPropertyName("files")] - public List Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..28e54b60cfa8 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -53,7 +53,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index db1b090fa3e9..6fad70dc547f 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -53,7 +53,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 847567dd4b69..d9baf612f043 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -138,7 +138,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -152,7 +152,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -165,7 +165,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -178,7 +178,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -191,7 +191,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -204,7 +204,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -217,7 +217,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -230,7 +230,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -243,7 +243,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -256,7 +256,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -269,7 +269,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -282,7 +282,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -295,7 +295,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -308,7 +308,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -321,7 +321,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -335,7 +335,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -349,7 +349,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -363,7 +363,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -376,7 +376,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -389,7 +389,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -402,7 +402,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -415,7 +415,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -429,7 +429,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..f27078b62f5e 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -76,7 +76,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 64b6d880bdc0..a9cef25c1666 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -80,7 +80,7 @@ public GmFruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..64130e7cfbf5 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -55,7 +55,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -68,7 +68,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string Foo { get { return this.FooOption; } } + public string Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..86b87fe73c35 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -53,7 +53,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..8475f90c87f5 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -53,7 +53,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..7cad3e88d131 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -55,7 +55,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -68,7 +68,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index d2f562dc62c7..c8b2968651be 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -59,7 +59,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("direct_map")] - public Dictionary DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -72,7 +72,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("indirect_map")] - public Dictionary IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -85,7 +85,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("map_map_of_string")] - public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -98,7 +98,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("map_of_enum_string")] - public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 88c96f83b3a1..7c144cb702ba 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -53,7 +53,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 6049305ccc01..5226b7994708 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -53,7 +53,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2b9dab1b761b..81cfce490724 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -59,7 +59,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..e954846b86da 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -53,7 +53,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index d74cab9a645c..02b3510ef01b 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -55,7 +55,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Class /// [JsonPropertyName("class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..222a9afecd08 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -53,7 +53,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Name.cs index 1ced7be525f5..a766cb5f5576 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -65,7 +65,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Property /// [JsonPropertyName("property")] - public string Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -78,7 +78,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -91,7 +91,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 47b7b40607a7..dc4d250b4e95 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -75,7 +75,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -88,7 +88,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -101,7 +101,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -114,7 +114,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -127,7 +127,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -140,7 +140,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -153,7 +153,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -166,7 +166,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -179,7 +179,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -192,7 +192,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -205,7 +205,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -218,7 +218,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index bbc9459f436f..e2f90ceafa93 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -54,7 +54,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 55e6045dc21e..f1bb8e875596 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index dc0e8da10833..5967526d3a67 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -74,7 +74,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -88,7 +88,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -101,7 +101,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Order.cs index 4c7bea23ae40..fe71d4c680a8 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -76,7 +76,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -89,7 +89,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -102,7 +102,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -115,7 +115,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -129,7 +129,7 @@ public Order(Option complete = default, Option id = default, Optio /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index abcca493d7d2..f42d3fbb9613 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -57,7 +57,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -70,7 +70,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -83,7 +83,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pet.cs index c505ad177fb4..49adaeb01ff6 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -89,7 +89,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -102,7 +102,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -115,7 +115,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..0b202abf3422 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -55,7 +55,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -68,7 +68,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 76ab94c6f171..4349b036fca6 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -334,7 +334,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -347,7 +347,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -360,7 +360,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -373,7 +373,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -386,7 +386,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -399,7 +399,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -412,7 +412,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -425,7 +425,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -439,7 +439,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -452,7 +452,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -465,7 +465,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -478,7 +478,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -491,7 +491,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -505,7 +505,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..c1b0973340c4 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -58,7 +58,7 @@ public Result(Option code = default, Option> /// /// Result code [JsonPropertyName("code")] - public string Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -72,7 +72,7 @@ public Result(Option code = default, Option> /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -86,7 +86,7 @@ public Result(Option code = default, Option> /// /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Return.cs index fcf8e483d79e..ba0d3c5ab75f 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -84,7 +84,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index b9a4a5f9c95c..b548944c5e94 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -55,7 +55,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -68,7 +68,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..a33665a84ebe 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -53,7 +53,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 25d27479cb9b..b11aa47949e6 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -55,7 +55,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -68,7 +68,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 3ebb619596ee..6a1ef05805ec 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -55,7 +55,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..9db4bc3014cb 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 54cbe89d95af..29ada204f1d0 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..00d15308cdfc 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 512daa77d491..1886c2e51f28 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -71,7 +71,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/User.cs index 62f5b0736d68..3684f6575329 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -76,7 +76,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -90,7 +90,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -103,7 +103,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Email /// [JsonPropertyName("email")] - public string Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -116,7 +116,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -129,7 +129,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -142,7 +142,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -156,7 +156,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -170,7 +170,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -183,7 +183,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Password /// [JsonPropertyName("password")] - public string Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -196,7 +196,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -210,7 +210,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -223,7 +223,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Username /// [JsonPropertyName("username")] - public string Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 012c650e4f1c..0265accbb89f 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -63,7 +63,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -76,7 +76,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs index fd37515f54a2..2c94c8faec8c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs @@ -55,7 +55,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 80ab5ec04b8d..81a3d0546dd1 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -57,7 +57,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string? Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string? Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -70,7 +70,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object? Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object? Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index de2cf7f84849..9c500ae78db5 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -69,7 +69,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object? Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object? Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -83,7 +83,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object? EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object? EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -96,7 +96,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -109,7 +109,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary? MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary? MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -122,7 +122,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -135,7 +135,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -148,7 +148,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -161,7 +161,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs index 1e87e6de2950..59bb784ee63e 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs @@ -63,7 +63,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs index c7fa501c3c5d..bf04c281a0d0 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -59,7 +59,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -72,7 +72,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Message /// [JsonPropertyName("message")] - public string? Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string? Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -85,7 +85,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Type /// [JsonPropertyName("type")] - public string? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs index 601dae95aa1a..ab683a853979 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs @@ -59,7 +59,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string? ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string? ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -72,7 +72,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string? Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string? Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -85,7 +85,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string? Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string? Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs index fdef147cb388..e2b1d231a469 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs @@ -63,7 +63,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index a09872cef811..ae6f902a274d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -55,7 +55,7 @@ public ArrayOfArrayOfNumberOnly(Option>?> arrayArrayNumber = /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c338f29efc9d..d8065f1c3cf0 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -55,7 +55,7 @@ public ArrayOfNumberOnly(Option?> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List? ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List? ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs index 04609b245365..0a7996c4da55 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -59,7 +59,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -72,7 +72,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -85,7 +85,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List? ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List? ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs index cf0ee9cdb1aa..1d8f7156cd1c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs @@ -55,7 +55,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs index 10375771f80b..34b4260440b7 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs @@ -63,7 +63,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs index 133845a991f0..2bb970bbb47b 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs @@ -66,7 +66,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string? ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string? ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -79,7 +79,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string? CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string? CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -92,7 +92,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string? CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string? CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -105,7 +105,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -118,7 +118,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string? SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string? SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -131,7 +131,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string? SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string? SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index 4887c6c7aff7..195cb1cffa1d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -56,7 +56,7 @@ public Cat(Option color = default, Option declawed = default) : /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs index 936d8dc8b225..663e299f6464 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs @@ -57,7 +57,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs index c37ba2ec211e..d6862f0e11c2 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs @@ -108,7 +108,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs index 5a199576ee29..4e9e486f9c1d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs @@ -55,7 +55,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs index d908fed19a3a..f5b19c9aeeaf 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -56,7 +56,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 68e0836b632f..76a1a461efd6 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -55,7 +55,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index 05eb0781cfe7..be8b40afd602 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -56,7 +56,7 @@ public Dog(Option breed = default, Option color = default) : b /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string? Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string? Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs index 1668434a783f..24615731e552 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs @@ -61,7 +61,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape? MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape? MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -74,7 +74,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape? NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape? NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -87,7 +87,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -100,7 +100,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List? Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List? Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs index 10c01b2dcb54..f2e96952c4bb 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -202,7 +202,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List? ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List? ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs index dab2e4e27b36..043d7ed7dff0 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs @@ -56,7 +56,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string? SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string? SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 971a81e9c8c4..b3a5641e3713 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -57,7 +57,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets File /// [JsonPropertyName("file")] - public File? File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File? File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -70,7 +70,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets Files /// [JsonPropertyName("files")] - public List? Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List? Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs index b8128f4c3e45..f8600cfa343c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs @@ -55,7 +55,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string? Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index f4e54444c7ee..831168493dd1 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -55,7 +55,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs index 9e4b3c23fe8a..97ebbbbf2c2e 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs @@ -140,7 +140,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream? Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream? Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -154,7 +154,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -167,7 +167,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -180,7 +180,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -193,7 +193,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -206,7 +206,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -219,7 +219,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -232,7 +232,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -245,7 +245,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -258,7 +258,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -271,7 +271,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -284,7 +284,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -297,7 +297,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -310,7 +310,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -323,7 +323,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -337,7 +337,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string? PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string? PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -351,7 +351,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string? PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string? PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -365,7 +365,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -378,7 +378,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -391,7 +391,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -404,7 +404,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -417,7 +417,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -431,7 +431,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs index eb12679ed27d..e114d8ea5327 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs @@ -78,7 +78,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs index 6bb6bc5757af..6ce7cb107fa6 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs @@ -82,7 +82,7 @@ public GmFruit(Option apple, Option banana, Option col /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 50826dd0da5d..a5336144f259 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -57,7 +57,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -70,7 +70,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string? Foo { get { return this.FooOption; } } + public string? Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 2a3a8e527f6e..b9f783c6a85c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -55,7 +55,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string? NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string? NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs index ddf0d615fd3c..f7820d8e51cc 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs @@ -55,7 +55,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string? Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string? Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 5993dd82adc8..9e3f99b3cf78 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -57,7 +57,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -70,7 +70,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs index 06668cf78934..e9ed8d747187 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs @@ -127,7 +127,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary? DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary? DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -140,7 +140,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary? IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary? IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -153,7 +153,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -166,7 +166,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 266cbf7f9d2e..155a333b986f 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -55,7 +55,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs index 4d5b2c6d94cf..ea36e674c375 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -55,7 +55,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 968a64762901..e9f3292927ae 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -61,7 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -74,7 +74,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary? Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary? Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -87,7 +87,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -100,7 +100,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs index 6b56e6017b15..06784d103f7b 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -55,7 +55,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs index 76bffb1856bc..d1bc6669dcb0 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs @@ -57,7 +57,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Class /// [JsonPropertyName("class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -70,7 +70,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs index 7a982b8104d3..8d9d879df9b7 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs @@ -55,7 +55,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string? VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string? VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs index 100ccfa20e5b..6e4ba4e30373 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs @@ -67,7 +67,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Property /// [JsonPropertyName("property")] - public string? Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string? Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -80,7 +80,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -93,7 +93,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs index db7eaa8f675c..79aa6a44aae1 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs @@ -77,7 +77,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -90,7 +90,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -103,7 +103,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List? ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List? ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -116,7 +116,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -129,7 +129,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -142,7 +142,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -155,7 +155,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -168,7 +168,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -181,7 +181,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -194,7 +194,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -207,7 +207,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -220,7 +220,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string? StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string? StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 47db90bf3525..aa9a9819a76d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -56,7 +56,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs index f7ae912c05e6..ab384678d56d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -55,7 +55,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index fa4f88b3ecdd..c1e19496bc08 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -62,7 +62,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List? Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List? Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -76,7 +76,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -90,7 +90,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -103,7 +103,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs index 9341b50d3a3d..0b238ec05372 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs @@ -160,7 +160,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -173,7 +173,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -186,7 +186,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -199,7 +199,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -213,7 +213,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs index 4428479e0485..a4d7a5c9f36c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -59,7 +59,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -72,7 +72,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -85,7 +85,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string? MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string? MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs index 9692c765c581..984e29267cce 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs @@ -173,7 +173,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category? Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category? Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -186,7 +186,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -199,7 +199,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List? Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List? Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a48fcb21dbef..ba65e52288ec 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -57,7 +57,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -70,7 +70,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string? Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string? Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs index 60530fcdce09..bf412bd89d85 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1414,7 +1414,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1427,7 +1427,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1440,7 +1440,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1453,7 +1453,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1466,7 +1466,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1479,7 +1479,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1492,7 +1492,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1505,7 +1505,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1519,7 +1519,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1532,7 +1532,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1545,7 +1545,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1558,7 +1558,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1571,7 +1571,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1585,7 +1585,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index 6119748b2992..f3a65bdc21f0 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -60,7 +60,7 @@ public Result(Option code = default, Option? /// /// Result code [JsonPropertyName("code")] - public string? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -74,7 +74,7 @@ public Result(Option code = default, Option? /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -88,7 +88,7 @@ public Result(Option code = default, Option? /// /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs index 6276a3a8c8ae..ecd932d453f7 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs @@ -73,7 +73,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -86,7 +86,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string? Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string? Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 245ea1053e5d..058432c820c5 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -57,7 +57,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole? Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole? Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -70,7 +70,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 684ca8e8b515..3ec3abc5fb79 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -55,7 +55,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs index 1fce10cd7823..48bfdcdc3ad1 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -57,7 +57,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -70,7 +70,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs index a6c404c940b8..aa289de3630d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs @@ -57,7 +57,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -70,7 +70,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f1a1940574ee..afd067661121 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -55,7 +55,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string? Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string? Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 5cbf9d28f57e..881276c5e683 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -55,7 +55,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 102413449b18..5144e8e6526c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -55,7 +55,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option somePropert /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string? SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string? SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index bcd2a5f846da..089ddaa533da 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -73,7 +73,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -87,7 +87,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs index d02f765752fd..68ba55e20d32 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs @@ -78,7 +78,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object? AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object? AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -92,7 +92,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -105,7 +105,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Email /// [JsonPropertyName("email")] - public string? Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string? Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -118,7 +118,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string? FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -131,7 +131,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -144,7 +144,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string? LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string? LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -158,7 +158,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -172,7 +172,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -185,7 +185,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Password /// [JsonPropertyName("password")] - public string? Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string? Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -198,7 +198,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string? Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string? Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -212,7 +212,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -225,7 +225,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Username /// [JsonPropertyName("username")] - public string? Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string? Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs index 3d5ad4a7d676..82e7c4ef197c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs @@ -65,7 +65,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -78,7 +78,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..48c25acf6a06 100644 --- a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -55,7 +55,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string? Kind { get { return this.KindOption; } set { this.KindOption = new(value); } } + public string? Kind { get { return this.KindOption.Value; } set { this.KindOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 170ad4b54dac..cbb9288ca436 100644 --- a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -55,7 +55,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index 056f2c03af8d..853b71a29a20 100644 --- a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -95,7 +95,7 @@ public Fruit(Orange orange, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Orange.cs b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Orange.cs index eaa0165ba6c1..26195dc17094 100644 --- a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Orange.cs +++ b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Orange.cs @@ -55,7 +55,7 @@ public Orange(Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Activity.cs index aabac63ce195..f8fa083b7ad4 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -53,7 +53,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 1da19734a2d3..0b12f4726b49 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 5fa49b8033da..61958ab6c36c 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 5a0b22326df1..75a681a9d1ff 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -61,7 +61,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 78ce72e42861..e4e387cd5b74 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -57,7 +57,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -70,7 +70,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Message /// [JsonPropertyName("message")] - public string Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -83,7 +83,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Type /// [JsonPropertyName("type")] - public string Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..4254f9e7ec10 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -57,7 +57,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -70,7 +70,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -83,7 +83,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index f9d8cb0178a6..6a91a5eb30af 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 6bd3d13aec0c..559b48410c03 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c1fc28e5e87e..5b12bfe3aba2 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 24f40349480e..3c2d6f6454fa 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -57,7 +57,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -70,7 +70,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -83,7 +83,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Banana.cs index e0176c9c103d..c6f348ce52b0 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index dd211ecc28ae..0df184a89485 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -61,7 +61,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..6ea9c87adf9e 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -64,7 +64,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -77,7 +77,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -90,7 +90,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -103,7 +103,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -116,7 +116,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -129,7 +129,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 6b4b1efcac37..212f9d249e7c 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -54,7 +54,7 @@ public Cat(Option color = default, Option declawed = default) : b /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Category.cs index 406cff32fdf5..168034e1f436 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index ff5df164f2c9..b96499c365c8 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -106,7 +106,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..70163597dbf8 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -53,7 +53,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 921b10388991..86961f05e8d2 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -54,7 +54,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..83c6ef134a3e 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -53,7 +53,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Dog.cs index a4879a78dc05..f746e6816595 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -54,7 +54,7 @@ public Dog(Option breed = default, Option color = default) : bas /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 50db62858883..b6d426437c95 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -59,7 +59,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -72,7 +72,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -85,7 +85,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -98,7 +98,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 5eda7b332cb7..43b688de6dd5 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -200,7 +200,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..45b84933c9e4 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -54,7 +54,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 601c8e998661..232f7bc3d1e1 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -55,7 +55,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets File /// [JsonPropertyName("file")] - public File File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -68,7 +68,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets Files /// [JsonPropertyName("files")] - public List Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..28e54b60cfa8 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -53,7 +53,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index db1b090fa3e9..6fad70dc547f 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -53,7 +53,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 847567dd4b69..d9baf612f043 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -138,7 +138,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -152,7 +152,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -165,7 +165,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -178,7 +178,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -191,7 +191,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -204,7 +204,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -217,7 +217,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -230,7 +230,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -243,7 +243,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -256,7 +256,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -269,7 +269,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -282,7 +282,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -295,7 +295,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -308,7 +308,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -321,7 +321,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -335,7 +335,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -349,7 +349,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -363,7 +363,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -376,7 +376,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -389,7 +389,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -402,7 +402,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -415,7 +415,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -429,7 +429,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..f27078b62f5e 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -76,7 +76,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 64b6d880bdc0..a9cef25c1666 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -80,7 +80,7 @@ public GmFruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..64130e7cfbf5 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -55,7 +55,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -68,7 +68,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string Foo { get { return this.FooOption; } } + public string Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..86b87fe73c35 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -53,7 +53,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..8475f90c87f5 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -53,7 +53,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..7cad3e88d131 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -55,7 +55,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -68,7 +68,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 796232e12c55..7ba0cf8f07b4 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -125,7 +125,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -138,7 +138,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -151,7 +151,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -164,7 +164,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 88c96f83b3a1..7c144cb702ba 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -53,7 +53,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 6049305ccc01..5226b7994708 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -53,7 +53,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2b9dab1b761b..81cfce490724 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -59,7 +59,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..e954846b86da 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -53,7 +53,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index d74cab9a645c..02b3510ef01b 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -55,7 +55,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Class /// [JsonPropertyName("class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..222a9afecd08 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -53,7 +53,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Name.cs index 1ced7be525f5..a766cb5f5576 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -65,7 +65,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Property /// [JsonPropertyName("property")] - public string Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -78,7 +78,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -91,7 +91,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 47b7b40607a7..dc4d250b4e95 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -75,7 +75,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -88,7 +88,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -101,7 +101,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -114,7 +114,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -127,7 +127,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -140,7 +140,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -153,7 +153,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -166,7 +166,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -179,7 +179,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -192,7 +192,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -205,7 +205,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -218,7 +218,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index bbc9459f436f..e2f90ceafa93 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -54,7 +54,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 55e6045dc21e..f1bb8e875596 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index dc0e8da10833..5967526d3a67 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -74,7 +74,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -88,7 +88,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -101,7 +101,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Order.cs index 7f2e150b71fd..ff740963836d 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -158,7 +158,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -211,7 +211,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index abcca493d7d2..f42d3fbb9613 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -57,7 +57,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -70,7 +70,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -83,7 +83,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 0473a02f1573..8f10916b0d07 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..0b202abf3422 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -55,7 +55,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -68,7 +68,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index c4f7a9534641..15bbd1627186 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1412,7 +1412,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1425,7 +1425,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1438,7 +1438,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1451,7 +1451,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1464,7 +1464,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1477,7 +1477,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1490,7 +1490,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1503,7 +1503,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1517,7 +1517,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1530,7 +1530,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1543,7 +1543,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1556,7 +1556,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1569,7 +1569,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1583,7 +1583,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..c1b0973340c4 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -58,7 +58,7 @@ public Result(Option code = default, Option> /// /// Result code [JsonPropertyName("code")] - public string Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -72,7 +72,7 @@ public Result(Option code = default, Option> /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -86,7 +86,7 @@ public Result(Option code = default, Option> /// /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Return.cs index fcf8e483d79e..ba0d3c5ab75f 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -84,7 +84,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index b9a4a5f9c95c..b548944c5e94 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -55,7 +55,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -68,7 +68,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..a33665a84ebe 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -53,7 +53,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 25d27479cb9b..b11aa47949e6 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -55,7 +55,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -68,7 +68,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 3ebb619596ee..6a1ef05805ec 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -55,7 +55,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..9db4bc3014cb 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 54cbe89d95af..29ada204f1d0 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..00d15308cdfc 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 512daa77d491..1886c2e51f28 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -71,7 +71,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/User.cs index 62f5b0736d68..3684f6575329 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -76,7 +76,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -90,7 +90,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -103,7 +103,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Email /// [JsonPropertyName("email")] - public string Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -116,7 +116,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -129,7 +129,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -142,7 +142,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -156,7 +156,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -170,7 +170,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -183,7 +183,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Password /// [JsonPropertyName("password")] - public string Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -196,7 +196,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -210,7 +210,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -223,7 +223,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Username /// [JsonPropertyName("username")] - public string Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 012c650e4f1c..0265accbb89f 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -63,7 +63,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -76,7 +76,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs index 65645b2e4829..3752eb012f9f 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs @@ -56,7 +56,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 728bbb0c349e..f2ae4a3d59fb 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -58,7 +58,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string? Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string? Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -71,7 +71,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object? Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object? Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 9fa35476f70c..ab4649b23059 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -70,7 +70,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object? Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object? Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -84,7 +84,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object? EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object? EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -97,7 +97,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -110,7 +110,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary? MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary? MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -123,7 +123,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -136,7 +136,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -149,7 +149,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -162,7 +162,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs index 37a0519bbd6b..b5839cf7d89b 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs @@ -64,7 +64,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs index bf92565f9a2e..6f5badb3330e 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -60,7 +60,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -73,7 +73,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Message /// [JsonPropertyName("message")] - public string? Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string? Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -86,7 +86,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Type /// [JsonPropertyName("type")] - public string? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs index 3dab90bbeb36..d8a53b95d62b 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs @@ -60,7 +60,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string? ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string? ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -73,7 +73,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string? Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string? Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -86,7 +86,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string? Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string? Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs index cbb5ea8f0849..7b4424da8467 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs @@ -64,7 +64,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cd3309a5900e..5d163b0e388e 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -56,7 +56,7 @@ public ArrayOfArrayOfNumberOnly(Option>?> arrayArrayNumber = /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 90b6e4a8bd14..5da1266ef8ba 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -56,7 +56,7 @@ public ArrayOfNumberOnly(Option?> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List? ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List? ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs index 6be410aad46e..a6a98de666c1 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -60,7 +60,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -73,7 +73,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -86,7 +86,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List? ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List? ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs index 1352e54c4091..44708f4f1bc6 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs @@ -56,7 +56,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs index 584505890fdc..111f2888f706 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs @@ -64,7 +64,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs index e36a343dc5e2..c48de422dde8 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs @@ -67,7 +67,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string? ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string? ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -80,7 +80,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string? CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string? CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -93,7 +93,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string? CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string? CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -106,7 +106,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -119,7 +119,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string? SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string? SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -132,7 +132,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string? SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string? SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index 00b32d995aa3..fefffc9c52a1 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -57,7 +57,7 @@ public Cat(Option color = default, Option declawed = default) : /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs index 0369f8f37e97..1ab1ee8ace9b 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs @@ -58,7 +58,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs index 4131c59373af..7e9d10517951 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs @@ -109,7 +109,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs index e38fad89dbad..21601e61bb8f 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs @@ -56,7 +56,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 8981331c9e19..bb49c3bb31c1 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -57,7 +57,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 0b8716d11ff4..2c13c4267b93 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -56,7 +56,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index 6129b69ce916..8dc57fd63638 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -57,7 +57,7 @@ public Dog(Option breed = default, Option color = default) : b /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string? Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string? Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs index b6400a09e802..1362d738caea 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs @@ -62,7 +62,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape? MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape? MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -75,7 +75,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape? NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape? NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -88,7 +88,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -101,7 +101,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List? Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List? Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs index 0cc70adbd2a2..4a8e487309f0 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -203,7 +203,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List? ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List? ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/File.cs index bdc5c25e1329..770e6ad63b43 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/File.cs @@ -57,7 +57,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string? SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string? SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d7c977f2fe4f..75bbe75be272 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -58,7 +58,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets File /// [JsonPropertyName("file")] - public File? File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File? File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -71,7 +71,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets Files /// [JsonPropertyName("files")] - public List? Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List? Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs index ac4aeb49df5c..bd37a750c9bf 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs @@ -56,7 +56,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string? Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 9f57f4d6318a..4a094bf97111 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -56,7 +56,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs index 3daacf80952d..bef08805190b 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs @@ -141,7 +141,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream? Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream? Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -155,7 +155,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -168,7 +168,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -181,7 +181,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -194,7 +194,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -207,7 +207,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -220,7 +220,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -233,7 +233,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -246,7 +246,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -259,7 +259,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -272,7 +272,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -285,7 +285,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -298,7 +298,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -311,7 +311,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -324,7 +324,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -338,7 +338,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string? PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string? PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -352,7 +352,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string? PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string? PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -366,7 +366,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -379,7 +379,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -392,7 +392,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -405,7 +405,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -418,7 +418,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -432,7 +432,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs index 6aa166222089..6c8a59e807fc 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs @@ -79,7 +79,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs index 31555694e81b..9627f7598d52 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs @@ -83,7 +83,7 @@ public GmFruit(Option apple, Option banana, Option col /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 0bf77a18dca2..ede2be85a3dc 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -58,7 +58,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -71,7 +71,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string? Foo { get { return this.FooOption; } } + public string? Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 71f3c4dc4ec0..9c8ff6d92b6f 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -56,7 +56,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string? NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string? NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/List.cs index 024998ed763a..4ed30272f872 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/List.cs @@ -56,7 +56,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string? Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string? Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs index e54eebdaa1dc..281084bc4a5a 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -58,7 +58,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -71,7 +71,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs index 40dee3f15569..63057540d6ae 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs @@ -128,7 +128,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary? DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary? DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -141,7 +141,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary? IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary? IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -154,7 +154,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -167,7 +167,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs index cdac03c3bcf4..356c4e4f2ecb 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -56,7 +56,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs index e9f36662dd80..9d35e8952a3d 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -56,7 +56,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3629d644571b..07b42ca23c89 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -62,7 +62,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -75,7 +75,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary? Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary? Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -88,7 +88,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -101,7 +101,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs index 696681a920f3..9daad48ac636 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -56,7 +56,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs index 4b3f421263d4..dec2398fdb7a 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs @@ -58,7 +58,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Class /// [JsonPropertyName("class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -71,7 +71,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs index 49dcb68c571f..57fcd205e238 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs @@ -56,7 +56,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string? VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string? VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs index 72938274943d..4b30453bff93 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs @@ -68,7 +68,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Property /// [JsonPropertyName("property")] - public string? Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string? Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -81,7 +81,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -94,7 +94,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs index aa2baca6ee31..29d28ec3fe1f 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs @@ -78,7 +78,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -91,7 +91,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -104,7 +104,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List? ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List? ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -117,7 +117,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -130,7 +130,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -143,7 +143,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -156,7 +156,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -169,7 +169,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -182,7 +182,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -195,7 +195,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -208,7 +208,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -221,7 +221,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string? StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string? StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs index d0c107c1a216..d8f08bda7e3b 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -57,7 +57,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs index 3662647e6562..ebcd84e339b1 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -56,7 +56,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index b2fced877576..9ca2454087c3 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -63,7 +63,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List? Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List? Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -77,7 +77,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -91,7 +91,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -104,7 +104,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs index 0f45f32a5dc1..e2122376c4eb 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs @@ -161,7 +161,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -174,7 +174,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -187,7 +187,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -200,7 +200,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -214,7 +214,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs index 834a7f3516f1..5971c2e17137 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -60,7 +60,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -73,7 +73,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -86,7 +86,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string? MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string? MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs index 45da7d04ae56..f293b149d1e5 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs @@ -174,7 +174,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category? Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category? Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -187,7 +187,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -200,7 +200,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List? Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List? Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 4d458434bb1c..ba28de8cd9f5 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -58,7 +58,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -71,7 +71,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string? Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string? Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs index 269284919791..cfc639eb6e8c 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1415,7 +1415,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1428,7 +1428,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1441,7 +1441,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1454,7 +1454,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1467,7 +1467,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1480,7 +1480,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1493,7 +1493,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1506,7 +1506,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1520,7 +1520,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1533,7 +1533,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1546,7 +1546,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1559,7 +1559,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1572,7 +1572,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1586,7 +1586,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 1c1f18fd1dec..966694b51fc2 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -61,7 +61,7 @@ public Result(Option code = default, Option? /// /// Result code [JsonPropertyName("code")] - public string? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -75,7 +75,7 @@ public Result(Option code = default, Option? /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -89,7 +89,7 @@ public Result(Option code = default, Option? /// /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs index 1544a23710c1..99b0b0e5dba7 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs @@ -74,7 +74,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -87,7 +87,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string? Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string? Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 28b65b24ecf3..7c8c3e101304 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -58,7 +58,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole? Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole? Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -71,7 +71,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ba4ac84d8e20..4c74404a682e 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -56,7 +56,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs index 0cf9332983fd..1a1f7b635e25 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -58,7 +58,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -71,7 +71,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs index a350814f2c88..b738912d4c08 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs @@ -58,7 +58,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -71,7 +71,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b5f8d88ed68d..998e1c432f20 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -56,7 +56,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string? Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string? Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 37acae1c88df..3edf20ab42ee 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -56,7 +56,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index de60d7c2281f..97146f4f3d35 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -56,7 +56,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option somePropert /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string? SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string? SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index 933d45815f83..11461549854b 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -74,7 +74,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -88,7 +88,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/User.cs index 6af3ab9df35c..8b3d616127fe 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/User.cs @@ -79,7 +79,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object? AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object? AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -93,7 +93,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -106,7 +106,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Email /// [JsonPropertyName("email")] - public string? Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string? Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -119,7 +119,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string? FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -132,7 +132,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -145,7 +145,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string? LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string? LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -159,7 +159,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -173,7 +173,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -186,7 +186,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Password /// [JsonPropertyName("password")] - public string? Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string? Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -199,7 +199,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string? Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string? Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -213,7 +213,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -226,7 +226,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Username /// [JsonPropertyName("username")] - public string? Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string? Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs index 080a4f804022..8711b13d8742 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs @@ -66,7 +66,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -79,7 +79,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index d81a3689e6e1..aec5f0281cd6 100644 --- a/samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -56,7 +56,7 @@ public NowGet200Response(Option now = default, Option toda /// Gets or Sets Now /// [JsonPropertyName("now")] - public DateTime? Now { get { return this.NowOption; } set { this.NowOption = new(value); } } + public DateTime? Now { get { return this.NowOption.Value; } set { this.NowOption = new(value); } } /// /// Used to track the state of Today @@ -69,7 +69,7 @@ public NowGet200Response(Option now = default, Option toda /// Gets or Sets Today /// [JsonPropertyName("today")] - public DateTime? Today { get { return this.TodayOption; } set { this.TodayOption = new(value); } } + public DateTime? Today { get { return this.TodayOption.Value; } set { this.TodayOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs index f25596215be6..23758dff0a54 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -55,7 +55,7 @@ public Adult(Option> children = default, Option firstName = /// Gets or Sets Children /// [JsonPropertyName("children")] - public List Children { get { return this.ChildrenOption; } set { this.ChildrenOption = new Option>(value); } } + public List Children { get { return this.ChildrenOption.Value; } set { this.ChildrenOption = new Option>(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs index be7b25847480..0f67c83f8bb6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -57,7 +57,7 @@ public Child(Option age = default, Option boosterSeat = default, Op /// Gets or Sets Age /// [JsonPropertyName("age")] - public int? Age { get { return this.AgeOption; } set { this.AgeOption = new Option(value); } } + public int? Age { get { return this.AgeOption.Value; } set { this.AgeOption = new Option(value); } } /// /// Used to track the state of BoosterSeat @@ -70,7 +70,7 @@ public Child(Option age = default, Option boosterSeat = default, Op /// Gets or Sets BoosterSeat /// [JsonPropertyName("boosterSeat")] - public bool? BoosterSeat { get { return this.BoosterSeatOption; } set { this.BoosterSeatOption = new Option(value); } } + public bool? BoosterSeat { get { return this.BoosterSeatOption.Value; } set { this.BoosterSeatOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs index b1c00a2eda29..879793874c06 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -56,7 +56,7 @@ public Person(Option firstName = default, Option lastName = defa /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new Option(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new Option(value); } } /// /// Used to track the state of LastName @@ -69,7 +69,7 @@ public Person(Option firstName = default, Option lastName = defa /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new Option(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new Option(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..5705cce6dee2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -53,7 +53,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string Kind { get { return this.KindOption; } set { this.KindOption = new Option(value); } } + public string Kind { get { return this.KindOption.Value; } set { this.KindOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index edf36db227d5..a9221933cd06 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new Option(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index c32c0e9cac75..8e3a79710bf7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -80,7 +80,7 @@ public Fruit(Option apple, Option banana, Option color = /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 70534c23212e..c2528d45223f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -52,7 +52,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string Kind { get { return this.KindOption; } set { this.KindOption = new Option(value); } } + public string Kind { get { return this.KindOption.Value; } set { this.KindOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 2cf5830c69f6..71f3177afaed 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -52,7 +52,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new Option(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index dae9c136996b..7c30a5fbba5f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -79,7 +79,7 @@ public Fruit(Option apple, Option banana, Option color = /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs index 4562d4ceb728..c6919ac37cf6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -53,7 +53,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new Option>>(value); } } + public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new Option>>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index db832150ed96..78cbd0b330d8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new Option(value); } } + public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new Option(value); } } /// /// Used to track the state of Prop2 @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new Option(value); } } + public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index f70c7a4c5fc3..7b1f22a3f695 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new Option(value); } } + public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new Option(value); } } /// /// Used to track the state of EmptyMap @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new Option(value); } } + public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new Option(value); } } /// /// Used to track the state of MapOfMapProperty @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new Option>>(value); } } + public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new Option>>(value); } } /// /// Used to track the state of MapProperty @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new Option>(value); } } + public Dictionary MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new Option>(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new Option(value); } } + public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new Option(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new Option(value); } } + public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new Option(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new Option>(value); } } + public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new Option>(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new Option>(value); } } + public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs index f172cd70bc53..ce38f4cef730 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -61,7 +61,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 74dbae3c6ba3..e6fdc4fb07f1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -57,7 +57,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Message @@ -70,7 +70,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Message /// [JsonPropertyName("message")] - public string Message { get { return this.MessageOption; } set { this.MessageOption = new Option(value); } } + public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new Option(value); } } /// /// Used to track the state of Type @@ -83,7 +83,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Type /// [JsonPropertyName("type")] - public string Type { get { return this.TypeOption; } set { this.TypeOption = new Option(value); } } + public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..990bd8d17acb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -57,7 +57,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new Option(value); } } + public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new Option(value); } } /// /// Used to track the state of Cultivar @@ -70,7 +70,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new Option(value); } } + public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new Option(value); } } /// /// Used to track the state of Origin @@ -83,7 +83,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string Origin { get { return this.OriginOption; } set { this.OriginOption = new Option(value); } } + public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index 1a839ecb01b6..14a48152dda2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new Option(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cea3f5a4ba50..2c01bb986fc9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new Option>>(value); } } + public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new Option>>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 47bac6ba97c6..0ba7a1e496b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new Option>(value); } } + public List ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 1992bf9e932d..81e3c7c83f82 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -57,7 +57,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new Option>>(value); } } + public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new Option>>(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -70,7 +70,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new Option>>(value); } } + public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new Option>>(value); } } /// /// Used to track the state of ArrayOfString @@ -83,7 +83,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new Option>(value); } } + public List ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs index d7b7e8188f75..90966bbb326e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new Option(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index 8aa8da44caea..ec58edf3bfb9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -61,7 +61,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new Option(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..6f593640eb2d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -64,7 +64,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new Option(value); } } + public string ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new Option(value); } } /// /// Used to track the state of CapitalCamel @@ -77,7 +77,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new Option(value); } } + public string CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new Option(value); } } /// /// Used to track the state of CapitalSnake @@ -90,7 +90,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new Option(value); } } + public string CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new Option(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -103,7 +103,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new Option(value); } } + public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new Option(value); } } /// /// Used to track the state of SmallCamel @@ -116,7 +116,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new Option(value); } } + public string SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new Option(value); } } /// /// Used to track the state of SmallSnake @@ -129,7 +129,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new Option(value); } } + public string SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 9ed61c34f667..b7d785142b83 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -54,7 +54,7 @@ public Cat(Option color = default, Option declawed = default) : b /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new Option(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs index 7db5ba3129ff..f3cc4777b9d3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 632caa963cf7..987fefc9ff9f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -61,7 +61,7 @@ public ChildCat(Option name = default) : base() /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..1e7364181d3d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -53,7 +53,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new Option(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 62ae935e4564..c84d556d4b1c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -54,7 +54,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateTime? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new Option(value); } } + public DateTime? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..d9f800beabd2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -53,7 +53,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 509278540c44..4164f84fe4d6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -54,7 +54,7 @@ public Dog(Option breed = default, Option color = default) : bas /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string Breed { get { return this.BreedOption; } set { this.BreedOption = new Option(value); } } + public string Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index e83b95303760..96904b590ba7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -59,7 +59,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new Option(value); } } + public Shape MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new Option(value); } } /// /// Used to track the state of NullableShape @@ -72,7 +72,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new Option(value); } } + public NullableShape NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new Option(value); } } /// /// Used to track the state of ShapeOrNull @@ -85,7 +85,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new Option(value); } } + public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new Option(value); } } /// /// Used to track the state of Shapes @@ -98,7 +98,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new Option>(value); } } + public List Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index fd871b9c2ef7..13184691ed86 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -68,7 +68,7 @@ public EnumArrays(Option> arrayEnum = default, Op /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new Option>(value); } } + public List ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..93d21794aad5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -54,7 +54,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new Option(value); } } + public string SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 76db6338890f..6e250993445c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -55,7 +55,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets File /// [JsonPropertyName("file")] - public File File { get { return this.FileOption; } set { this.FileOption = new Option(value); } } + public File File { get { return this.FileOption.Value; } set { this.FileOption = new Option(value); } } /// /// Used to track the state of Files @@ -68,7 +68,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets Files /// [JsonPropertyName("files")] - public List Files { get { return this.FilesOption; } set { this.FilesOption = new Option>(value); } } + public List Files { get { return this.FilesOption.Value; } set { this.FilesOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..e8084ae32149 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -53,7 +53,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } set { this.BarOption = new Option(value); } } + public string Bar { get { return this.BarOption.Value; } set { this.BarOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 285e193a7e15..01eef946bfc7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -53,7 +53,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo String { get { return this.StringOption; } set { this.StringOption = new Option(value); } } + public Foo String { get { return this.StringOption.Value; } set { this.StringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index ae0854b6be45..a539802f3140 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -138,7 +138,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream Binary { get { return this.BinaryOption; } set { this.BinaryOption = new Option(value); } } + public System.IO.Stream Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new Option(value); } } /// /// Used to track the state of DateTime @@ -152,7 +152,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new Option(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new Option(value); } } /// /// Used to track the state of Decimal @@ -165,7 +165,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new Option(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new Option(value); } } /// /// Used to track the state of Double @@ -178,7 +178,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new Option(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -191,7 +191,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new Option(value); } } + public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new Option(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -204,7 +204,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new Option(value); } } + public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new Option(value); } } /// /// Used to track the state of Float @@ -217,7 +217,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new Option(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new Option(value); } } /// /// Used to track the state of Int32 @@ -230,7 +230,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new Option(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new Option(value); } } /// /// Used to track the state of Int32Range @@ -243,7 +243,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new Option(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new Option(value); } } /// /// Used to track the state of Int64 @@ -256,7 +256,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new Option(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new Option(value); } } /// /// Used to track the state of Int64Negative @@ -269,7 +269,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new Option(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new Option(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -282,7 +282,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new Option(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new Option(value); } } /// /// Used to track the state of Int64Positive @@ -295,7 +295,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new Option(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new Option(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -308,7 +308,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new Option(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new Option(value); } } /// /// Used to track the state of Integer @@ -321,7 +321,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new Option(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new Option(value); } } /// /// Used to track the state of PatternWithBackslash @@ -335,7 +335,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new Option(value); } } + public string PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new Option(value); } } /// /// Used to track the state of PatternWithDigits @@ -349,7 +349,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new Option(value); } } + public string PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new Option(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -363,7 +363,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new Option(value); } } + public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new Option(value); } } /// /// Used to track the state of String @@ -376,7 +376,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string String { get { return this.StringOption; } set { this.StringOption = new Option(value); } } + public string String { get { return this.StringOption.Value; } set { this.StringOption = new Option(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -389,7 +389,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new Option(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new Option(value); } } /// /// Used to track the state of UnsignedInteger @@ -402,7 +402,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new Option(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new Option(value); } } /// /// Used to track the state of UnsignedLong @@ -415,7 +415,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new Option(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new Option(value); } } /// /// Used to track the state of Uuid @@ -429,7 +429,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..05d7005b3c4b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -76,7 +76,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index b4298f04b511..bb202258e403 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -80,7 +80,7 @@ public GmFruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..64130e7cfbf5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -55,7 +55,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -68,7 +68,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string Foo { get { return this.FooOption; } } + public string Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..641c18e39ec0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -53,7 +53,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new Option(value); } } + public string NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..f3fac3c39845 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -53,7 +53,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new Option(value); } } + public string Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..b34577b8a881 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -55,7 +55,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new Option(value); } } + public string EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new Option(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -68,7 +68,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new Option(value); } } + public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 7331b5d3f61b..c3cb174a13cd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -59,7 +59,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("direct_map")] - public Dictionary DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new Option>(value); } } + public Dictionary DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new Option>(value); } } /// /// Used to track the state of IndirectMap @@ -72,7 +72,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("indirect_map")] - public Dictionary IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new Option>(value); } } + public Dictionary IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new Option>(value); } } /// /// Used to track the state of MapMapOfString @@ -85,7 +85,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("map_map_of_string")] - public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new Option>>(value); } } + public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new Option>>(value); } } /// /// Used to track the state of MapOfEnumString @@ -98,7 +98,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("map_of_enum_string")] - public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new Option>(value); } } + public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 3a559f831196..10106b8319fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -53,7 +53,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new Option(value); } } + public MixedAnyOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 5e238e0f7b30..c6b1b0d35eb2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -53,7 +53,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new Option(value); } } + public MixedOneOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index e0462d7c8a25..fef0ec49b984 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -59,7 +59,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new Option(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new Option(value); } } /// /// Used to track the state of Map @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary Map { get { return this.MapOption; } set { this.MapOption = new Option>(value); } } + public Dictionary Map { get { return this.MapOption.Value; } set { this.MapOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Used to track the state of UuidWithPattern @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new Option(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..3f2b6cb145f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -53,7 +53,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public string Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index 882bf7ccda47..30dd8c4a1186 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -55,7 +55,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Class /// [JsonPropertyName("class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new Option(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new Option(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..ddc0cae59e93 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -53,7 +53,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new Option(value); } } + public string VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs index dba5779e547d..d8a8dca64fc4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -65,7 +65,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Property /// [JsonPropertyName("property")] - public string Property { get { return this.PropertyOption; } set { this.PropertyOption = new Option(value); } } + public string Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new Option(value); } } /// /// Used to track the state of SnakeCase @@ -78,7 +78,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -91,7 +91,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 397f12bffbb0..924e9bc89069 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -75,7 +75,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new Option>(value); } } + public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new Option>(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -88,7 +88,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new Option>(value); } } + public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new Option>(value); } } /// /// Used to track the state of ArrayNullableProp @@ -101,7 +101,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new Option>(value); } } + public List ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new Option>(value); } } /// /// Used to track the state of BooleanProp @@ -114,7 +114,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new Option(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new Option(value); } } /// /// Used to track the state of DateProp @@ -127,7 +127,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateTime? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new Option(value); } } + public DateTime? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new Option(value); } } /// /// Used to track the state of DatetimeProp @@ -140,7 +140,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new Option(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new Option(value); } } /// /// Used to track the state of IntegerProp @@ -153,7 +153,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new Option(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new Option(value); } } /// /// Used to track the state of NumberProp @@ -166,7 +166,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new Option(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new Option(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -179,7 +179,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new Option>(value); } } + public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new Option>(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -192,7 +192,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new Option>(value); } } + public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new Option>(value); } } /// /// Used to track the state of ObjectNullableProp @@ -205,7 +205,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new Option>(value); } } + public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new Option>(value); } } /// /// Used to track the state of StringProp @@ -218,7 +218,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new Option(value); } } + public string StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 6efbeef44dcd..a3a4b6e125de 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -54,7 +54,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 55ab016ac3db..061bb350661d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new Option(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 541a621953aa..867ab1d74025 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List Bars { get { return this.BarsOption; } set { this.BarsOption = new Option>(value); } } + public List Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new Option>(value); } } /// /// Used to track the state of DeprecatedRef @@ -74,7 +74,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new Option(value); } } + public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new Option(value); } } /// /// Used to track the state of Id @@ -88,7 +88,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Uuid @@ -101,7 +101,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs index ce2005d89016..ac05d2a97091 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -76,7 +76,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new Option(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new Option(value); } } /// /// Used to track the state of Id @@ -89,7 +89,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of PetId @@ -102,7 +102,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new Option(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new Option(value); } } /// /// Used to track the state of Quantity @@ -115,7 +115,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new Option(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new Option(value); } } /// /// Used to track the state of ShipDate @@ -129,7 +129,7 @@ public Order(Option complete = default, Option id = default, Optio /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new Option(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index d366c24ec24c..d02f8c96ae2f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -57,7 +57,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new Option(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new Option(value); } } /// /// Used to track the state of MyNumber @@ -70,7 +70,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new Option(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new Option(value); } } /// /// Used to track the state of MyString @@ -83,7 +83,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string MyString { get { return this.MyStringOption; } set { this.MyStringOption = new Option(value); } } + public string MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs index 0717f1499aaa..a951bca2b299 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -89,7 +89,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category Category { get { return this.CategoryOption; } set { this.CategoryOption = new Option(value); } } + public Category Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new Option(value); } } /// /// Used to track the state of Id @@ -102,7 +102,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Tags @@ -115,7 +115,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List Tags { get { return this.TagsOption; } set { this.TagsOption = new Option>(value); } } + public List Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..3134d1d7c1d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -55,7 +55,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -68,7 +68,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string Baz { get { return this.BazOption; } set { this.BazOption = new Option(value); } } + public string Baz { get { return this.BazOption.Value; } set { this.BazOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 85bd06ae9d1d..6f08aff08b92 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -334,7 +334,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateTime? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new Option(value); } } + public DateTime? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -347,7 +347,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new Option(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -360,7 +360,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateTime? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new Option(value); } } + public DateTime? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -373,7 +373,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new Option(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -386,7 +386,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new Option>(value); } } + public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new Option>(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -399,7 +399,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new Option(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -412,7 +412,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new Option(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -425,7 +425,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new Option(value); } } + public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -439,7 +439,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new Option(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -452,7 +452,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new Option>(value); } } + public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new Option>(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -465,7 +465,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new Option(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -478,7 +478,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new Option(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -491,7 +491,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new Option(value); } } + public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -505,7 +505,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new Option(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new Option(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..bc7b3d97d94c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -58,7 +58,7 @@ public Result(Option code = default, Option> /// /// Result code [JsonPropertyName("code")] - public string Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public string Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Data @@ -72,7 +72,7 @@ public Result(Option code = default, Option> /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -86,7 +86,7 @@ public Result(Option code = default, Option> /// /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs index 81211e0ce4ac..6f5a0a005d23 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new Option(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new Option(value); } } /// /// Used to track the state of Unsafe @@ -84,7 +84,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new Option(value); } } + public string Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 5b7a88bd659a..23e1b6c722f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -55,7 +55,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole Role { get { return this.RoleOption; } set { this.RoleOption = new Option(value); } } + public RolesReportsHashRole Role { get { return this.RoleOption.Value; } set { this.RoleOption = new Option(value); } } /// /// Used to track the state of RoleUuid @@ -68,7 +68,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new Option(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..e7822a579340 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -53,7 +53,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index f30e2a11997b..3ca1bd1badbf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -55,7 +55,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new Option(value); } } + public string VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new Option(value); } } /// /// Used to track the state of SpecialPropertyName @@ -68,7 +68,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new Option(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 6b9d5082405b..fa2a11bd1212 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -55,7 +55,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..f7f17f6aab68 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string Value { get { return this.ValueOption; } set { this.ValueOption = new Option(value); } } + public string Value { get { return this.ValueOption.Value; } set { this.ValueOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 7328caf1ead5..7426a4594e48 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new Option>(value); } } + public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..efd567b280c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new Option(value); } } + public string SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 32249c7516a1..421bbc33ec1a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -71,7 +71,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs index a85e556bb9e8..7807d2b09a17 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -76,7 +76,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new Option(value); } } + public Object AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new Option(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -90,7 +90,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new Option(value); } } + public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new Option(value); } } /// /// Used to track the state of Email @@ -103,7 +103,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Email /// [JsonPropertyName("email")] - public string Email { get { return this.EmailOption; } set { this.EmailOption = new Option(value); } } + public string Email { get { return this.EmailOption.Value; } set { this.EmailOption = new Option(value); } } /// /// Used to track the state of FirstName @@ -116,7 +116,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new Option(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new Option(value); } } /// /// Used to track the state of Id @@ -129,7 +129,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of LastName @@ -142,7 +142,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new Option(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new Option(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -156,7 +156,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new Option(value); } } + public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new Option(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -170,7 +170,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new Option(value); } } + public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new Option(value); } } /// /// Used to track the state of Password @@ -183,7 +183,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Password /// [JsonPropertyName("password")] - public string Password { get { return this.PasswordOption; } set { this.PasswordOption = new Option(value); } } + public string Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new Option(value); } } /// /// Used to track the state of Phone @@ -196,7 +196,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string Phone { get { return this.PhoneOption; } set { this.PhoneOption = new Option(value); } } + public string Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new Option(value); } } /// /// Used to track the state of UserStatus @@ -210,7 +210,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new Option(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new Option(value); } } /// /// Used to track the state of Username @@ -223,7 +223,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Username /// [JsonPropertyName("username")] - public string Username { get { return this.UsernameOption; } set { this.UsernameOption = new Option(value); } } + public string Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 56da6f6db3c6..21e58212ba7b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -63,7 +63,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new Option(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new Option(value); } } /// /// Used to track the state of HasTeeth @@ -76,7 +76,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new Option(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..5705cce6dee2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -53,7 +53,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string Kind { get { return this.KindOption; } set { this.KindOption = new Option(value); } } + public string Kind { get { return this.KindOption.Value; } set { this.KindOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs index edf36db227d5..a9221933cd06 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new Option(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index 60c5a493515e..e34e26023978 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -93,7 +93,7 @@ public Fruit(Orange orange, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Orange.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Orange.cs index 8c864071b6df..b957cff8de0e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Orange.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Orange.cs @@ -53,7 +53,7 @@ public Orange(Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new Option(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 4562d4ceb728..c6919ac37cf6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -53,7 +53,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new Option>>(value); } } + public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new Option>>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index db832150ed96..78cbd0b330d8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new Option(value); } } + public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new Option(value); } } /// /// Used to track the state of Prop2 @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new Option(value); } } + public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index f70c7a4c5fc3..7b1f22a3f695 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new Option(value); } } + public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new Option(value); } } /// /// Used to track the state of EmptyMap @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new Option(value); } } + public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new Option(value); } } /// /// Used to track the state of MapOfMapProperty @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new Option>>(value); } } + public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new Option>>(value); } } /// /// Used to track the state of MapProperty @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new Option>(value); } } + public Dictionary MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new Option>(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new Option(value); } } + public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new Option(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new Option(value); } } + public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new Option(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new Option>(value); } } + public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new Option>(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new Option>(value); } } + public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs index f172cd70bc53..ce38f4cef730 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -61,7 +61,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 74dbae3c6ba3..e6fdc4fb07f1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -57,7 +57,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Message @@ -70,7 +70,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Message /// [JsonPropertyName("message")] - public string Message { get { return this.MessageOption; } set { this.MessageOption = new Option(value); } } + public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new Option(value); } } /// /// Used to track the state of Type @@ -83,7 +83,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Type /// [JsonPropertyName("type")] - public string Type { get { return this.TypeOption; } set { this.TypeOption = new Option(value); } } + public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..990bd8d17acb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -57,7 +57,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new Option(value); } } + public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new Option(value); } } /// /// Used to track the state of Cultivar @@ -70,7 +70,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new Option(value); } } + public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new Option(value); } } /// /// Used to track the state of Origin @@ -83,7 +83,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string Origin { get { return this.OriginOption; } set { this.OriginOption = new Option(value); } } + public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 1a839ecb01b6..14a48152dda2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new Option(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cea3f5a4ba50..2c01bb986fc9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new Option>>(value); } } + public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new Option>>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 47bac6ba97c6..0ba7a1e496b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new Option>(value); } } + public List ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 1992bf9e932d..81e3c7c83f82 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -57,7 +57,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new Option>>(value); } } + public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new Option>>(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -70,7 +70,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new Option>>(value); } } + public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new Option>>(value); } } /// /// Used to track the state of ArrayOfString @@ -83,7 +83,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new Option>(value); } } + public List ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d7b7e8188f75..90966bbb326e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new Option(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 8aa8da44caea..ec58edf3bfb9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -61,7 +61,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new Option(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..6f593640eb2d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -64,7 +64,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new Option(value); } } + public string ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new Option(value); } } /// /// Used to track the state of CapitalCamel @@ -77,7 +77,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new Option(value); } } + public string CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new Option(value); } } /// /// Used to track the state of CapitalSnake @@ -90,7 +90,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new Option(value); } } + public string CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new Option(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -103,7 +103,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new Option(value); } } + public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new Option(value); } } /// /// Used to track the state of SmallCamel @@ -116,7 +116,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new Option(value); } } + public string SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new Option(value); } } /// /// Used to track the state of SmallSnake @@ -129,7 +129,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new Option(value); } } + public string SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 9ed61c34f667..b7d785142b83 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -54,7 +54,7 @@ public Cat(Option color = default, Option declawed = default) : b /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new Option(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs index 7db5ba3129ff..f3cc4777b9d3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index cce039237aea..147a228c8950 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -106,7 +106,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..1e7364181d3d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -53,7 +53,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new Option(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 62ae935e4564..c84d556d4b1c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -54,7 +54,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateTime? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new Option(value); } } + public DateTime? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..d9f800beabd2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -53,7 +53,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 509278540c44..4164f84fe4d6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -54,7 +54,7 @@ public Dog(Option breed = default, Option color = default) : bas /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string Breed { get { return this.BreedOption; } set { this.BreedOption = new Option(value); } } + public string Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index e83b95303760..96904b590ba7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -59,7 +59,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new Option(value); } } + public Shape MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new Option(value); } } /// /// Used to track the state of NullableShape @@ -72,7 +72,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new Option(value); } } + public NullableShape NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new Option(value); } } /// /// Used to track the state of ShapeOrNull @@ -85,7 +85,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new Option(value); } } + public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new Option(value); } } /// /// Used to track the state of Shapes @@ -98,7 +98,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new Option>(value); } } + public List Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index e820832b3e88..e285c7523d4c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -200,7 +200,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new Option>(value); } } + public List ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..93d21794aad5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -54,7 +54,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new Option(value); } } + public string SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 76db6338890f..6e250993445c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -55,7 +55,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets File /// [JsonPropertyName("file")] - public File File { get { return this.FileOption; } set { this.FileOption = new Option(value); } } + public File File { get { return this.FileOption.Value; } set { this.FileOption = new Option(value); } } /// /// Used to track the state of Files @@ -68,7 +68,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets Files /// [JsonPropertyName("files")] - public List Files { get { return this.FilesOption; } set { this.FilesOption = new Option>(value); } } + public List Files { get { return this.FilesOption.Value; } set { this.FilesOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..e8084ae32149 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -53,7 +53,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } set { this.BarOption = new Option(value); } } + public string Bar { get { return this.BarOption.Value; } set { this.BarOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 285e193a7e15..01eef946bfc7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -53,7 +53,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo String { get { return this.StringOption; } set { this.StringOption = new Option(value); } } + public Foo String { get { return this.StringOption.Value; } set { this.StringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index ae0854b6be45..a539802f3140 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -138,7 +138,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream Binary { get { return this.BinaryOption; } set { this.BinaryOption = new Option(value); } } + public System.IO.Stream Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new Option(value); } } /// /// Used to track the state of DateTime @@ -152,7 +152,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new Option(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new Option(value); } } /// /// Used to track the state of Decimal @@ -165,7 +165,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new Option(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new Option(value); } } /// /// Used to track the state of Double @@ -178,7 +178,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new Option(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -191,7 +191,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new Option(value); } } + public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new Option(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -204,7 +204,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new Option(value); } } + public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new Option(value); } } /// /// Used to track the state of Float @@ -217,7 +217,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new Option(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new Option(value); } } /// /// Used to track the state of Int32 @@ -230,7 +230,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new Option(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new Option(value); } } /// /// Used to track the state of Int32Range @@ -243,7 +243,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new Option(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new Option(value); } } /// /// Used to track the state of Int64 @@ -256,7 +256,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new Option(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new Option(value); } } /// /// Used to track the state of Int64Negative @@ -269,7 +269,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new Option(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new Option(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -282,7 +282,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new Option(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new Option(value); } } /// /// Used to track the state of Int64Positive @@ -295,7 +295,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new Option(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new Option(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -308,7 +308,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new Option(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new Option(value); } } /// /// Used to track the state of Integer @@ -321,7 +321,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new Option(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new Option(value); } } /// /// Used to track the state of PatternWithBackslash @@ -335,7 +335,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new Option(value); } } + public string PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new Option(value); } } /// /// Used to track the state of PatternWithDigits @@ -349,7 +349,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new Option(value); } } + public string PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new Option(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -363,7 +363,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new Option(value); } } + public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new Option(value); } } /// /// Used to track the state of String @@ -376,7 +376,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string String { get { return this.StringOption; } set { this.StringOption = new Option(value); } } + public string String { get { return this.StringOption.Value; } set { this.StringOption = new Option(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -389,7 +389,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new Option(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new Option(value); } } /// /// Used to track the state of UnsignedInteger @@ -402,7 +402,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new Option(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new Option(value); } } /// /// Used to track the state of UnsignedLong @@ -415,7 +415,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new Option(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new Option(value); } } /// /// Used to track the state of Uuid @@ -429,7 +429,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..05d7005b3c4b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -76,7 +76,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index b4298f04b511..bb202258e403 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -80,7 +80,7 @@ public GmFruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..64130e7cfbf5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -55,7 +55,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -68,7 +68,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string Foo { get { return this.FooOption; } } + public string Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..641c18e39ec0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -53,7 +53,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new Option(value); } } + public string NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..f3fac3c39845 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -53,7 +53,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new Option(value); } } + public string Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..b34577b8a881 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -55,7 +55,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new Option(value); } } + public string EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new Option(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -68,7 +68,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new Option(value); } } + public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 0af46ec34e41..6f322da6a9bf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -125,7 +125,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new Option>(value); } } + public Dictionary DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new Option>(value); } } /// /// Used to track the state of IndirectMap @@ -138,7 +138,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new Option>(value); } } + public Dictionary IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new Option>(value); } } /// /// Used to track the state of MapMapOfString @@ -151,7 +151,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new Option>>(value); } } + public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new Option>>(value); } } /// /// Used to track the state of MapOfEnumString @@ -164,7 +164,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new Option>(value); } } + public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 3a559f831196..10106b8319fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -53,7 +53,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new Option(value); } } + public MixedAnyOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 5e238e0f7b30..c6b1b0d35eb2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -53,7 +53,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new Option(value); } } + public MixedOneOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index e0462d7c8a25..fef0ec49b984 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -59,7 +59,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new Option(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new Option(value); } } /// /// Used to track the state of Map @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary Map { get { return this.MapOption; } set { this.MapOption = new Option>(value); } } + public Dictionary Map { get { return this.MapOption.Value; } set { this.MapOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Used to track the state of UuidWithPattern @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new Option(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..3f2b6cb145f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -53,7 +53,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public string Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 882bf7ccda47..30dd8c4a1186 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -55,7 +55,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Class /// [JsonPropertyName("class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new Option(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new Option(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..ddc0cae59e93 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -53,7 +53,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new Option(value); } } + public string VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs index dba5779e547d..d8a8dca64fc4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -65,7 +65,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Property /// [JsonPropertyName("property")] - public string Property { get { return this.PropertyOption; } set { this.PropertyOption = new Option(value); } } + public string Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new Option(value); } } /// /// Used to track the state of SnakeCase @@ -78,7 +78,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -91,7 +91,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 397f12bffbb0..924e9bc89069 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -75,7 +75,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new Option>(value); } } + public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new Option>(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -88,7 +88,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new Option>(value); } } + public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new Option>(value); } } /// /// Used to track the state of ArrayNullableProp @@ -101,7 +101,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new Option>(value); } } + public List ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new Option>(value); } } /// /// Used to track the state of BooleanProp @@ -114,7 +114,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new Option(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new Option(value); } } /// /// Used to track the state of DateProp @@ -127,7 +127,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateTime? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new Option(value); } } + public DateTime? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new Option(value); } } /// /// Used to track the state of DatetimeProp @@ -140,7 +140,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new Option(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new Option(value); } } /// /// Used to track the state of IntegerProp @@ -153,7 +153,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new Option(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new Option(value); } } /// /// Used to track the state of NumberProp @@ -166,7 +166,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new Option(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new Option(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -179,7 +179,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new Option>(value); } } + public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new Option>(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -192,7 +192,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new Option>(value); } } + public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new Option>(value); } } /// /// Used to track the state of ObjectNullableProp @@ -205,7 +205,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new Option>(value); } } + public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new Option>(value); } } /// /// Used to track the state of StringProp @@ -218,7 +218,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new Option(value); } } + public string StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 6efbeef44dcd..a3a4b6e125de 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -54,7 +54,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 55ab016ac3db..061bb350661d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new Option(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 541a621953aa..867ab1d74025 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List Bars { get { return this.BarsOption; } set { this.BarsOption = new Option>(value); } } + public List Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new Option>(value); } } /// /// Used to track the state of DeprecatedRef @@ -74,7 +74,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new Option(value); } } + public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new Option(value); } } /// /// Used to track the state of Id @@ -88,7 +88,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Uuid @@ -101,7 +101,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs index c61a5c5527d9..4f5761ccd789 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -158,7 +158,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new Option(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new Option(value); } } /// /// Used to track the state of Id @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of PetId @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new Option(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new Option(value); } } /// /// Used to track the state of Quantity @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new Option(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new Option(value); } } /// /// Used to track the state of ShipDate @@ -211,7 +211,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new Option(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index d366c24ec24c..d02f8c96ae2f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -57,7 +57,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new Option(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new Option(value); } } /// /// Used to track the state of MyNumber @@ -70,7 +70,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new Option(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new Option(value); } } /// /// Used to track the state of MyString @@ -83,7 +83,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string MyString { get { return this.MyStringOption; } set { this.MyStringOption = new Option(value); } } + public string MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs index d86c3d5f64e5..788584e35833 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category Category { get { return this.CategoryOption; } set { this.CategoryOption = new Option(value); } } + public Category Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new Option(value); } } /// /// Used to track the state of Id @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Tags @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List Tags { get { return this.TagsOption; } set { this.TagsOption = new Option>(value); } } + public List Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..3134d1d7c1d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -55,7 +55,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -68,7 +68,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string Baz { get { return this.BazOption; } set { this.BazOption = new Option(value); } } + public string Baz { get { return this.BazOption.Value; } set { this.BazOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 1052c98ee925..8354a7779b79 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1412,7 +1412,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateTime? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new Option(value); } } + public DateTime? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1425,7 +1425,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new Option(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1438,7 +1438,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateTime? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new Option(value); } } + public DateTime? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1451,7 +1451,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new Option(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1464,7 +1464,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new Option>(value); } } + public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new Option>(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1477,7 +1477,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new Option(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1490,7 +1490,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new Option(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1503,7 +1503,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new Option(value); } } + public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1517,7 +1517,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new Option(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1530,7 +1530,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new Option>(value); } } + public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new Option>(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1543,7 +1543,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new Option(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1556,7 +1556,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new Option(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1569,7 +1569,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new Option(value); } } + public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1583,7 +1583,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new Option(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new Option(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..bc7b3d97d94c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -58,7 +58,7 @@ public Result(Option code = default, Option> /// /// Result code [JsonPropertyName("code")] - public string Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public string Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Data @@ -72,7 +72,7 @@ public Result(Option code = default, Option> /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -86,7 +86,7 @@ public Result(Option code = default, Option> /// /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs index 81211e0ce4ac..6f5a0a005d23 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new Option(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new Option(value); } } /// /// Used to track the state of Unsafe @@ -84,7 +84,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new Option(value); } } + public string Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 5b7a88bd659a..23e1b6c722f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -55,7 +55,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole Role { get { return this.RoleOption; } set { this.RoleOption = new Option(value); } } + public RolesReportsHashRole Role { get { return this.RoleOption.Value; } set { this.RoleOption = new Option(value); } } /// /// Used to track the state of RoleUuid @@ -68,7 +68,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new Option(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..e7822a579340 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -53,7 +53,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index f30e2a11997b..3ca1bd1badbf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -55,7 +55,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new Option(value); } } + public string VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new Option(value); } } /// /// Used to track the state of SpecialPropertyName @@ -68,7 +68,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new Option(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 6b9d5082405b..fa2a11bd1212 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -55,7 +55,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..f7f17f6aab68 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string Value { get { return this.ValueOption; } set { this.ValueOption = new Option(value); } } + public string Value { get { return this.ValueOption.Value; } set { this.ValueOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 7328caf1ead5..7426a4594e48 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new Option>(value); } } + public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..efd567b280c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new Option(value); } } + public string SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 32249c7516a1..421bbc33ec1a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -71,7 +71,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs index a85e556bb9e8..7807d2b09a17 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -76,7 +76,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new Option(value); } } + public Object AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new Option(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -90,7 +90,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new Option(value); } } + public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new Option(value); } } /// /// Used to track the state of Email @@ -103,7 +103,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Email /// [JsonPropertyName("email")] - public string Email { get { return this.EmailOption; } set { this.EmailOption = new Option(value); } } + public string Email { get { return this.EmailOption.Value; } set { this.EmailOption = new Option(value); } } /// /// Used to track the state of FirstName @@ -116,7 +116,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new Option(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new Option(value); } } /// /// Used to track the state of Id @@ -129,7 +129,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of LastName @@ -142,7 +142,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new Option(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new Option(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -156,7 +156,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new Option(value); } } + public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new Option(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -170,7 +170,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new Option(value); } } + public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new Option(value); } } /// /// Used to track the state of Password @@ -183,7 +183,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Password /// [JsonPropertyName("password")] - public string Password { get { return this.PasswordOption; } set { this.PasswordOption = new Option(value); } } + public string Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new Option(value); } } /// /// Used to track the state of Phone @@ -196,7 +196,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string Phone { get { return this.PhoneOption; } set { this.PhoneOption = new Option(value); } } + public string Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new Option(value); } } /// /// Used to track the state of UserStatus @@ -210,7 +210,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new Option(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new Option(value); } } /// /// Used to track the state of Username @@ -223,7 +223,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Username /// [JsonPropertyName("username")] - public string Username { get { return this.UsernameOption; } set { this.UsernameOption = new Option(value); } } + public string Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 56da6f6db3c6..21e58212ba7b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -63,7 +63,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new Option(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new Option(value); } } /// /// Used to track the state of HasTeeth @@ -76,7 +76,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new Option(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 1858ede45ba0..f2aabb5ad4e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -54,7 +54,7 @@ public NowGet200Response(Option now = default, Option toda /// Gets or Sets Now /// [JsonPropertyName("now")] - public DateTime? Now { get { return this.NowOption; } set { this.NowOption = new Option(value); } } + public DateTime? Now { get { return this.NowOption.Value; } set { this.NowOption = new Option(value); } } /// /// Used to track the state of Today @@ -67,7 +67,7 @@ public NowGet200Response(Option now = default, Option toda /// Gets or Sets Today /// [JsonPropertyName("today")] - public DateTime? Today { get { return this.TodayOption; } set { this.TodayOption = new Option(value); } } + public DateTime? Today { get { return this.TodayOption.Value; } set { this.TodayOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index f25596215be6..23758dff0a54 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -55,7 +55,7 @@ public Adult(Option> children = default, Option firstName = /// Gets or Sets Children /// [JsonPropertyName("children")] - public List Children { get { return this.ChildrenOption; } set { this.ChildrenOption = new Option>(value); } } + public List Children { get { return this.ChildrenOption.Value; } set { this.ChildrenOption = new Option>(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs index be7b25847480..0f67c83f8bb6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -57,7 +57,7 @@ public Child(Option age = default, Option boosterSeat = default, Op /// Gets or Sets Age /// [JsonPropertyName("age")] - public int? Age { get { return this.AgeOption; } set { this.AgeOption = new Option(value); } } + public int? Age { get { return this.AgeOption.Value; } set { this.AgeOption = new Option(value); } } /// /// Used to track the state of BoosterSeat @@ -70,7 +70,7 @@ public Child(Option age = default, Option boosterSeat = default, Op /// Gets or Sets BoosterSeat /// [JsonPropertyName("boosterSeat")] - public bool? BoosterSeat { get { return this.BoosterSeatOption; } set { this.BoosterSeatOption = new Option(value); } } + public bool? BoosterSeat { get { return this.BoosterSeatOption.Value; } set { this.BoosterSeatOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs index b1c00a2eda29..879793874c06 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -56,7 +56,7 @@ public Person(Option firstName = default, Option lastName = defa /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new Option(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new Option(value); } } /// /// Used to track the state of LastName @@ -69,7 +69,7 @@ public Person(Option firstName = default, Option lastName = defa /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new Option(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new Option(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..5705cce6dee2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -53,7 +53,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string Kind { get { return this.KindOption; } set { this.KindOption = new Option(value); } } + public string Kind { get { return this.KindOption.Value; } set { this.KindOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index edf36db227d5..a9221933cd06 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new Option(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index c32c0e9cac75..8e3a79710bf7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -80,7 +80,7 @@ public Fruit(Option apple, Option banana, Option color = /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 70534c23212e..c2528d45223f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -52,7 +52,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string Kind { get { return this.KindOption; } set { this.KindOption = new Option(value); } } + public string Kind { get { return this.KindOption.Value; } set { this.KindOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 2cf5830c69f6..71f3177afaed 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -52,7 +52,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new Option(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index dae9c136996b..7c30a5fbba5f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -79,7 +79,7 @@ public Fruit(Option apple, Option banana, Option color = /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs index 4562d4ceb728..c6919ac37cf6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -53,7 +53,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new Option>>(value); } } + public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new Option>>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index db832150ed96..78cbd0b330d8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new Option(value); } } + public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new Option(value); } } /// /// Used to track the state of Prop2 @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new Option(value); } } + public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index f70c7a4c5fc3..7b1f22a3f695 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new Option(value); } } + public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new Option(value); } } /// /// Used to track the state of EmptyMap @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new Option(value); } } + public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new Option(value); } } /// /// Used to track the state of MapOfMapProperty @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new Option>>(value); } } + public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new Option>>(value); } } /// /// Used to track the state of MapProperty @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new Option>(value); } } + public Dictionary MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new Option>(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new Option(value); } } + public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new Option(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new Option(value); } } + public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new Option(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new Option>(value); } } + public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new Option>(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new Option>(value); } } + public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs index f172cd70bc53..ce38f4cef730 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -61,7 +61,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 74dbae3c6ba3..e6fdc4fb07f1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -57,7 +57,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Message @@ -70,7 +70,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Message /// [JsonPropertyName("message")] - public string Message { get { return this.MessageOption; } set { this.MessageOption = new Option(value); } } + public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new Option(value); } } /// /// Used to track the state of Type @@ -83,7 +83,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Type /// [JsonPropertyName("type")] - public string Type { get { return this.TypeOption; } set { this.TypeOption = new Option(value); } } + public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..990bd8d17acb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -57,7 +57,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new Option(value); } } + public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new Option(value); } } /// /// Used to track the state of Cultivar @@ -70,7 +70,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new Option(value); } } + public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new Option(value); } } /// /// Used to track the state of Origin @@ -83,7 +83,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string Origin { get { return this.OriginOption; } set { this.OriginOption = new Option(value); } } + public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index 1a839ecb01b6..14a48152dda2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new Option(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cea3f5a4ba50..2c01bb986fc9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new Option>>(value); } } + public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new Option>>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 47bac6ba97c6..0ba7a1e496b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new Option>(value); } } + public List ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 1992bf9e932d..81e3c7c83f82 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -57,7 +57,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new Option>>(value); } } + public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new Option>>(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -70,7 +70,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new Option>>(value); } } + public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new Option>>(value); } } /// /// Used to track the state of ArrayOfString @@ -83,7 +83,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new Option>(value); } } + public List ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs index d7b7e8188f75..90966bbb326e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new Option(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index 8aa8da44caea..ec58edf3bfb9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -61,7 +61,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new Option(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..6f593640eb2d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -64,7 +64,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new Option(value); } } + public string ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new Option(value); } } /// /// Used to track the state of CapitalCamel @@ -77,7 +77,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new Option(value); } } + public string CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new Option(value); } } /// /// Used to track the state of CapitalSnake @@ -90,7 +90,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new Option(value); } } + public string CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new Option(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -103,7 +103,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new Option(value); } } + public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new Option(value); } } /// /// Used to track the state of SmallCamel @@ -116,7 +116,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new Option(value); } } + public string SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new Option(value); } } /// /// Used to track the state of SmallSnake @@ -129,7 +129,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new Option(value); } } + public string SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 9ed61c34f667..b7d785142b83 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -54,7 +54,7 @@ public Cat(Option color = default, Option declawed = default) : b /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new Option(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs index 7db5ba3129ff..f3cc4777b9d3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 632caa963cf7..987fefc9ff9f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -61,7 +61,7 @@ public ChildCat(Option name = default) : base() /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..1e7364181d3d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -53,7 +53,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new Option(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 62ae935e4564..c84d556d4b1c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -54,7 +54,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateTime? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new Option(value); } } + public DateTime? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..d9f800beabd2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -53,7 +53,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 509278540c44..4164f84fe4d6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -54,7 +54,7 @@ public Dog(Option breed = default, Option color = default) : bas /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string Breed { get { return this.BreedOption; } set { this.BreedOption = new Option(value); } } + public string Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index e83b95303760..96904b590ba7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -59,7 +59,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new Option(value); } } + public Shape MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new Option(value); } } /// /// Used to track the state of NullableShape @@ -72,7 +72,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new Option(value); } } + public NullableShape NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new Option(value); } } /// /// Used to track the state of ShapeOrNull @@ -85,7 +85,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new Option(value); } } + public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new Option(value); } } /// /// Used to track the state of Shapes @@ -98,7 +98,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new Option>(value); } } + public List Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index fd871b9c2ef7..13184691ed86 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -68,7 +68,7 @@ public EnumArrays(Option> arrayEnum = default, Op /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new Option>(value); } } + public List ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..93d21794aad5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -54,7 +54,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new Option(value); } } + public string SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 76db6338890f..6e250993445c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -55,7 +55,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets File /// [JsonPropertyName("file")] - public File File { get { return this.FileOption; } set { this.FileOption = new Option(value); } } + public File File { get { return this.FileOption.Value; } set { this.FileOption = new Option(value); } } /// /// Used to track the state of Files @@ -68,7 +68,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets Files /// [JsonPropertyName("files")] - public List Files { get { return this.FilesOption; } set { this.FilesOption = new Option>(value); } } + public List Files { get { return this.FilesOption.Value; } set { this.FilesOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..e8084ae32149 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -53,7 +53,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } set { this.BarOption = new Option(value); } } + public string Bar { get { return this.BarOption.Value; } set { this.BarOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 285e193a7e15..01eef946bfc7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -53,7 +53,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo String { get { return this.StringOption; } set { this.StringOption = new Option(value); } } + public Foo String { get { return this.StringOption.Value; } set { this.StringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index ae0854b6be45..a539802f3140 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -138,7 +138,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream Binary { get { return this.BinaryOption; } set { this.BinaryOption = new Option(value); } } + public System.IO.Stream Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new Option(value); } } /// /// Used to track the state of DateTime @@ -152,7 +152,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new Option(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new Option(value); } } /// /// Used to track the state of Decimal @@ -165,7 +165,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new Option(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new Option(value); } } /// /// Used to track the state of Double @@ -178,7 +178,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new Option(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -191,7 +191,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new Option(value); } } + public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new Option(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -204,7 +204,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new Option(value); } } + public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new Option(value); } } /// /// Used to track the state of Float @@ -217,7 +217,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new Option(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new Option(value); } } /// /// Used to track the state of Int32 @@ -230,7 +230,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new Option(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new Option(value); } } /// /// Used to track the state of Int32Range @@ -243,7 +243,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new Option(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new Option(value); } } /// /// Used to track the state of Int64 @@ -256,7 +256,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new Option(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new Option(value); } } /// /// Used to track the state of Int64Negative @@ -269,7 +269,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new Option(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new Option(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -282,7 +282,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new Option(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new Option(value); } } /// /// Used to track the state of Int64Positive @@ -295,7 +295,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new Option(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new Option(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -308,7 +308,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new Option(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new Option(value); } } /// /// Used to track the state of Integer @@ -321,7 +321,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new Option(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new Option(value); } } /// /// Used to track the state of PatternWithBackslash @@ -335,7 +335,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new Option(value); } } + public string PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new Option(value); } } /// /// Used to track the state of PatternWithDigits @@ -349,7 +349,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new Option(value); } } + public string PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new Option(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -363,7 +363,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new Option(value); } } + public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new Option(value); } } /// /// Used to track the state of String @@ -376,7 +376,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string String { get { return this.StringOption; } set { this.StringOption = new Option(value); } } + public string String { get { return this.StringOption.Value; } set { this.StringOption = new Option(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -389,7 +389,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new Option(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new Option(value); } } /// /// Used to track the state of UnsignedInteger @@ -402,7 +402,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new Option(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new Option(value); } } /// /// Used to track the state of UnsignedLong @@ -415,7 +415,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new Option(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new Option(value); } } /// /// Used to track the state of Uuid @@ -429,7 +429,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..05d7005b3c4b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -76,7 +76,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index b4298f04b511..bb202258e403 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -80,7 +80,7 @@ public GmFruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..64130e7cfbf5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -55,7 +55,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -68,7 +68,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string Foo { get { return this.FooOption; } } + public string Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..641c18e39ec0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -53,7 +53,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new Option(value); } } + public string NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..f3fac3c39845 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -53,7 +53,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new Option(value); } } + public string Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..b34577b8a881 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -55,7 +55,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new Option(value); } } + public string EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new Option(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -68,7 +68,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new Option(value); } } + public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 7331b5d3f61b..c3cb174a13cd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -59,7 +59,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("direct_map")] - public Dictionary DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new Option>(value); } } + public Dictionary DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new Option>(value); } } /// /// Used to track the state of IndirectMap @@ -72,7 +72,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("indirect_map")] - public Dictionary IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new Option>(value); } } + public Dictionary IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new Option>(value); } } /// /// Used to track the state of MapMapOfString @@ -85,7 +85,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("map_map_of_string")] - public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new Option>>(value); } } + public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new Option>>(value); } } /// /// Used to track the state of MapOfEnumString @@ -98,7 +98,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("map_of_enum_string")] - public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new Option>(value); } } + public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 3a559f831196..10106b8319fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -53,7 +53,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new Option(value); } } + public MixedAnyOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 5e238e0f7b30..c6b1b0d35eb2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -53,7 +53,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new Option(value); } } + public MixedOneOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index e0462d7c8a25..fef0ec49b984 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -59,7 +59,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new Option(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new Option(value); } } /// /// Used to track the state of Map @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary Map { get { return this.MapOption; } set { this.MapOption = new Option>(value); } } + public Dictionary Map { get { return this.MapOption.Value; } set { this.MapOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Used to track the state of UuidWithPattern @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new Option(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..3f2b6cb145f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -53,7 +53,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public string Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index 882bf7ccda47..30dd8c4a1186 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -55,7 +55,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Class /// [JsonPropertyName("class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new Option(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new Option(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..ddc0cae59e93 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -53,7 +53,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new Option(value); } } + public string VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs index dba5779e547d..d8a8dca64fc4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -65,7 +65,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Property /// [JsonPropertyName("property")] - public string Property { get { return this.PropertyOption; } set { this.PropertyOption = new Option(value); } } + public string Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new Option(value); } } /// /// Used to track the state of SnakeCase @@ -78,7 +78,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -91,7 +91,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 397f12bffbb0..924e9bc89069 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -75,7 +75,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new Option>(value); } } + public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new Option>(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -88,7 +88,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new Option>(value); } } + public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new Option>(value); } } /// /// Used to track the state of ArrayNullableProp @@ -101,7 +101,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new Option>(value); } } + public List ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new Option>(value); } } /// /// Used to track the state of BooleanProp @@ -114,7 +114,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new Option(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new Option(value); } } /// /// Used to track the state of DateProp @@ -127,7 +127,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateTime? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new Option(value); } } + public DateTime? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new Option(value); } } /// /// Used to track the state of DatetimeProp @@ -140,7 +140,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new Option(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new Option(value); } } /// /// Used to track the state of IntegerProp @@ -153,7 +153,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new Option(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new Option(value); } } /// /// Used to track the state of NumberProp @@ -166,7 +166,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new Option(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new Option(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -179,7 +179,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new Option>(value); } } + public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new Option>(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -192,7 +192,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new Option>(value); } } + public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new Option>(value); } } /// /// Used to track the state of ObjectNullableProp @@ -205,7 +205,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new Option>(value); } } + public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new Option>(value); } } /// /// Used to track the state of StringProp @@ -218,7 +218,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new Option(value); } } + public string StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 6efbeef44dcd..a3a4b6e125de 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -54,7 +54,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 55ab016ac3db..061bb350661d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new Option(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 541a621953aa..867ab1d74025 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List Bars { get { return this.BarsOption; } set { this.BarsOption = new Option>(value); } } + public List Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new Option>(value); } } /// /// Used to track the state of DeprecatedRef @@ -74,7 +74,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new Option(value); } } + public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new Option(value); } } /// /// Used to track the state of Id @@ -88,7 +88,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Uuid @@ -101,7 +101,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs index ce2005d89016..ac05d2a97091 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -76,7 +76,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new Option(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new Option(value); } } /// /// Used to track the state of Id @@ -89,7 +89,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of PetId @@ -102,7 +102,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new Option(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new Option(value); } } /// /// Used to track the state of Quantity @@ -115,7 +115,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new Option(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new Option(value); } } /// /// Used to track the state of ShipDate @@ -129,7 +129,7 @@ public Order(Option complete = default, Option id = default, Optio /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new Option(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index d366c24ec24c..d02f8c96ae2f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -57,7 +57,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new Option(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new Option(value); } } /// /// Used to track the state of MyNumber @@ -70,7 +70,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new Option(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new Option(value); } } /// /// Used to track the state of MyString @@ -83,7 +83,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string MyString { get { return this.MyStringOption; } set { this.MyStringOption = new Option(value); } } + public string MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs index 0717f1499aaa..a951bca2b299 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -89,7 +89,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category Category { get { return this.CategoryOption; } set { this.CategoryOption = new Option(value); } } + public Category Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new Option(value); } } /// /// Used to track the state of Id @@ -102,7 +102,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Tags @@ -115,7 +115,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List Tags { get { return this.TagsOption; } set { this.TagsOption = new Option>(value); } } + public List Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..3134d1d7c1d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -55,7 +55,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -68,7 +68,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string Baz { get { return this.BazOption; } set { this.BazOption = new Option(value); } } + public string Baz { get { return this.BazOption.Value; } set { this.BazOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 85bd06ae9d1d..6f08aff08b92 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -334,7 +334,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateTime? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new Option(value); } } + public DateTime? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -347,7 +347,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new Option(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -360,7 +360,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateTime? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new Option(value); } } + public DateTime? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -373,7 +373,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new Option(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -386,7 +386,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new Option>(value); } } + public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new Option>(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -399,7 +399,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new Option(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -412,7 +412,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new Option(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -425,7 +425,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new Option(value); } } + public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -439,7 +439,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new Option(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -452,7 +452,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new Option>(value); } } + public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new Option>(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -465,7 +465,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new Option(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -478,7 +478,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new Option(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -491,7 +491,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new Option(value); } } + public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -505,7 +505,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new Option(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new Option(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..bc7b3d97d94c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -58,7 +58,7 @@ public Result(Option code = default, Option> /// /// Result code [JsonPropertyName("code")] - public string Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public string Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Data @@ -72,7 +72,7 @@ public Result(Option code = default, Option> /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -86,7 +86,7 @@ public Result(Option code = default, Option> /// /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs index 81211e0ce4ac..6f5a0a005d23 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new Option(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new Option(value); } } /// /// Used to track the state of Unsafe @@ -84,7 +84,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new Option(value); } } + public string Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 5b7a88bd659a..23e1b6c722f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -55,7 +55,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole Role { get { return this.RoleOption; } set { this.RoleOption = new Option(value); } } + public RolesReportsHashRole Role { get { return this.RoleOption.Value; } set { this.RoleOption = new Option(value); } } /// /// Used to track the state of RoleUuid @@ -68,7 +68,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new Option(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..e7822a579340 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -53,7 +53,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index f30e2a11997b..3ca1bd1badbf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -55,7 +55,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new Option(value); } } + public string VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new Option(value); } } /// /// Used to track the state of SpecialPropertyName @@ -68,7 +68,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new Option(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 6b9d5082405b..fa2a11bd1212 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -55,7 +55,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..f7f17f6aab68 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string Value { get { return this.ValueOption; } set { this.ValueOption = new Option(value); } } + public string Value { get { return this.ValueOption.Value; } set { this.ValueOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 7328caf1ead5..7426a4594e48 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new Option>(value); } } + public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..efd567b280c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new Option(value); } } + public string SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 32249c7516a1..421bbc33ec1a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -71,7 +71,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs index a85e556bb9e8..7807d2b09a17 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -76,7 +76,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new Option(value); } } + public Object AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new Option(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -90,7 +90,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new Option(value); } } + public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new Option(value); } } /// /// Used to track the state of Email @@ -103,7 +103,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Email /// [JsonPropertyName("email")] - public string Email { get { return this.EmailOption; } set { this.EmailOption = new Option(value); } } + public string Email { get { return this.EmailOption.Value; } set { this.EmailOption = new Option(value); } } /// /// Used to track the state of FirstName @@ -116,7 +116,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new Option(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new Option(value); } } /// /// Used to track the state of Id @@ -129,7 +129,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of LastName @@ -142,7 +142,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new Option(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new Option(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -156,7 +156,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new Option(value); } } + public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new Option(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -170,7 +170,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new Option(value); } } + public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new Option(value); } } /// /// Used to track the state of Password @@ -183,7 +183,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Password /// [JsonPropertyName("password")] - public string Password { get { return this.PasswordOption; } set { this.PasswordOption = new Option(value); } } + public string Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new Option(value); } } /// /// Used to track the state of Phone @@ -196,7 +196,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string Phone { get { return this.PhoneOption; } set { this.PhoneOption = new Option(value); } } + public string Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new Option(value); } } /// /// Used to track the state of UserStatus @@ -210,7 +210,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new Option(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new Option(value); } } /// /// Used to track the state of Username @@ -223,7 +223,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Username /// [JsonPropertyName("username")] - public string Username { get { return this.UsernameOption; } set { this.UsernameOption = new Option(value); } } + public string Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 56da6f6db3c6..21e58212ba7b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -63,7 +63,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new Option(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new Option(value); } } /// /// Used to track the state of HasTeeth @@ -76,7 +76,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new Option(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs index 7867e6645419..5705cce6dee2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -53,7 +53,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string Kind { get { return this.KindOption; } set { this.KindOption = new Option(value); } } + public string Kind { get { return this.KindOption.Value; } set { this.KindOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs index edf36db227d5..a9221933cd06 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new Option(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index 60c5a493515e..e34e26023978 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -93,7 +93,7 @@ public Fruit(Orange orange, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Orange.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Orange.cs index 8c864071b6df..b957cff8de0e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Orange.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Orange.cs @@ -53,7 +53,7 @@ public Orange(Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new Option(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 4562d4ceb728..c6919ac37cf6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -53,7 +53,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new Option>>(value); } } + public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new Option>>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index db832150ed96..78cbd0b330d8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new Option(value); } } + public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new Option(value); } } /// /// Used to track the state of Prop2 @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new Option(value); } } + public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index f70c7a4c5fc3..7b1f22a3f695 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new Option(value); } } + public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new Option(value); } } /// /// Used to track the state of EmptyMap @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new Option(value); } } + public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new Option(value); } } /// /// Used to track the state of MapOfMapProperty @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new Option>>(value); } } + public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new Option>>(value); } } /// /// Used to track the state of MapProperty @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new Option>(value); } } + public Dictionary MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new Option>(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new Option(value); } } + public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new Option(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new Option(value); } } + public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new Option(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new Option>(value); } } + public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new Option>(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new Option>(value); } } + public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs index f172cd70bc53..ce38f4cef730 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -61,7 +61,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 74dbae3c6ba3..e6fdc4fb07f1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -57,7 +57,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Message @@ -70,7 +70,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Message /// [JsonPropertyName("message")] - public string Message { get { return this.MessageOption; } set { this.MessageOption = new Option(value); } } + public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new Option(value); } } /// /// Used to track the state of Type @@ -83,7 +83,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Type /// [JsonPropertyName("type")] - public string Type { get { return this.TypeOption; } set { this.TypeOption = new Option(value); } } + public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..990bd8d17acb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -57,7 +57,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new Option(value); } } + public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new Option(value); } } /// /// Used to track the state of Cultivar @@ -70,7 +70,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new Option(value); } } + public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new Option(value); } } /// /// Used to track the state of Origin @@ -83,7 +83,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string Origin { get { return this.OriginOption; } set { this.OriginOption = new Option(value); } } + public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 1a839ecb01b6..14a48152dda2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new Option(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cea3f5a4ba50..2c01bb986fc9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new Option>>(value); } } + public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new Option>>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 47bac6ba97c6..0ba7a1e496b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new Option>(value); } } + public List ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 1992bf9e932d..81e3c7c83f82 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -57,7 +57,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new Option>>(value); } } + public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new Option>>(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -70,7 +70,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new Option>>(value); } } + public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new Option>>(value); } } /// /// Used to track the state of ArrayOfString @@ -83,7 +83,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new Option>(value); } } + public List ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d7b7e8188f75..90966bbb326e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new Option(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 8aa8da44caea..ec58edf3bfb9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -61,7 +61,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new Option(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..6f593640eb2d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -64,7 +64,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new Option(value); } } + public string ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new Option(value); } } /// /// Used to track the state of CapitalCamel @@ -77,7 +77,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new Option(value); } } + public string CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new Option(value); } } /// /// Used to track the state of CapitalSnake @@ -90,7 +90,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new Option(value); } } + public string CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new Option(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -103,7 +103,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new Option(value); } } + public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new Option(value); } } /// /// Used to track the state of SmallCamel @@ -116,7 +116,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new Option(value); } } + public string SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new Option(value); } } /// /// Used to track the state of SmallSnake @@ -129,7 +129,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new Option(value); } } + public string SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 9ed61c34f667..b7d785142b83 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -54,7 +54,7 @@ public Cat(Option color = default, Option declawed = default) : b /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new Option(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs index 7db5ba3129ff..f3cc4777b9d3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index cce039237aea..147a228c8950 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -106,7 +106,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..1e7364181d3d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -53,7 +53,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new Option(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 62ae935e4564..c84d556d4b1c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -54,7 +54,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateTime? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new Option(value); } } + public DateTime? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..d9f800beabd2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -53,7 +53,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 509278540c44..4164f84fe4d6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -54,7 +54,7 @@ public Dog(Option breed = default, Option color = default) : bas /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string Breed { get { return this.BreedOption; } set { this.BreedOption = new Option(value); } } + public string Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index e83b95303760..96904b590ba7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -59,7 +59,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new Option(value); } } + public Shape MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new Option(value); } } /// /// Used to track the state of NullableShape @@ -72,7 +72,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new Option(value); } } + public NullableShape NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new Option(value); } } /// /// Used to track the state of ShapeOrNull @@ -85,7 +85,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new Option(value); } } + public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new Option(value); } } /// /// Used to track the state of Shapes @@ -98,7 +98,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new Option>(value); } } + public List Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index e820832b3e88..e285c7523d4c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -200,7 +200,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new Option>(value); } } + public List ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..93d21794aad5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -54,7 +54,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new Option(value); } } + public string SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 76db6338890f..6e250993445c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -55,7 +55,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets File /// [JsonPropertyName("file")] - public File File { get { return this.FileOption; } set { this.FileOption = new Option(value); } } + public File File { get { return this.FileOption.Value; } set { this.FileOption = new Option(value); } } /// /// Used to track the state of Files @@ -68,7 +68,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets Files /// [JsonPropertyName("files")] - public List Files { get { return this.FilesOption; } set { this.FilesOption = new Option>(value); } } + public List Files { get { return this.FilesOption.Value; } set { this.FilesOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..e8084ae32149 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -53,7 +53,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } set { this.BarOption = new Option(value); } } + public string Bar { get { return this.BarOption.Value; } set { this.BarOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 285e193a7e15..01eef946bfc7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -53,7 +53,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo String { get { return this.StringOption; } set { this.StringOption = new Option(value); } } + public Foo String { get { return this.StringOption.Value; } set { this.StringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index ae0854b6be45..a539802f3140 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -138,7 +138,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream Binary { get { return this.BinaryOption; } set { this.BinaryOption = new Option(value); } } + public System.IO.Stream Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new Option(value); } } /// /// Used to track the state of DateTime @@ -152,7 +152,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new Option(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new Option(value); } } /// /// Used to track the state of Decimal @@ -165,7 +165,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new Option(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new Option(value); } } /// /// Used to track the state of Double @@ -178,7 +178,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new Option(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -191,7 +191,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new Option(value); } } + public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new Option(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -204,7 +204,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new Option(value); } } + public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new Option(value); } } /// /// Used to track the state of Float @@ -217,7 +217,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new Option(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new Option(value); } } /// /// Used to track the state of Int32 @@ -230,7 +230,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new Option(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new Option(value); } } /// /// Used to track the state of Int32Range @@ -243,7 +243,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new Option(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new Option(value); } } /// /// Used to track the state of Int64 @@ -256,7 +256,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new Option(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new Option(value); } } /// /// Used to track the state of Int64Negative @@ -269,7 +269,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new Option(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new Option(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -282,7 +282,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new Option(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new Option(value); } } /// /// Used to track the state of Int64Positive @@ -295,7 +295,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new Option(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new Option(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -308,7 +308,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new Option(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new Option(value); } } /// /// Used to track the state of Integer @@ -321,7 +321,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new Option(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new Option(value); } } /// /// Used to track the state of PatternWithBackslash @@ -335,7 +335,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new Option(value); } } + public string PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new Option(value); } } /// /// Used to track the state of PatternWithDigits @@ -349,7 +349,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new Option(value); } } + public string PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new Option(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -363,7 +363,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new Option(value); } } + public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new Option(value); } } /// /// Used to track the state of String @@ -376,7 +376,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string String { get { return this.StringOption; } set { this.StringOption = new Option(value); } } + public string String { get { return this.StringOption.Value; } set { this.StringOption = new Option(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -389,7 +389,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new Option(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new Option(value); } } /// /// Used to track the state of UnsignedInteger @@ -402,7 +402,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new Option(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new Option(value); } } /// /// Used to track the state of UnsignedLong @@ -415,7 +415,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new Option(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new Option(value); } } /// /// Used to track the state of Uuid @@ -429,7 +429,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..05d7005b3c4b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -76,7 +76,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index b4298f04b511..bb202258e403 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -80,7 +80,7 @@ public GmFruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..64130e7cfbf5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -55,7 +55,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -68,7 +68,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string Foo { get { return this.FooOption; } } + public string Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..641c18e39ec0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -53,7 +53,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new Option(value); } } + public string NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..f3fac3c39845 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -53,7 +53,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new Option(value); } } + public string Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..b34577b8a881 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -55,7 +55,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new Option(value); } } + public string EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new Option(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -68,7 +68,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new Option(value); } } + public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 0af46ec34e41..6f322da6a9bf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -125,7 +125,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new Option>(value); } } + public Dictionary DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new Option>(value); } } /// /// Used to track the state of IndirectMap @@ -138,7 +138,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new Option>(value); } } + public Dictionary IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new Option>(value); } } /// /// Used to track the state of MapMapOfString @@ -151,7 +151,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new Option>>(value); } } + public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new Option>>(value); } } /// /// Used to track the state of MapOfEnumString @@ -164,7 +164,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new Option>(value); } } + public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 3a559f831196..10106b8319fc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -53,7 +53,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new Option(value); } } + public MixedAnyOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 5e238e0f7b30..c6b1b0d35eb2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -53,7 +53,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new Option(value); } } + public MixedOneOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index e0462d7c8a25..fef0ec49b984 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -59,7 +59,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new Option(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new Option(value); } } /// /// Used to track the state of Map @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary Map { get { return this.MapOption; } set { this.MapOption = new Option>(value); } } + public Dictionary Map { get { return this.MapOption.Value; } set { this.MapOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Used to track the state of UuidWithPattern @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new Option(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..3f2b6cb145f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -53,7 +53,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public string Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 882bf7ccda47..30dd8c4a1186 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -55,7 +55,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Class /// [JsonPropertyName("class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new Option(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new Option(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..ddc0cae59e93 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -53,7 +53,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new Option(value); } } + public string VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs index dba5779e547d..d8a8dca64fc4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -65,7 +65,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Property /// [JsonPropertyName("property")] - public string Property { get { return this.PropertyOption; } set { this.PropertyOption = new Option(value); } } + public string Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new Option(value); } } /// /// Used to track the state of SnakeCase @@ -78,7 +78,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -91,7 +91,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 397f12bffbb0..924e9bc89069 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -75,7 +75,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new Option>(value); } } + public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new Option>(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -88,7 +88,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new Option>(value); } } + public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new Option>(value); } } /// /// Used to track the state of ArrayNullableProp @@ -101,7 +101,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new Option>(value); } } + public List ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new Option>(value); } } /// /// Used to track the state of BooleanProp @@ -114,7 +114,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new Option(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new Option(value); } } /// /// Used to track the state of DateProp @@ -127,7 +127,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateTime? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new Option(value); } } + public DateTime? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new Option(value); } } /// /// Used to track the state of DatetimeProp @@ -140,7 +140,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new Option(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new Option(value); } } /// /// Used to track the state of IntegerProp @@ -153,7 +153,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new Option(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new Option(value); } } /// /// Used to track the state of NumberProp @@ -166,7 +166,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new Option(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new Option(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -179,7 +179,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new Option>(value); } } + public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new Option>(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -192,7 +192,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new Option>(value); } } + public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new Option>(value); } } /// /// Used to track the state of ObjectNullableProp @@ -205,7 +205,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new Option>(value); } } + public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new Option>(value); } } /// /// Used to track the state of StringProp @@ -218,7 +218,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new Option(value); } } + public string StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 6efbeef44dcd..a3a4b6e125de 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -54,7 +54,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 55ab016ac3db..061bb350661d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new Option(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 541a621953aa..867ab1d74025 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List Bars { get { return this.BarsOption; } set { this.BarsOption = new Option>(value); } } + public List Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new Option>(value); } } /// /// Used to track the state of DeprecatedRef @@ -74,7 +74,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new Option(value); } } + public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new Option(value); } } /// /// Used to track the state of Id @@ -88,7 +88,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Uuid @@ -101,7 +101,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs index c61a5c5527d9..4f5761ccd789 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -158,7 +158,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new Option(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new Option(value); } } /// /// Used to track the state of Id @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of PetId @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new Option(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new Option(value); } } /// /// Used to track the state of Quantity @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new Option(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new Option(value); } } /// /// Used to track the state of ShipDate @@ -211,7 +211,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new Option(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index d366c24ec24c..d02f8c96ae2f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -57,7 +57,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new Option(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new Option(value); } } /// /// Used to track the state of MyNumber @@ -70,7 +70,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new Option(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new Option(value); } } /// /// Used to track the state of MyString @@ -83,7 +83,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string MyString { get { return this.MyStringOption; } set { this.MyStringOption = new Option(value); } } + public string MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index d86c3d5f64e5..788584e35833 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category Category { get { return this.CategoryOption; } set { this.CategoryOption = new Option(value); } } + public Category Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new Option(value); } } /// /// Used to track the state of Id @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Tags @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List Tags { get { return this.TagsOption; } set { this.TagsOption = new Option>(value); } } + public List Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..3134d1d7c1d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -55,7 +55,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -68,7 +68,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string Baz { get { return this.BazOption; } set { this.BazOption = new Option(value); } } + public string Baz { get { return this.BazOption.Value; } set { this.BazOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 1052c98ee925..8354a7779b79 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1412,7 +1412,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateTime? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new Option(value); } } + public DateTime? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1425,7 +1425,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new Option(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1438,7 +1438,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateTime? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new Option(value); } } + public DateTime? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1451,7 +1451,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new Option(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1464,7 +1464,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new Option>(value); } } + public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new Option>(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1477,7 +1477,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new Option(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1490,7 +1490,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new Option(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1503,7 +1503,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new Option(value); } } + public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1517,7 +1517,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new Option(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1530,7 +1530,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new Option>(value); } } + public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new Option>(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1543,7 +1543,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new Option(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1556,7 +1556,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new Option(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1569,7 +1569,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new Option(value); } } + public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1583,7 +1583,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new Option(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new Option(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..bc7b3d97d94c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -58,7 +58,7 @@ public Result(Option code = default, Option> /// /// Result code [JsonPropertyName("code")] - public string Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public string Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Data @@ -72,7 +72,7 @@ public Result(Option code = default, Option> /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -86,7 +86,7 @@ public Result(Option code = default, Option> /// /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs index 81211e0ce4ac..6f5a0a005d23 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new Option(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new Option(value); } } /// /// Used to track the state of Unsafe @@ -84,7 +84,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new Option(value); } } + public string Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 5b7a88bd659a..23e1b6c722f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -55,7 +55,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole Role { get { return this.RoleOption; } set { this.RoleOption = new Option(value); } } + public RolesReportsHashRole Role { get { return this.RoleOption.Value; } set { this.RoleOption = new Option(value); } } /// /// Used to track the state of RoleUuid @@ -68,7 +68,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new Option(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..e7822a579340 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -53,7 +53,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index f30e2a11997b..3ca1bd1badbf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -55,7 +55,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new Option(value); } } + public string VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new Option(value); } } /// /// Used to track the state of SpecialPropertyName @@ -68,7 +68,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new Option(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 6b9d5082405b..fa2a11bd1212 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -55,7 +55,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..f7f17f6aab68 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string Value { get { return this.ValueOption; } set { this.ValueOption = new Option(value); } } + public string Value { get { return this.ValueOption.Value; } set { this.ValueOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 7328caf1ead5..7426a4594e48 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new Option>(value); } } + public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..efd567b280c3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new Option(value); } } + public string SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 32249c7516a1..421bbc33ec1a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -71,7 +71,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs index a85e556bb9e8..7807d2b09a17 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -76,7 +76,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new Option(value); } } + public Object AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new Option(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -90,7 +90,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new Option(value); } } + public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new Option(value); } } /// /// Used to track the state of Email @@ -103,7 +103,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Email /// [JsonPropertyName("email")] - public string Email { get { return this.EmailOption; } set { this.EmailOption = new Option(value); } } + public string Email { get { return this.EmailOption.Value; } set { this.EmailOption = new Option(value); } } /// /// Used to track the state of FirstName @@ -116,7 +116,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new Option(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new Option(value); } } /// /// Used to track the state of Id @@ -129,7 +129,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of LastName @@ -142,7 +142,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new Option(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new Option(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -156,7 +156,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new Option(value); } } + public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new Option(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -170,7 +170,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new Option(value); } } + public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new Option(value); } } /// /// Used to track the state of Password @@ -183,7 +183,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Password /// [JsonPropertyName("password")] - public string Password { get { return this.PasswordOption; } set { this.PasswordOption = new Option(value); } } + public string Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new Option(value); } } /// /// Used to track the state of Phone @@ -196,7 +196,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string Phone { get { return this.PhoneOption; } set { this.PhoneOption = new Option(value); } } + public string Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new Option(value); } } /// /// Used to track the state of UserStatus @@ -210,7 +210,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new Option(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new Option(value); } } /// /// Used to track the state of Username @@ -223,7 +223,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Username /// [JsonPropertyName("username")] - public string Username { get { return this.UsernameOption; } set { this.UsernameOption = new Option(value); } } + public string Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 56da6f6db3c6..21e58212ba7b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -63,7 +63,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new Option(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new Option(value); } } /// /// Used to track the state of HasTeeth @@ -76,7 +76,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new Option(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 1858ede45ba0..f2aabb5ad4e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -54,7 +54,7 @@ public NowGet200Response(Option now = default, Option toda /// Gets or Sets Now /// [JsonPropertyName("now")] - public DateTime? Now { get { return this.NowOption; } set { this.NowOption = new Option(value); } } + public DateTime? Now { get { return this.NowOption.Value; } set { this.NowOption = new Option(value); } } /// /// Used to track the state of Today @@ -67,7 +67,7 @@ public NowGet200Response(Option now = default, Option toda /// Gets or Sets Today /// [JsonPropertyName("today")] - public DateTime? Today { get { return this.TodayOption; } set { this.TodayOption = new Option(value); } } + public DateTime? Today { get { return this.TodayOption.Value; } set { this.TodayOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index e5c016d2627d..a3d002d6a641 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -57,7 +57,7 @@ public Adult(Option?> children = default, Option firstName /// Gets or Sets Children /// [JsonPropertyName("children")] - public List? Children { get { return this.ChildrenOption; } set { this.ChildrenOption = new(value); } } + public List? Children { get { return this.ChildrenOption.Value; } set { this.ChildrenOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs index 94cfd4f4aa62..59f69018ba73 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -59,7 +59,7 @@ public Child(Option age = default, Option boosterSeat = default, Op /// Gets or Sets Age /// [JsonPropertyName("age")] - public int? Age { get { return this.AgeOption; } set { this.AgeOption = new(value); } } + public int? Age { get { return this.AgeOption.Value; } set { this.AgeOption = new(value); } } /// /// Used to track the state of BoosterSeat @@ -72,7 +72,7 @@ public Child(Option age = default, Option boosterSeat = default, Op /// Gets or Sets BoosterSeat /// [JsonPropertyName("boosterSeat")] - public bool? BoosterSeat { get { return this.BoosterSeatOption; } set { this.BoosterSeatOption = new(value); } } + public bool? BoosterSeat { get { return this.BoosterSeatOption.Value; } set { this.BoosterSeatOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs index 6da989d4e3a7..d9492d554adc 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -58,7 +58,7 @@ public Person(Option firstName = default, Option lastName = de /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string? FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of LastName @@ -71,7 +71,7 @@ public Person(Option firstName = default, Option lastName = de /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string? LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string? LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..48c25acf6a06 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -55,7 +55,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string? Kind { get { return this.KindOption; } set { this.KindOption = new(value); } } + public string? Kind { get { return this.KindOption.Value; } set { this.KindOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 170ad4b54dac..cbb9288ca436 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -55,7 +55,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 90ae7568d3fc..da640dfcf94b 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -82,7 +82,7 @@ public Fruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 8531edebf731..9bd7762033f4 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -54,7 +54,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string? Kind { get { return this.KindOption; } set { this.KindOption = new(value); } } + public string? Kind { get { return this.KindOption.Value; } set { this.KindOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 93897bf0b56a..0d586d0b1139 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -54,7 +54,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index 8a99245775f6..3d6c67bdb254 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -81,7 +81,7 @@ public Fruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs index aabac63ce195..f8fa083b7ad4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -53,7 +53,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 1da19734a2d3..0b12f4726b49 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 5fa49b8033da..61958ab6c36c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 5a0b22326df1..75a681a9d1ff 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -61,7 +61,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 78ce72e42861..e4e387cd5b74 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -57,7 +57,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -70,7 +70,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Message /// [JsonPropertyName("message")] - public string Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -83,7 +83,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Type /// [JsonPropertyName("type")] - public string Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..4254f9e7ec10 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -57,7 +57,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -70,7 +70,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -83,7 +83,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index f9d8cb0178a6..6a91a5eb30af 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 6bd3d13aec0c..559b48410c03 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c1fc28e5e87e..5b12bfe3aba2 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 24f40349480e..3c2d6f6454fa 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -57,7 +57,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -70,7 +70,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -83,7 +83,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs index e0176c9c103d..c6f348ce52b0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index dd211ecc28ae..0df184a89485 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -61,7 +61,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..6ea9c87adf9e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -64,7 +64,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -77,7 +77,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -90,7 +90,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -103,7 +103,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -116,7 +116,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -129,7 +129,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 6b4b1efcac37..212f9d249e7c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -54,7 +54,7 @@ public Cat(Option color = default, Option declawed = default) : b /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs index 406cff32fdf5..168034e1f436 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 99c5b315aa00..0dceb943de13 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -61,7 +61,7 @@ public ChildCat(Option name = default) : base() /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..70163597dbf8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -53,7 +53,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 921b10388991..86961f05e8d2 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -54,7 +54,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..83c6ef134a3e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -53,7 +53,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index a4879a78dc05..f746e6816595 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -54,7 +54,7 @@ public Dog(Option breed = default, Option color = default) : bas /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index 50db62858883..b6d426437c95 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -59,7 +59,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -72,7 +72,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -85,7 +85,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -98,7 +98,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 7fe4cb3c8afa..ef41971722d9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -68,7 +68,7 @@ public EnumArrays(Option> arrayEnum = default, Op /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..45b84933c9e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -54,7 +54,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 601c8e998661..232f7bc3d1e1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -55,7 +55,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets File /// [JsonPropertyName("file")] - public File File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -68,7 +68,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets Files /// [JsonPropertyName("files")] - public List Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..28e54b60cfa8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -53,7 +53,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index db1b090fa3e9..6fad70dc547f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -53,7 +53,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 847567dd4b69..d9baf612f043 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -138,7 +138,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -152,7 +152,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -165,7 +165,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -178,7 +178,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -191,7 +191,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -204,7 +204,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -217,7 +217,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -230,7 +230,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -243,7 +243,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -256,7 +256,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -269,7 +269,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -282,7 +282,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -295,7 +295,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -308,7 +308,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -321,7 +321,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -335,7 +335,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -349,7 +349,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -363,7 +363,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -376,7 +376,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -389,7 +389,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -402,7 +402,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -415,7 +415,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -429,7 +429,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..f27078b62f5e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -76,7 +76,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 64b6d880bdc0..a9cef25c1666 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -80,7 +80,7 @@ public GmFruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..64130e7cfbf5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -55,7 +55,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -68,7 +68,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string Foo { get { return this.FooOption; } } + public string Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..86b87fe73c35 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -53,7 +53,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..8475f90c87f5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -53,7 +53,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..7cad3e88d131 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -55,7 +55,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -68,7 +68,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index d2f562dc62c7..c8b2968651be 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -59,7 +59,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("direct_map")] - public Dictionary DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -72,7 +72,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("indirect_map")] - public Dictionary IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -85,7 +85,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("map_map_of_string")] - public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -98,7 +98,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("map_of_enum_string")] - public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 88c96f83b3a1..7c144cb702ba 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -53,7 +53,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 6049305ccc01..5226b7994708 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -53,7 +53,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2b9dab1b761b..81cfce490724 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -59,7 +59,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..e954846b86da 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -53,7 +53,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index d74cab9a645c..02b3510ef01b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -55,7 +55,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Class /// [JsonPropertyName("class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..222a9afecd08 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -53,7 +53,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs index 1ced7be525f5..a766cb5f5576 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -65,7 +65,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Property /// [JsonPropertyName("property")] - public string Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -78,7 +78,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -91,7 +91,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 47b7b40607a7..dc4d250b4e95 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -75,7 +75,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -88,7 +88,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -101,7 +101,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -114,7 +114,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -127,7 +127,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -140,7 +140,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -153,7 +153,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -166,7 +166,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -179,7 +179,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -192,7 +192,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -205,7 +205,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -218,7 +218,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index bbc9459f436f..e2f90ceafa93 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -54,7 +54,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 55e6045dc21e..f1bb8e875596 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index dc0e8da10833..5967526d3a67 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -74,7 +74,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -88,7 +88,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -101,7 +101,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs index 4c7bea23ae40..fe71d4c680a8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -76,7 +76,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -89,7 +89,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -102,7 +102,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -115,7 +115,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -129,7 +129,7 @@ public Order(Option complete = default, Option id = default, Optio /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index abcca493d7d2..f42d3fbb9613 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -57,7 +57,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -70,7 +70,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -83,7 +83,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs index c505ad177fb4..49adaeb01ff6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -89,7 +89,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -102,7 +102,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -115,7 +115,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..0b202abf3422 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -55,7 +55,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -68,7 +68,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 76ab94c6f171..4349b036fca6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -334,7 +334,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -347,7 +347,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -360,7 +360,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -373,7 +373,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -386,7 +386,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -399,7 +399,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -412,7 +412,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -425,7 +425,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -439,7 +439,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -452,7 +452,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -465,7 +465,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -478,7 +478,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -491,7 +491,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -505,7 +505,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..c1b0973340c4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -58,7 +58,7 @@ public Result(Option code = default, Option> /// /// Result code [JsonPropertyName("code")] - public string Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -72,7 +72,7 @@ public Result(Option code = default, Option> /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -86,7 +86,7 @@ public Result(Option code = default, Option> /// /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs index fcf8e483d79e..ba0d3c5ab75f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -84,7 +84,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index b9a4a5f9c95c..b548944c5e94 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -55,7 +55,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -68,7 +68,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..a33665a84ebe 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -53,7 +53,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 25d27479cb9b..b11aa47949e6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -55,7 +55,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -68,7 +68,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 3ebb619596ee..6a1ef05805ec 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -55,7 +55,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..9db4bc3014cb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 54cbe89d95af..29ada204f1d0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..00d15308cdfc 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 512daa77d491..1886c2e51f28 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -71,7 +71,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs index 62f5b0736d68..3684f6575329 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -76,7 +76,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -90,7 +90,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -103,7 +103,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Email /// [JsonPropertyName("email")] - public string Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -116,7 +116,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -129,7 +129,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -142,7 +142,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -156,7 +156,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -170,7 +170,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -183,7 +183,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Password /// [JsonPropertyName("password")] - public string Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -196,7 +196,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -210,7 +210,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -223,7 +223,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Username /// [JsonPropertyName("username")] - public string Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 012c650e4f1c..0265accbb89f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -63,7 +63,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -76,7 +76,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs index fd37515f54a2..2c94c8faec8c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs @@ -55,7 +55,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 80ab5ec04b8d..81a3d0546dd1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -57,7 +57,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string? Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string? Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -70,7 +70,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object? Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object? Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index de2cf7f84849..9c500ae78db5 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -69,7 +69,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object? Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object? Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -83,7 +83,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object? EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object? EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -96,7 +96,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -109,7 +109,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary? MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary? MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -122,7 +122,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -135,7 +135,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -148,7 +148,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -161,7 +161,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs index 1e87e6de2950..59bb784ee63e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs @@ -63,7 +63,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs index c7fa501c3c5d..bf04c281a0d0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -59,7 +59,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -72,7 +72,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Message /// [JsonPropertyName("message")] - public string? Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string? Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -85,7 +85,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Type /// [JsonPropertyName("type")] - public string? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs index 601dae95aa1a..ab683a853979 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs @@ -59,7 +59,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string? ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string? ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -72,7 +72,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string? Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string? Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -85,7 +85,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string? Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string? Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs index fdef147cb388..e2b1d231a469 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs @@ -63,7 +63,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index a09872cef811..ae6f902a274d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -55,7 +55,7 @@ public ArrayOfArrayOfNumberOnly(Option>?> arrayArrayNumber = /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c338f29efc9d..d8065f1c3cf0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -55,7 +55,7 @@ public ArrayOfNumberOnly(Option?> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List? ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List? ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs index 04609b245365..0a7996c4da55 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -59,7 +59,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -72,7 +72,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -85,7 +85,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List? ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List? ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs index cf0ee9cdb1aa..1d8f7156cd1c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs @@ -55,7 +55,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs index 10375771f80b..34b4260440b7 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs @@ -63,7 +63,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs index 133845a991f0..2bb970bbb47b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs @@ -66,7 +66,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string? ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string? ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -79,7 +79,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string? CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string? CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -92,7 +92,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string? CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string? CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -105,7 +105,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -118,7 +118,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string? SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string? SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -131,7 +131,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string? SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string? SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index 4887c6c7aff7..195cb1cffa1d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -56,7 +56,7 @@ public Cat(Option color = default, Option declawed = default) : /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs index 936d8dc8b225..663e299f6464 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs @@ -57,7 +57,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs index c37ba2ec211e..d6862f0e11c2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs @@ -108,7 +108,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs index 5a199576ee29..4e9e486f9c1d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs @@ -55,7 +55,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs index d908fed19a3a..f5b19c9aeeaf 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -56,7 +56,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 68e0836b632f..76a1a461efd6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -55,7 +55,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index 05eb0781cfe7..be8b40afd602 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -56,7 +56,7 @@ public Dog(Option breed = default, Option color = default) : b /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string? Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string? Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs index 1668434a783f..24615731e552 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs @@ -61,7 +61,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape? MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape? MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -74,7 +74,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape? NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape? NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -87,7 +87,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -100,7 +100,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List? Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List? Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs index 10c01b2dcb54..f2e96952c4bb 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -202,7 +202,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List? ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List? ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs index dab2e4e27b36..043d7ed7dff0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs @@ -56,7 +56,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string? SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string? SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 971a81e9c8c4..b3a5641e3713 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -57,7 +57,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets File /// [JsonPropertyName("file")] - public File? File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File? File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -70,7 +70,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets Files /// [JsonPropertyName("files")] - public List? Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List? Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs index b8128f4c3e45..f8600cfa343c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs @@ -55,7 +55,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string? Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index f4e54444c7ee..831168493dd1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -55,7 +55,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs index 9e4b3c23fe8a..97ebbbbf2c2e 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs @@ -140,7 +140,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream? Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream? Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -154,7 +154,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -167,7 +167,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -180,7 +180,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -193,7 +193,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -206,7 +206,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -219,7 +219,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -232,7 +232,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -245,7 +245,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -258,7 +258,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -271,7 +271,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -284,7 +284,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -297,7 +297,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -310,7 +310,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -323,7 +323,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -337,7 +337,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string? PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string? PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -351,7 +351,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string? PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string? PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -365,7 +365,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -378,7 +378,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -391,7 +391,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -404,7 +404,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -417,7 +417,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -431,7 +431,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs index eb12679ed27d..e114d8ea5327 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs @@ -78,7 +78,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs index 6bb6bc5757af..6ce7cb107fa6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs @@ -82,7 +82,7 @@ public GmFruit(Option apple, Option banana, Option col /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 50826dd0da5d..a5336144f259 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -57,7 +57,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -70,7 +70,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string? Foo { get { return this.FooOption; } } + public string? Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 2a3a8e527f6e..b9f783c6a85c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -55,7 +55,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string? NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string? NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs index ddf0d615fd3c..f7820d8e51cc 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs @@ -55,7 +55,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string? Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string? Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 5993dd82adc8..9e3f99b3cf78 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -57,7 +57,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -70,7 +70,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs index 06668cf78934..e9ed8d747187 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs @@ -127,7 +127,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary? DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary? DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -140,7 +140,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary? IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary? IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -153,7 +153,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -166,7 +166,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 266cbf7f9d2e..155a333b986f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -55,7 +55,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs index 4d5b2c6d94cf..ea36e674c375 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -55,7 +55,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 968a64762901..e9f3292927ae 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -61,7 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -74,7 +74,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary? Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary? Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -87,7 +87,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -100,7 +100,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs index 6b56e6017b15..06784d103f7b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -55,7 +55,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs index 76bffb1856bc..d1bc6669dcb0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs @@ -57,7 +57,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Class /// [JsonPropertyName("class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -70,7 +70,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs index 7a982b8104d3..8d9d879df9b7 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs @@ -55,7 +55,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string? VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string? VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs index 100ccfa20e5b..6e4ba4e30373 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs @@ -67,7 +67,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Property /// [JsonPropertyName("property")] - public string? Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string? Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -80,7 +80,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -93,7 +93,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs index db7eaa8f675c..79aa6a44aae1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs @@ -77,7 +77,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -90,7 +90,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -103,7 +103,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List? ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List? ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -116,7 +116,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -129,7 +129,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -142,7 +142,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -155,7 +155,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -168,7 +168,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -181,7 +181,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -194,7 +194,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -207,7 +207,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -220,7 +220,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string? StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string? StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 47db90bf3525..aa9a9819a76d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -56,7 +56,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs index f7ae912c05e6..ab384678d56d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -55,7 +55,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index fa4f88b3ecdd..c1e19496bc08 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -62,7 +62,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List? Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List? Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -76,7 +76,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -90,7 +90,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -103,7 +103,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs index 9341b50d3a3d..0b238ec05372 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs @@ -160,7 +160,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -173,7 +173,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -186,7 +186,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -199,7 +199,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -213,7 +213,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs index 4428479e0485..a4d7a5c9f36c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -59,7 +59,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -72,7 +72,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -85,7 +85,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string? MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string? MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs index 9692c765c581..984e29267cce 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs @@ -173,7 +173,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category? Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category? Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -186,7 +186,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -199,7 +199,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List? Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List? Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a48fcb21dbef..ba65e52288ec 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -57,7 +57,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -70,7 +70,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string? Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string? Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs index 60530fcdce09..bf412bd89d85 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1414,7 +1414,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1427,7 +1427,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1440,7 +1440,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1453,7 +1453,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1466,7 +1466,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1479,7 +1479,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1492,7 +1492,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1505,7 +1505,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1519,7 +1519,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1532,7 +1532,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1545,7 +1545,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1558,7 +1558,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1571,7 +1571,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1585,7 +1585,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index 6119748b2992..f3a65bdc21f0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -60,7 +60,7 @@ public Result(Option code = default, Option? /// /// Result code [JsonPropertyName("code")] - public string? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -74,7 +74,7 @@ public Result(Option code = default, Option? /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -88,7 +88,7 @@ public Result(Option code = default, Option? /// /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs index 6276a3a8c8ae..ecd932d453f7 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs @@ -73,7 +73,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -86,7 +86,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string? Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string? Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 245ea1053e5d..058432c820c5 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -57,7 +57,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole? Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole? Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -70,7 +70,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 684ca8e8b515..3ec3abc5fb79 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -55,7 +55,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs index 1fce10cd7823..48bfdcdc3ad1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -57,7 +57,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -70,7 +70,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs index a6c404c940b8..aa289de3630d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs @@ -57,7 +57,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -70,7 +70,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f1a1940574ee..afd067661121 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -55,7 +55,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string? Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string? Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 5cbf9d28f57e..881276c5e683 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -55,7 +55,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 102413449b18..5144e8e6526c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -55,7 +55,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option somePropert /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string? SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string? SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index bcd2a5f846da..089ddaa533da 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -73,7 +73,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -87,7 +87,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs index d02f765752fd..68ba55e20d32 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs @@ -78,7 +78,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object? AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object? AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -92,7 +92,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -105,7 +105,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Email /// [JsonPropertyName("email")] - public string? Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string? Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -118,7 +118,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string? FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -131,7 +131,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -144,7 +144,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string? LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string? LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -158,7 +158,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -172,7 +172,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -185,7 +185,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Password /// [JsonPropertyName("password")] - public string? Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string? Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -198,7 +198,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string? Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string? Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -212,7 +212,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -225,7 +225,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Username /// [JsonPropertyName("username")] - public string? Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string? Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs index 3d5ad4a7d676..82e7c4ef197c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs @@ -65,7 +65,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -78,7 +78,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..48c25acf6a06 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -55,7 +55,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string? Kind { get { return this.KindOption; } set { this.KindOption = new(value); } } + public string? Kind { get { return this.KindOption.Value; } set { this.KindOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 170ad4b54dac..cbb9288ca436 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -55,7 +55,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index 056f2c03af8d..853b71a29a20 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -95,7 +95,7 @@ public Fruit(Orange orange, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Orange.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Orange.cs index eaa0165ba6c1..26195dc17094 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Orange.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Orange.cs @@ -55,7 +55,7 @@ public Orange(Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs index aabac63ce195..f8fa083b7ad4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -53,7 +53,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 1da19734a2d3..0b12f4726b49 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 5fa49b8033da..61958ab6c36c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 5a0b22326df1..75a681a9d1ff 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -61,7 +61,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 78ce72e42861..e4e387cd5b74 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -57,7 +57,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -70,7 +70,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Message /// [JsonPropertyName("message")] - public string Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -83,7 +83,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Type /// [JsonPropertyName("type")] - public string Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..4254f9e7ec10 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -57,7 +57,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -70,7 +70,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -83,7 +83,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index f9d8cb0178a6..6a91a5eb30af 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 6bd3d13aec0c..559b48410c03 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c1fc28e5e87e..5b12bfe3aba2 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 24f40349480e..3c2d6f6454fa 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -57,7 +57,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -70,7 +70,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -83,7 +83,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index e0176c9c103d..c6f348ce52b0 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index dd211ecc28ae..0df184a89485 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -61,7 +61,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..6ea9c87adf9e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -64,7 +64,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -77,7 +77,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -90,7 +90,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -103,7 +103,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -116,7 +116,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -129,7 +129,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 6b4b1efcac37..212f9d249e7c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -54,7 +54,7 @@ public Cat(Option color = default, Option declawed = default) : b /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs index 406cff32fdf5..168034e1f436 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index ff5df164f2c9..b96499c365c8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -106,7 +106,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..70163597dbf8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -53,7 +53,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 921b10388991..86961f05e8d2 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -54,7 +54,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..83c6ef134a3e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -53,7 +53,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index a4879a78dc05..f746e6816595 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -54,7 +54,7 @@ public Dog(Option breed = default, Option color = default) : bas /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 50db62858883..b6d426437c95 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -59,7 +59,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -72,7 +72,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -85,7 +85,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -98,7 +98,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 5eda7b332cb7..43b688de6dd5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -200,7 +200,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..45b84933c9e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -54,7 +54,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 601c8e998661..232f7bc3d1e1 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -55,7 +55,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets File /// [JsonPropertyName("file")] - public File File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -68,7 +68,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets Files /// [JsonPropertyName("files")] - public List Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..28e54b60cfa8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -53,7 +53,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index db1b090fa3e9..6fad70dc547f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -53,7 +53,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 847567dd4b69..d9baf612f043 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -138,7 +138,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -152,7 +152,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -165,7 +165,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -178,7 +178,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -191,7 +191,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -204,7 +204,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -217,7 +217,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -230,7 +230,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -243,7 +243,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -256,7 +256,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -269,7 +269,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -282,7 +282,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -295,7 +295,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -308,7 +308,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -321,7 +321,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -335,7 +335,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -349,7 +349,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -363,7 +363,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -376,7 +376,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -389,7 +389,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -402,7 +402,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -415,7 +415,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -429,7 +429,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..f27078b62f5e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -76,7 +76,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 64b6d880bdc0..a9cef25c1666 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -80,7 +80,7 @@ public GmFruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..64130e7cfbf5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -55,7 +55,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -68,7 +68,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string Foo { get { return this.FooOption; } } + public string Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..86b87fe73c35 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -53,7 +53,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..8475f90c87f5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -53,7 +53,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..7cad3e88d131 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -55,7 +55,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -68,7 +68,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 796232e12c55..7ba0cf8f07b4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -125,7 +125,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -138,7 +138,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -151,7 +151,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -164,7 +164,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 88c96f83b3a1..7c144cb702ba 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -53,7 +53,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 6049305ccc01..5226b7994708 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -53,7 +53,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2b9dab1b761b..81cfce490724 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -59,7 +59,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..e954846b86da 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -53,7 +53,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index d74cab9a645c..02b3510ef01b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -55,7 +55,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Class /// [JsonPropertyName("class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..222a9afecd08 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -53,7 +53,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs index 1ced7be525f5..a766cb5f5576 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -65,7 +65,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Property /// [JsonPropertyName("property")] - public string Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -78,7 +78,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -91,7 +91,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 47b7b40607a7..dc4d250b4e95 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -75,7 +75,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -88,7 +88,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -101,7 +101,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -114,7 +114,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -127,7 +127,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -140,7 +140,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -153,7 +153,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -166,7 +166,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -179,7 +179,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -192,7 +192,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -205,7 +205,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -218,7 +218,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index bbc9459f436f..e2f90ceafa93 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -54,7 +54,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 55e6045dc21e..f1bb8e875596 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index dc0e8da10833..5967526d3a67 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -74,7 +74,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -88,7 +88,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -101,7 +101,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs index 7f2e150b71fd..ff740963836d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -158,7 +158,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -211,7 +211,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index abcca493d7d2..f42d3fbb9613 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -57,7 +57,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -70,7 +70,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -83,7 +83,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 0473a02f1573..8f10916b0d07 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..0b202abf3422 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -55,7 +55,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -68,7 +68,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index c4f7a9534641..15bbd1627186 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1412,7 +1412,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1425,7 +1425,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1438,7 +1438,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1451,7 +1451,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1464,7 +1464,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1477,7 +1477,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1490,7 +1490,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1503,7 +1503,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1517,7 +1517,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1530,7 +1530,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1543,7 +1543,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1556,7 +1556,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1569,7 +1569,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1583,7 +1583,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..c1b0973340c4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -58,7 +58,7 @@ public Result(Option code = default, Option> /// /// Result code [JsonPropertyName("code")] - public string Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -72,7 +72,7 @@ public Result(Option code = default, Option> /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -86,7 +86,7 @@ public Result(Option code = default, Option> /// /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs index fcf8e483d79e..ba0d3c5ab75f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -84,7 +84,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index b9a4a5f9c95c..b548944c5e94 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -55,7 +55,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -68,7 +68,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..a33665a84ebe 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -53,7 +53,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 25d27479cb9b..b11aa47949e6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -55,7 +55,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -68,7 +68,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 3ebb619596ee..6a1ef05805ec 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -55,7 +55,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..9db4bc3014cb 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 54cbe89d95af..29ada204f1d0 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..00d15308cdfc 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 512daa77d491..1886c2e51f28 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -71,7 +71,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs index 62f5b0736d68..3684f6575329 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -76,7 +76,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -90,7 +90,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -103,7 +103,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Email /// [JsonPropertyName("email")] - public string Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -116,7 +116,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -129,7 +129,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -142,7 +142,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -156,7 +156,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -170,7 +170,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -183,7 +183,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Password /// [JsonPropertyName("password")] - public string Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -196,7 +196,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -210,7 +210,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -223,7 +223,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Username /// [JsonPropertyName("username")] - public string Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 012c650e4f1c..0265accbb89f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -63,7 +63,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -76,7 +76,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs index 65645b2e4829..3752eb012f9f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs @@ -56,7 +56,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 728bbb0c349e..f2ae4a3d59fb 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -58,7 +58,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string? Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string? Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -71,7 +71,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object? Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object? Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 9fa35476f70c..ab4649b23059 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -70,7 +70,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object? Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object? Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -84,7 +84,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object? EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object? EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -97,7 +97,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -110,7 +110,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary? MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary? MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -123,7 +123,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -136,7 +136,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -149,7 +149,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -162,7 +162,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs index 37a0519bbd6b..b5839cf7d89b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs @@ -64,7 +64,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs index bf92565f9a2e..6f5badb3330e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -60,7 +60,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -73,7 +73,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Message /// [JsonPropertyName("message")] - public string? Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string? Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -86,7 +86,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Type /// [JsonPropertyName("type")] - public string? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs index 3dab90bbeb36..d8a53b95d62b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs @@ -60,7 +60,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string? ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string? ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -73,7 +73,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string? Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string? Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -86,7 +86,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string? Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string? Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs index cbb5ea8f0849..7b4424da8467 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs @@ -64,7 +64,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cd3309a5900e..5d163b0e388e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -56,7 +56,7 @@ public ArrayOfArrayOfNumberOnly(Option>?> arrayArrayNumber = /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 90b6e4a8bd14..5da1266ef8ba 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -56,7 +56,7 @@ public ArrayOfNumberOnly(Option?> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List? ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List? ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs index 6be410aad46e..a6a98de666c1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -60,7 +60,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -73,7 +73,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -86,7 +86,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List? ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List? ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs index 1352e54c4091..44708f4f1bc6 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs @@ -56,7 +56,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs index 584505890fdc..111f2888f706 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs @@ -64,7 +64,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs index e36a343dc5e2..c48de422dde8 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs @@ -67,7 +67,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string? ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string? ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -80,7 +80,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string? CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string? CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -93,7 +93,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string? CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string? CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -106,7 +106,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -119,7 +119,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string? SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string? SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -132,7 +132,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string? SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string? SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index 00b32d995aa3..fefffc9c52a1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -57,7 +57,7 @@ public Cat(Option color = default, Option declawed = default) : /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs index 0369f8f37e97..1ab1ee8ace9b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs @@ -58,7 +58,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs index 4131c59373af..7e9d10517951 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs @@ -109,7 +109,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs index e38fad89dbad..21601e61bb8f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs @@ -56,7 +56,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 8981331c9e19..bb49c3bb31c1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -57,7 +57,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 0b8716d11ff4..2c13c4267b93 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -56,7 +56,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index 6129b69ce916..8dc57fd63638 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -57,7 +57,7 @@ public Dog(Option breed = default, Option color = default) : b /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string? Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string? Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs index b6400a09e802..1362d738caea 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs @@ -62,7 +62,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape? MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape? MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -75,7 +75,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape? NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape? NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -88,7 +88,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -101,7 +101,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List? Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List? Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs index 0cc70adbd2a2..4a8e487309f0 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -203,7 +203,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List? ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List? ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs index bdc5c25e1329..770e6ad63b43 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs @@ -57,7 +57,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string? SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string? SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d7c977f2fe4f..75bbe75be272 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -58,7 +58,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets File /// [JsonPropertyName("file")] - public File? File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File? File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -71,7 +71,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets Files /// [JsonPropertyName("files")] - public List? Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List? Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs index ac4aeb49df5c..bd37a750c9bf 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs @@ -56,7 +56,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string? Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 9f57f4d6318a..4a094bf97111 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -56,7 +56,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs index 3daacf80952d..bef08805190b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs @@ -141,7 +141,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream? Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream? Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -155,7 +155,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -168,7 +168,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -181,7 +181,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -194,7 +194,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -207,7 +207,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -220,7 +220,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -233,7 +233,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -246,7 +246,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -259,7 +259,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -272,7 +272,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -285,7 +285,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -298,7 +298,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -311,7 +311,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -324,7 +324,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -338,7 +338,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string? PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string? PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -352,7 +352,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string? PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string? PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -366,7 +366,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -379,7 +379,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -392,7 +392,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -405,7 +405,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -418,7 +418,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -432,7 +432,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs index 6aa166222089..6c8a59e807fc 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs @@ -79,7 +79,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs index 31555694e81b..9627f7598d52 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs @@ -83,7 +83,7 @@ public GmFruit(Option apple, Option banana, Option col /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 0bf77a18dca2..ede2be85a3dc 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -58,7 +58,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -71,7 +71,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string? Foo { get { return this.FooOption; } } + public string? Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 71f3c4dc4ec0..9c8ff6d92b6f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -56,7 +56,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string? NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string? NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs index 024998ed763a..4ed30272f872 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs @@ -56,7 +56,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string? Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string? Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs index e54eebdaa1dc..281084bc4a5a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -58,7 +58,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -71,7 +71,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs index 40dee3f15569..63057540d6ae 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs @@ -128,7 +128,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary? DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary? DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -141,7 +141,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary? IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary? IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -154,7 +154,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -167,7 +167,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs index cdac03c3bcf4..356c4e4f2ecb 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -56,7 +56,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs index e9f36662dd80..9d35e8952a3d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -56,7 +56,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3629d644571b..07b42ca23c89 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -62,7 +62,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -75,7 +75,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary? Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary? Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -88,7 +88,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -101,7 +101,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs index 696681a920f3..9daad48ac636 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -56,7 +56,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs index 4b3f421263d4..dec2398fdb7a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs @@ -58,7 +58,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Class /// [JsonPropertyName("class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -71,7 +71,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs index 49dcb68c571f..57fcd205e238 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs @@ -56,7 +56,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string? VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string? VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs index 72938274943d..4b30453bff93 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs @@ -68,7 +68,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Property /// [JsonPropertyName("property")] - public string? Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string? Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -81,7 +81,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -94,7 +94,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs index aa2baca6ee31..29d28ec3fe1f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs @@ -78,7 +78,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -91,7 +91,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -104,7 +104,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List? ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List? ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -117,7 +117,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -130,7 +130,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -143,7 +143,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -156,7 +156,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -169,7 +169,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -182,7 +182,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -195,7 +195,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -208,7 +208,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -221,7 +221,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string? StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string? StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs index d0c107c1a216..d8f08bda7e3b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -57,7 +57,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs index 3662647e6562..ebcd84e339b1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -56,7 +56,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index b2fced877576..9ca2454087c3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -63,7 +63,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List? Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List? Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -77,7 +77,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -91,7 +91,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -104,7 +104,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs index 0f45f32a5dc1..e2122376c4eb 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs @@ -161,7 +161,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -174,7 +174,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -187,7 +187,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -200,7 +200,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -214,7 +214,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs index 834a7f3516f1..5971c2e17137 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -60,7 +60,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -73,7 +73,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -86,7 +86,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string? MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string? MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs index 45da7d04ae56..f293b149d1e5 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs @@ -174,7 +174,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category? Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category? Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -187,7 +187,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -200,7 +200,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List? Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List? Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 4d458434bb1c..ba28de8cd9f5 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -58,7 +58,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -71,7 +71,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string? Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string? Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs index 269284919791..cfc639eb6e8c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1415,7 +1415,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1428,7 +1428,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1441,7 +1441,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1454,7 +1454,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1467,7 +1467,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1480,7 +1480,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1493,7 +1493,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1506,7 +1506,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1520,7 +1520,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1533,7 +1533,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1546,7 +1546,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1559,7 +1559,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1572,7 +1572,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1586,7 +1586,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 1c1f18fd1dec..966694b51fc2 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -61,7 +61,7 @@ public Result(Option code = default, Option? /// /// Result code [JsonPropertyName("code")] - public string? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -75,7 +75,7 @@ public Result(Option code = default, Option? /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -89,7 +89,7 @@ public Result(Option code = default, Option? /// /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs index 1544a23710c1..99b0b0e5dba7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs @@ -74,7 +74,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -87,7 +87,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string? Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string? Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 28b65b24ecf3..7c8c3e101304 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -58,7 +58,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole? Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole? Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -71,7 +71,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ba4ac84d8e20..4c74404a682e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -56,7 +56,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs index 0cf9332983fd..1a1f7b635e25 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -58,7 +58,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -71,7 +71,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs index a350814f2c88..b738912d4c08 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs @@ -58,7 +58,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -71,7 +71,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b5f8d88ed68d..998e1c432f20 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -56,7 +56,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string? Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string? Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 37acae1c88df..3edf20ab42ee 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -56,7 +56,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index de60d7c2281f..97146f4f3d35 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -56,7 +56,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option somePropert /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string? SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string? SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index 933d45815f83..11461549854b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -74,7 +74,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -88,7 +88,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs index 6af3ab9df35c..8b3d616127fe 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs @@ -79,7 +79,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object? AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object? AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -93,7 +93,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -106,7 +106,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Email /// [JsonPropertyName("email")] - public string? Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string? Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -119,7 +119,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string? FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -132,7 +132,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -145,7 +145,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string? LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string? LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -159,7 +159,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -173,7 +173,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -186,7 +186,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Password /// [JsonPropertyName("password")] - public string? Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string? Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -199,7 +199,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string? Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string? Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -213,7 +213,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -226,7 +226,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Username /// [JsonPropertyName("username")] - public string? Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string? Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs index 080a4f804022..8711b13d8742 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs @@ -66,7 +66,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -79,7 +79,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index d81a3689e6e1..aec5f0281cd6 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -56,7 +56,7 @@ public NowGet200Response(Option now = default, Option toda /// Gets or Sets Now /// [JsonPropertyName("now")] - public DateTime? Now { get { return this.NowOption; } set { this.NowOption = new(value); } } + public DateTime? Now { get { return this.NowOption.Value; } set { this.NowOption = new(value); } } /// /// Used to track the state of Today @@ -69,7 +69,7 @@ public NowGet200Response(Option now = default, Option toda /// Gets or Sets Today /// [JsonPropertyName("today")] - public DateTime? Today { get { return this.TodayOption; } set { this.TodayOption = new(value); } } + public DateTime? Today { get { return this.TodayOption.Value; } set { this.TodayOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs index e5c016d2627d..a3d002d6a641 100644 --- a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -57,7 +57,7 @@ public Adult(Option?> children = default, Option firstName /// Gets or Sets Children /// [JsonPropertyName("children")] - public List? Children { get { return this.ChildrenOption; } set { this.ChildrenOption = new(value); } } + public List? Children { get { return this.ChildrenOption.Value; } set { this.ChildrenOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs index 94cfd4f4aa62..59f69018ba73 100644 --- a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -59,7 +59,7 @@ public Child(Option age = default, Option boosterSeat = default, Op /// Gets or Sets Age /// [JsonPropertyName("age")] - public int? Age { get { return this.AgeOption; } set { this.AgeOption = new(value); } } + public int? Age { get { return this.AgeOption.Value; } set { this.AgeOption = new(value); } } /// /// Used to track the state of BoosterSeat @@ -72,7 +72,7 @@ public Child(Option age = default, Option boosterSeat = default, Op /// Gets or Sets BoosterSeat /// [JsonPropertyName("boosterSeat")] - public bool? BoosterSeat { get { return this.BoosterSeatOption; } set { this.BoosterSeatOption = new(value); } } + public bool? BoosterSeat { get { return this.BoosterSeatOption.Value; } set { this.BoosterSeatOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs index 6da989d4e3a7..d9492d554adc 100644 --- a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -58,7 +58,7 @@ public Person(Option firstName = default, Option lastName = de /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string? FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of LastName @@ -71,7 +71,7 @@ public Person(Option firstName = default, Option lastName = de /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string? LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string? LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..48c25acf6a06 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -55,7 +55,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string? Kind { get { return this.KindOption; } set { this.KindOption = new(value); } } + public string? Kind { get { return this.KindOption.Value; } set { this.KindOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 170ad4b54dac..cbb9288ca436 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -55,7 +55,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 90ae7568d3fc..da640dfcf94b 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -82,7 +82,7 @@ public Fruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 8531edebf731..9bd7762033f4 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -54,7 +54,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string? Kind { get { return this.KindOption; } set { this.KindOption = new(value); } } + public string? Kind { get { return this.KindOption.Value; } set { this.KindOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 93897bf0b56a..0d586d0b1139 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -54,7 +54,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index 8a99245775f6..3d6c67bdb254 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -81,7 +81,7 @@ public Fruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Activity.cs index aabac63ce195..f8fa083b7ad4 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -53,7 +53,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 1da19734a2d3..0b12f4726b49 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 5fa49b8033da..61958ab6c36c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 5a0b22326df1..75a681a9d1ff 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -61,7 +61,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 78ce72e42861..e4e387cd5b74 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -57,7 +57,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -70,7 +70,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Message /// [JsonPropertyName("message")] - public string Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -83,7 +83,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Type /// [JsonPropertyName("type")] - public string Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..4254f9e7ec10 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -57,7 +57,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -70,7 +70,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -83,7 +83,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index f9d8cb0178a6..6a91a5eb30af 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 6bd3d13aec0c..559b48410c03 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c1fc28e5e87e..5b12bfe3aba2 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 24f40349480e..3c2d6f6454fa 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -57,7 +57,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -70,7 +70,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -83,7 +83,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Banana.cs index e0176c9c103d..c6f348ce52b0 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index dd211ecc28ae..0df184a89485 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -61,7 +61,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..6ea9c87adf9e 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -64,7 +64,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -77,7 +77,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -90,7 +90,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -103,7 +103,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -116,7 +116,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -129,7 +129,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs index 6b4b1efcac37..212f9d249e7c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -54,7 +54,7 @@ public Cat(Option color = default, Option declawed = default) : b /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Category.cs index 406cff32fdf5..168034e1f436 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 99c5b315aa00..0dceb943de13 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -61,7 +61,7 @@ public ChildCat(Option name = default) : base() /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..70163597dbf8 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -53,7 +53,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 921b10388991..86961f05e8d2 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -54,7 +54,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..83c6ef134a3e 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -53,7 +53,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs index a4879a78dc05..f746e6816595 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -54,7 +54,7 @@ public Dog(Option breed = default, Option color = default) : bas /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index 50db62858883..b6d426437c95 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -59,7 +59,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -72,7 +72,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -85,7 +85,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -98,7 +98,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 7fe4cb3c8afa..ef41971722d9 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -68,7 +68,7 @@ public EnumArrays(Option> arrayEnum = default, Op /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..45b84933c9e4 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -54,7 +54,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 601c8e998661..232f7bc3d1e1 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -55,7 +55,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets File /// [JsonPropertyName("file")] - public File File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -68,7 +68,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets Files /// [JsonPropertyName("files")] - public List Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..28e54b60cfa8 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -53,7 +53,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index db1b090fa3e9..6fad70dc547f 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -53,7 +53,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index 847567dd4b69..d9baf612f043 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -138,7 +138,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -152,7 +152,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -165,7 +165,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -178,7 +178,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -191,7 +191,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -204,7 +204,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -217,7 +217,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -230,7 +230,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -243,7 +243,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -256,7 +256,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -269,7 +269,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -282,7 +282,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -295,7 +295,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -308,7 +308,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -321,7 +321,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -335,7 +335,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -349,7 +349,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -363,7 +363,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -376,7 +376,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -389,7 +389,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -402,7 +402,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -415,7 +415,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -429,7 +429,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..f27078b62f5e 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -76,7 +76,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 64b6d880bdc0..a9cef25c1666 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -80,7 +80,7 @@ public GmFruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..64130e7cfbf5 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -55,7 +55,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -68,7 +68,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string Foo { get { return this.FooOption; } } + public string Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..86b87fe73c35 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -53,7 +53,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..8475f90c87f5 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -53,7 +53,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..7cad3e88d131 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -55,7 +55,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -68,7 +68,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index d2f562dc62c7..c8b2968651be 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -59,7 +59,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("direct_map")] - public Dictionary DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -72,7 +72,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("indirect_map")] - public Dictionary IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -85,7 +85,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("map_map_of_string")] - public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -98,7 +98,7 @@ public MapTest(Option> directMap = default, Option [JsonPropertyName("map_of_enum_string")] - public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 88c96f83b3a1..7c144cb702ba 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -53,7 +53,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 6049305ccc01..5226b7994708 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -53,7 +53,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2b9dab1b761b..81cfce490724 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -59,7 +59,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..e954846b86da 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -53,7 +53,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index d74cab9a645c..02b3510ef01b 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -55,7 +55,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Class /// [JsonPropertyName("class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..222a9afecd08 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -53,7 +53,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Name.cs index 1ced7be525f5..a766cb5f5576 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -65,7 +65,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Property /// [JsonPropertyName("property")] - public string Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -78,7 +78,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -91,7 +91,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 47b7b40607a7..dc4d250b4e95 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -75,7 +75,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -88,7 +88,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -101,7 +101,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -114,7 +114,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -127,7 +127,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -140,7 +140,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -153,7 +153,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -166,7 +166,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -179,7 +179,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -192,7 +192,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -205,7 +205,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -218,7 +218,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs index bbc9459f436f..e2f90ceafa93 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -54,7 +54,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 55e6045dc21e..f1bb8e875596 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index dc0e8da10833..5967526d3a67 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -74,7 +74,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -88,7 +88,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -101,7 +101,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Order.cs index 4c7bea23ae40..fe71d4c680a8 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -76,7 +76,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -89,7 +89,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -102,7 +102,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -115,7 +115,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -129,7 +129,7 @@ public Order(Option complete = default, Option id = default, Optio /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index abcca493d7d2..f42d3fbb9613 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -57,7 +57,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -70,7 +70,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -83,7 +83,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pet.cs index c505ad177fb4..49adaeb01ff6 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -89,7 +89,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -102,7 +102,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -115,7 +115,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..0b202abf3422 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -55,7 +55,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -68,7 +68,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index 76ab94c6f171..4349b036fca6 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -334,7 +334,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -347,7 +347,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -360,7 +360,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -373,7 +373,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -386,7 +386,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -399,7 +399,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -412,7 +412,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -425,7 +425,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -439,7 +439,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -452,7 +452,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -465,7 +465,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -478,7 +478,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -491,7 +491,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -505,7 +505,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..c1b0973340c4 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -58,7 +58,7 @@ public Result(Option code = default, Option> /// /// Result code [JsonPropertyName("code")] - public string Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -72,7 +72,7 @@ public Result(Option code = default, Option> /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -86,7 +86,7 @@ public Result(Option code = default, Option> /// /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Return.cs index fcf8e483d79e..ba0d3c5ab75f 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -84,7 +84,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index b9a4a5f9c95c..b548944c5e94 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -55,7 +55,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -68,7 +68,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..a33665a84ebe 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -53,7 +53,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 25d27479cb9b..b11aa47949e6 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -55,7 +55,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -68,7 +68,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 3ebb619596ee..6a1ef05805ec 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -55,7 +55,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..9db4bc3014cb 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 54cbe89d95af..29ada204f1d0 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..00d15308cdfc 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 512daa77d491..1886c2e51f28 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -71,7 +71,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/User.cs index 62f5b0736d68..3684f6575329 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -76,7 +76,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -90,7 +90,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -103,7 +103,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Email /// [JsonPropertyName("email")] - public string Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -116,7 +116,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -129,7 +129,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -142,7 +142,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -156,7 +156,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -170,7 +170,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -183,7 +183,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Password /// [JsonPropertyName("password")] - public string Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -196,7 +196,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -210,7 +210,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -223,7 +223,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Username /// [JsonPropertyName("username")] - public string Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 012c650e4f1c..0265accbb89f 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -63,7 +63,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -76,7 +76,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs index fd37515f54a2..2c94c8faec8c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs @@ -55,7 +55,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 80ab5ec04b8d..81a3d0546dd1 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -57,7 +57,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string? Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string? Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -70,7 +70,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object? Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object? Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index de2cf7f84849..9c500ae78db5 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -69,7 +69,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object? Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object? Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -83,7 +83,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object? EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object? EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -96,7 +96,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -109,7 +109,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary? MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary? MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -122,7 +122,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -135,7 +135,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -148,7 +148,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -161,7 +161,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs index 1e87e6de2950..59bb784ee63e 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs @@ -63,7 +63,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs index c7fa501c3c5d..bf04c281a0d0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -59,7 +59,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -72,7 +72,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Message /// [JsonPropertyName("message")] - public string? Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string? Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -85,7 +85,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Type /// [JsonPropertyName("type")] - public string? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs index 601dae95aa1a..ab683a853979 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs @@ -59,7 +59,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string? ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string? ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -72,7 +72,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string? Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string? Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -85,7 +85,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string? Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string? Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs index fdef147cb388..e2b1d231a469 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs @@ -63,7 +63,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index a09872cef811..ae6f902a274d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -55,7 +55,7 @@ public ArrayOfArrayOfNumberOnly(Option>?> arrayArrayNumber = /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c338f29efc9d..d8065f1c3cf0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -55,7 +55,7 @@ public ArrayOfNumberOnly(Option?> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List? ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List? ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs index 04609b245365..0a7996c4da55 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -59,7 +59,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -72,7 +72,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -85,7 +85,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List? ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List? ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs index cf0ee9cdb1aa..1d8f7156cd1c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs @@ -55,7 +55,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs index 10375771f80b..34b4260440b7 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs @@ -63,7 +63,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs index 133845a991f0..2bb970bbb47b 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs @@ -66,7 +66,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string? ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string? ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -79,7 +79,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string? CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string? CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -92,7 +92,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string? CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string? CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -105,7 +105,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -118,7 +118,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string? SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string? SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -131,7 +131,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string? SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string? SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index 4887c6c7aff7..195cb1cffa1d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -56,7 +56,7 @@ public Cat(Option color = default, Option declawed = default) : /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs index 936d8dc8b225..663e299f6464 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs @@ -57,7 +57,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs index c37ba2ec211e..d6862f0e11c2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs @@ -108,7 +108,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs index 5a199576ee29..4e9e486f9c1d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs @@ -55,7 +55,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs index d908fed19a3a..f5b19c9aeeaf 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -56,7 +56,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 68e0836b632f..76a1a461efd6 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -55,7 +55,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index 05eb0781cfe7..be8b40afd602 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -56,7 +56,7 @@ public Dog(Option breed = default, Option color = default) : b /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string? Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string? Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs index 1668434a783f..24615731e552 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs @@ -61,7 +61,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape? MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape? MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -74,7 +74,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape? NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape? NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -87,7 +87,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -100,7 +100,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List? Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List? Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs index 10c01b2dcb54..f2e96952c4bb 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -202,7 +202,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List? ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List? ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs index dab2e4e27b36..043d7ed7dff0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs @@ -56,7 +56,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string? SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string? SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 971a81e9c8c4..b3a5641e3713 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -57,7 +57,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets File /// [JsonPropertyName("file")] - public File? File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File? File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -70,7 +70,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets Files /// [JsonPropertyName("files")] - public List? Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List? Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs index b8128f4c3e45..f8600cfa343c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs @@ -55,7 +55,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string? Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index f4e54444c7ee..831168493dd1 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -55,7 +55,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs index 9e4b3c23fe8a..97ebbbbf2c2e 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs @@ -140,7 +140,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream? Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream? Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -154,7 +154,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -167,7 +167,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -180,7 +180,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -193,7 +193,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -206,7 +206,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -219,7 +219,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -232,7 +232,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -245,7 +245,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -258,7 +258,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -271,7 +271,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -284,7 +284,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -297,7 +297,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -310,7 +310,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -323,7 +323,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -337,7 +337,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string? PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string? PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -351,7 +351,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string? PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string? PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -365,7 +365,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -378,7 +378,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -391,7 +391,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -404,7 +404,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -417,7 +417,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -431,7 +431,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs index eb12679ed27d..e114d8ea5327 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs @@ -78,7 +78,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs index 6bb6bc5757af..6ce7cb107fa6 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs @@ -82,7 +82,7 @@ public GmFruit(Option apple, Option banana, Option col /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 50826dd0da5d..a5336144f259 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -57,7 +57,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -70,7 +70,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string? Foo { get { return this.FooOption; } } + public string? Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 2a3a8e527f6e..b9f783c6a85c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -55,7 +55,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string? NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string? NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs index ddf0d615fd3c..f7820d8e51cc 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs @@ -55,7 +55,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string? Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string? Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 5993dd82adc8..9e3f99b3cf78 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -57,7 +57,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -70,7 +70,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs index 06668cf78934..e9ed8d747187 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs @@ -127,7 +127,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary? DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary? DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -140,7 +140,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary? IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary? IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -153,7 +153,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -166,7 +166,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 266cbf7f9d2e..155a333b986f 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -55,7 +55,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs index 4d5b2c6d94cf..ea36e674c375 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -55,7 +55,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 968a64762901..e9f3292927ae 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -61,7 +61,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -74,7 +74,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary? Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary? Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -87,7 +87,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -100,7 +100,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs index 6b56e6017b15..06784d103f7b 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -55,7 +55,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs index 76bffb1856bc..d1bc6669dcb0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs @@ -57,7 +57,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Class /// [JsonPropertyName("class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -70,7 +70,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs index 7a982b8104d3..8d9d879df9b7 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs @@ -55,7 +55,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string? VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string? VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs index 100ccfa20e5b..6e4ba4e30373 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs @@ -67,7 +67,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Property /// [JsonPropertyName("property")] - public string? Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string? Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -80,7 +80,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -93,7 +93,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs index db7eaa8f675c..79aa6a44aae1 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs @@ -77,7 +77,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -90,7 +90,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -103,7 +103,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List? ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List? ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -116,7 +116,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -129,7 +129,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -142,7 +142,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -155,7 +155,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -168,7 +168,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -181,7 +181,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -194,7 +194,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -207,7 +207,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -220,7 +220,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string? StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string? StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 47db90bf3525..aa9a9819a76d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -56,7 +56,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs index f7ae912c05e6..ab384678d56d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -55,7 +55,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index fa4f88b3ecdd..c1e19496bc08 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -62,7 +62,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List? Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List? Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -76,7 +76,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -90,7 +90,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -103,7 +103,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs index 9341b50d3a3d..0b238ec05372 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs @@ -160,7 +160,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -173,7 +173,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -186,7 +186,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -199,7 +199,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -213,7 +213,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs index 4428479e0485..a4d7a5c9f36c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -59,7 +59,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -72,7 +72,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -85,7 +85,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string? MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string? MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs index 9692c765c581..984e29267cce 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs @@ -173,7 +173,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category? Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category? Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -186,7 +186,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -199,7 +199,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List? Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List? Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a48fcb21dbef..ba65e52288ec 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -57,7 +57,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -70,7 +70,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string? Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string? Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs index 60530fcdce09..bf412bd89d85 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1414,7 +1414,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1427,7 +1427,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1440,7 +1440,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1453,7 +1453,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1466,7 +1466,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1479,7 +1479,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1492,7 +1492,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1505,7 +1505,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1519,7 +1519,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1532,7 +1532,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1545,7 +1545,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1558,7 +1558,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1571,7 +1571,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1585,7 +1585,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index 6119748b2992..f3a65bdc21f0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -60,7 +60,7 @@ public Result(Option code = default, Option? /// /// Result code [JsonPropertyName("code")] - public string? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -74,7 +74,7 @@ public Result(Option code = default, Option? /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -88,7 +88,7 @@ public Result(Option code = default, Option? /// /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs index 6276a3a8c8ae..ecd932d453f7 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs @@ -73,7 +73,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -86,7 +86,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string? Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string? Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 245ea1053e5d..058432c820c5 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -57,7 +57,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole? Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole? Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -70,7 +70,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 684ca8e8b515..3ec3abc5fb79 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -55,7 +55,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs index 1fce10cd7823..48bfdcdc3ad1 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -57,7 +57,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -70,7 +70,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs index a6c404c940b8..aa289de3630d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs @@ -57,7 +57,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -70,7 +70,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index f1a1940574ee..afd067661121 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -55,7 +55,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string? Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string? Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 5cbf9d28f57e..881276c5e683 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -55,7 +55,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 102413449b18..5144e8e6526c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -55,7 +55,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option somePropert /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string? SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string? SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index bcd2a5f846da..089ddaa533da 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -73,7 +73,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -87,7 +87,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs index d02f765752fd..68ba55e20d32 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs @@ -78,7 +78,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object? AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object? AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -92,7 +92,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -105,7 +105,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Email /// [JsonPropertyName("email")] - public string? Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string? Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -118,7 +118,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string? FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -131,7 +131,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -144,7 +144,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string? LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string? LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -158,7 +158,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -172,7 +172,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -185,7 +185,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Password /// [JsonPropertyName("password")] - public string? Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string? Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -198,7 +198,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string? Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string? Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -212,7 +212,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -225,7 +225,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Username /// [JsonPropertyName("username")] - public string? Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string? Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs index 3d5ad4a7d676..82e7c4ef197c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs @@ -65,7 +65,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -78,7 +78,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs index dd3528fa42a4..48c25acf6a06 100644 --- a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -55,7 +55,7 @@ public Apple(Option kind = default) /// Gets or Sets Kind /// [JsonPropertyName("kind")] - public string? Kind { get { return this.KindOption; } set { this.KindOption = new(value); } } + public string? Kind { get { return this.KindOption.Value; } set { this.KindOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 170ad4b54dac..cbb9288ca436 100644 --- a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -55,7 +55,7 @@ public Banana(Option count = default) /// Gets or Sets Count /// [JsonPropertyName("count")] - public decimal? Count { get { return this.CountOption; } set { this.CountOption = new(value); } } + public decimal? Count { get { return this.CountOption.Value; } set { this.CountOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index 056f2c03af8d..853b71a29a20 100644 --- a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -95,7 +95,7 @@ public Fruit(Orange orange, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Orange.cs b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Orange.cs index eaa0165ba6c1..26195dc17094 100644 --- a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Orange.cs +++ b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Orange.cs @@ -55,7 +55,7 @@ public Orange(Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Activity.cs index aabac63ce195..f8fa083b7ad4 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -53,7 +53,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 1da19734a2d3..0b12f4726b49 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 5fa49b8033da..61958ab6c36c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 5a0b22326df1..75a681a9d1ff 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -61,7 +61,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 78ce72e42861..e4e387cd5b74 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -57,7 +57,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -70,7 +70,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Message /// [JsonPropertyName("message")] - public string Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -83,7 +83,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Type /// [JsonPropertyName("type")] - public string Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 26fbe0516849..4254f9e7ec10 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -57,7 +57,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -70,7 +70,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -83,7 +83,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index f9d8cb0178a6..6a91a5eb30af 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 6bd3d13aec0c..559b48410c03 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c1fc28e5e87e..5b12bfe3aba2 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 24f40349480e..3c2d6f6454fa 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -57,7 +57,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -70,7 +70,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -83,7 +83,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs index e0176c9c103d..c6f348ce52b0 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index dd211ecc28ae..0df184a89485 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -61,7 +61,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 8308df3a0912..6ea9c87adf9e 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -64,7 +64,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -77,7 +77,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -90,7 +90,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -103,7 +103,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -116,7 +116,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -129,7 +129,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 6b4b1efcac37..212f9d249e7c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -54,7 +54,7 @@ public Cat(Option color = default, Option declawed = default) : b /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs index 406cff32fdf5..168034e1f436 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index ff5df164f2c9..b96499c365c8 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -106,7 +106,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 9730e5b1185e..70163597dbf8 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -53,7 +53,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 921b10388991..86961f05e8d2 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -54,7 +54,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 65695f863abb..83c6ef134a3e 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -53,7 +53,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs index a4879a78dc05..f746e6816595 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -54,7 +54,7 @@ public Dog(Option breed = default, Option color = default) : bas /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 50db62858883..b6d426437c95 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -59,7 +59,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -72,7 +72,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -85,7 +85,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -98,7 +98,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 5eda7b332cb7..43b688de6dd5 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -200,7 +200,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/File.cs index 3962bf2beee0..45b84933c9e4 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -54,7 +54,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 601c8e998661..232f7bc3d1e1 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -55,7 +55,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets File /// [JsonPropertyName("file")] - public File File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -68,7 +68,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets Files /// [JsonPropertyName("files")] - public List Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 8c2e7c2aeb35..28e54b60cfa8 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -53,7 +53,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index db1b090fa3e9..6fad70dc547f 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -53,7 +53,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index 847567dd4b69..d9baf612f043 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -138,7 +138,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -152,7 +152,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -165,7 +165,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -178,7 +178,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -191,7 +191,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -204,7 +204,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -217,7 +217,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -230,7 +230,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -243,7 +243,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -256,7 +256,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -269,7 +269,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -282,7 +282,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -295,7 +295,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -308,7 +308,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -321,7 +321,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -335,7 +335,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -349,7 +349,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -363,7 +363,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -376,7 +376,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -389,7 +389,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -402,7 +402,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -415,7 +415,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -429,7 +429,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index 1b74f3034c82..f27078b62f5e 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -76,7 +76,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 64b6d880bdc0..a9cef25c1666 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -80,7 +80,7 @@ public GmFruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..64130e7cfbf5 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -55,7 +55,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -68,7 +68,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string Foo { get { return this.FooOption; } } + public string Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 4b7b17d3f58a..86b87fe73c35 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -53,7 +53,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/List.cs index 8880c4c197e5..8475f90c87f5 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -53,7 +53,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4c97ce2b0066..7cad3e88d131 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -55,7 +55,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -68,7 +68,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 796232e12c55..7ba0cf8f07b4 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -125,7 +125,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -138,7 +138,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -151,7 +151,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -164,7 +164,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 88c96f83b3a1..7c144cb702ba 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -53,7 +53,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 6049305ccc01..5226b7994708 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -53,7 +53,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2b9dab1b761b..81cfce490724 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -59,7 +59,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 05c06c0129ed..e954846b86da 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -53,7 +53,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index d74cab9a645c..02b3510ef01b 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -55,7 +55,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Class /// [JsonPropertyName("class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 60a778b3a743..222a9afecd08 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -53,7 +53,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs index 1ced7be525f5..a766cb5f5576 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -65,7 +65,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Property /// [JsonPropertyName("property")] - public string Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -78,7 +78,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -91,7 +91,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 47b7b40607a7..dc4d250b4e95 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -75,7 +75,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -88,7 +88,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -101,7 +101,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -114,7 +114,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -127,7 +127,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -140,7 +140,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -153,7 +153,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -166,7 +166,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -179,7 +179,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -192,7 +192,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -205,7 +205,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -218,7 +218,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index bbc9459f436f..e2f90ceafa93 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -54,7 +54,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 55e6045dc21e..f1bb8e875596 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index dc0e8da10833..5967526d3a67 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -74,7 +74,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -88,7 +88,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -101,7 +101,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs index 7f2e150b71fd..ff740963836d 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -158,7 +158,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -211,7 +211,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index abcca493d7d2..f42d3fbb9613 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -57,7 +57,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -70,7 +70,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -83,7 +83,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 0473a02f1573..8f10916b0d07 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index b1907fda8183..0b202abf3422 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -55,7 +55,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -68,7 +68,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index c4f7a9534641..15bbd1627186 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1412,7 +1412,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1425,7 +1425,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1438,7 +1438,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1451,7 +1451,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1464,7 +1464,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1477,7 +1477,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1490,7 +1490,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1503,7 +1503,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1517,7 +1517,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1530,7 +1530,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1543,7 +1543,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1556,7 +1556,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1569,7 +1569,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1583,7 +1583,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs index d29f16225c9a..c1b0973340c4 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -58,7 +58,7 @@ public Result(Option code = default, Option> /// /// Result code [JsonPropertyName("code")] - public string Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -72,7 +72,7 @@ public Result(Option code = default, Option> /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -86,7 +86,7 @@ public Result(Option code = default, Option> /// /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs index fcf8e483d79e..ba0d3c5ab75f 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -84,7 +84,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index b9a4a5f9c95c..b548944c5e94 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -55,7 +55,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -68,7 +68,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 5b5b7899e3cf..a33665a84ebe 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -53,7 +53,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 25d27479cb9b..b11aa47949e6 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -55,7 +55,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -68,7 +68,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 3ebb619596ee..6a1ef05805ec 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -55,7 +55,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 215caa45302b..9db4bc3014cb 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 54cbe89d95af..29ada204f1d0 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index fbd7dddd9dce..00d15308cdfc 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 512daa77d491..1886c2e51f28 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -71,7 +71,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/User.cs index 62f5b0736d68..3684f6575329 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -76,7 +76,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -90,7 +90,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -103,7 +103,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Email /// [JsonPropertyName("email")] - public string Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -116,7 +116,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -129,7 +129,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -142,7 +142,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -156,7 +156,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -170,7 +170,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -183,7 +183,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Password /// [JsonPropertyName("password")] - public string Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -196,7 +196,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -210,7 +210,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -223,7 +223,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Username /// [JsonPropertyName("username")] - public string Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 012c650e4f1c..0265accbb89f 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -63,7 +63,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -76,7 +76,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs index 65645b2e4829..3752eb012f9f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs @@ -56,7 +56,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new(value); } } + public Dictionary>? ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 728bbb0c349e..f2ae4a3d59fb 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -58,7 +58,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string? Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new(value); } } + public string? Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new(value); } } /// /// Used to track the state of Prop2 @@ -71,7 +71,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Opti /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object? Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new(value); } } + public Object? Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 9fa35476f70c..ab4649b23059 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -70,7 +70,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object? Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new(value); } } + public Object? Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new(value); } } /// /// Used to track the state of EmptyMap @@ -84,7 +84,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object? EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new(value); } } + public Object? EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new(value); } } /// /// Used to track the state of MapOfMapProperty @@ -97,7 +97,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new(value); } } + public Dictionary>? MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new(value); } } /// /// Used to track the state of MapProperty @@ -110,7 +110,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary? MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new(value); } } + public Dictionary? MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -123,7 +123,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -136,7 +136,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } + public Object? MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -149,7 +149,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -162,7 +162,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } + public Dictionary? MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs index 37a0519bbd6b..b5839cf7d89b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs @@ -64,7 +64,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs index bf92565f9a2e..6f5badb3330e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -60,7 +60,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Message @@ -73,7 +73,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Message /// [JsonPropertyName("message")] - public string? Message { get { return this.MessageOption; } set { this.MessageOption = new(value); } } + public string? Message { get { return this.MessageOption.Value; } set { this.MessageOption = new(value); } } /// /// Used to track the state of Type @@ -86,7 +86,7 @@ public ApiResponse(Option code = default, Option message = defaul /// Gets or Sets Type /// [JsonPropertyName("type")] - public string? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public string? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs index 3dab90bbeb36..d8a53b95d62b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs @@ -60,7 +60,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string? ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new(value); } } + public string? ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new(value); } } /// /// Used to track the state of Cultivar @@ -73,7 +73,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string? Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new(value); } } + public string? Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new(value); } } /// /// Used to track the state of Origin @@ -86,7 +86,7 @@ public Apple(Option colorCode = default, Option cultivar = def /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string? Origin { get { return this.OriginOption; } set { this.OriginOption = new(value); } } + public string? Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs index cbb5ea8f0849..7b4424da8467 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs @@ -64,7 +64,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cd3309a5900e..5d163b0e388e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -56,7 +56,7 @@ public ArrayOfArrayOfNumberOnly(Option>?> arrayArrayNumber = /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new(value); } } + public List>? ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 90b6e4a8bd14..5da1266ef8ba 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -56,7 +56,7 @@ public ArrayOfNumberOnly(Option?> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List? ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new(value); } } + public List? ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs index 6be410aad46e..a6a98de666c1 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -60,7 +60,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new(value); } } + public List>? ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -73,7 +73,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new(value); } } + public List>? ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new(value); } } /// /// Used to track the state of ArrayOfString @@ -86,7 +86,7 @@ public ArrayTest(Option>?> arrayArrayOfInteger = default, Option /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List? ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new(value); } } + public List? ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs index 1352e54c4091..44708f4f1bc6 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs @@ -56,7 +56,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs index 584505890fdc..111f2888f706 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs @@ -64,7 +64,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs index e36a343dc5e2..c48de422dde8 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs @@ -67,7 +67,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string? ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new(value); } } + public string? ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new(value); } } /// /// Used to track the state of CapitalCamel @@ -80,7 +80,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string? CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new(value); } } + public string? CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new(value); } } /// /// Used to track the state of CapitalSnake @@ -93,7 +93,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string? CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new(value); } } + public string? CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -106,7 +106,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new(value); } } + public string? SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new(value); } } /// /// Used to track the state of SmallCamel @@ -119,7 +119,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string? SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new(value); } } + public string? SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new(value); } } /// /// Used to track the state of SmallSnake @@ -132,7 +132,7 @@ public Capitalization(Option aTTNAME = default, Option capital /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string? SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new(value); } } + public string? SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index 00b32d995aa3..fefffc9c52a1 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -57,7 +57,7 @@ public Cat(Option color = default, Option declawed = default) : /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs index 0369f8f37e97..1ab1ee8ace9b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs @@ -58,7 +58,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs index 4131c59373af..7e9d10517951 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs @@ -109,7 +109,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs index e38fad89dbad..21601e61bb8f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs @@ -56,7 +56,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 8981331c9e19..bb49c3bb31c1 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -57,7 +57,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new(value); } } + public DateOnly? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 0b8716d11ff4..2c13c4267b93 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -56,7 +56,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index 6129b69ce916..8dc57fd63638 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -57,7 +57,7 @@ public Dog(Option breed = default, Option color = default) : b /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string? Breed { get { return this.BreedOption; } set { this.BreedOption = new(value); } } + public string? Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs index b6400a09e802..1362d738caea 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs @@ -62,7 +62,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape? MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new(value); } } + public Shape? MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new(value); } } /// /// Used to track the state of NullableShape @@ -75,7 +75,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape? NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new(value); } } + public NullableShape? NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new(value); } } /// /// Used to track the state of ShapeOrNull @@ -88,7 +88,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new(value); } } + public ShapeOrNull? ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new(value); } } /// /// Used to track the state of Shapes @@ -101,7 +101,7 @@ public Drawing(Option mainShape = default, Option nullab /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List? Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new(value); } } + public List? Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs index 0cc70adbd2a2..4a8e487309f0 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -203,7 +203,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List? ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new(value); } } + public List? ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs index bdc5c25e1329..770e6ad63b43 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs @@ -57,7 +57,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string? SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new(value); } } + public string? SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d7c977f2fe4f..75bbe75be272 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -58,7 +58,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets File /// [JsonPropertyName("file")] - public File? File { get { return this.FileOption; } set { this.FileOption = new(value); } } + public File? File { get { return this.FileOption.Value; } set { this.FileOption = new(value); } } /// /// Used to track the state of Files @@ -71,7 +71,7 @@ public FileSchemaTestClass(Option file = default, Option?> fil /// Gets or Sets Files /// [JsonPropertyName("files")] - public List? Files { get { return this.FilesOption; } set { this.FilesOption = new(value); } } + public List? Files { get { return this.FilesOption.Value; } set { this.FilesOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs index ac4aeb49df5c..bd37a750c9bf 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs @@ -56,7 +56,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } set { this.BarOption = new(value); } } + public string? Bar { get { return this.BarOption.Value; } set { this.BarOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 9f57f4d6318a..4a094bf97111 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -56,7 +56,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public Foo? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs index 3daacf80952d..bef08805190b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs @@ -141,7 +141,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream? Binary { get { return this.BinaryOption; } set { this.BinaryOption = new(value); } } + public System.IO.Stream? Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new(value); } } /// /// Used to track the state of DateTime @@ -155,7 +155,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Decimal @@ -168,7 +168,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new(value); } } /// /// Used to track the state of Double @@ -181,7 +181,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -194,7 +194,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new(value); } } + public string? DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -207,7 +207,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new(value); } } + public string? DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new(value); } } /// /// Used to track the state of Float @@ -220,7 +220,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new(value); } } /// /// Used to track the state of Int32 @@ -233,7 +233,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new(value); } } /// /// Used to track the state of Int32Range @@ -246,7 +246,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new(value); } } /// /// Used to track the state of Int64 @@ -259,7 +259,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new(value); } } /// /// Used to track the state of Int64Negative @@ -272,7 +272,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -285,7 +285,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new(value); } } /// /// Used to track the state of Int64Positive @@ -298,7 +298,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -311,7 +311,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new(value); } } /// /// Used to track the state of Integer @@ -324,7 +324,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new(value); } } /// /// Used to track the state of PatternWithBackslash @@ -338,7 +338,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string? PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new(value); } } + public string? PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new(value); } } /// /// Used to track the state of PatternWithDigits @@ -352,7 +352,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string? PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new(value); } } + public string? PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -366,7 +366,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } + public string? PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new(value); } } /// /// Used to track the state of String @@ -379,7 +379,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string? String { get { return this.StringOption; } set { this.StringOption = new(value); } } + public string? String { get { return this.StringOption.Value; } set { this.StringOption = new(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -392,7 +392,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new(value); } } /// /// Used to track the state of UnsignedInteger @@ -405,7 +405,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new(value); } } /// /// Used to track the state of UnsignedLong @@ -418,7 +418,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new(value); } } /// /// Used to track the state of Uuid @@ -432,7 +432,7 @@ public FormatTest(byte[] @byte, DateOnly date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs index 6aa166222089..6c8a59e807fc 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs @@ -79,7 +79,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs index 31555694e81b..9627f7598d52 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs @@ -83,7 +83,7 @@ public GmFruit(Option apple, Option banana, Option col /// Gets or Sets Color /// [JsonPropertyName("color")] - public string? Color { get { return this.ColorOption; } set { this.ColorOption = new(value); } } + public string? Color { get { return this.ColorOption.Value; } set { this.ColorOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 0bf77a18dca2..ede2be85a3dc 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -58,7 +58,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -71,7 +71,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = de /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string? Foo { get { return this.FooOption; } } + public string? Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 71f3c4dc4ec0..9c8ff6d92b6f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -56,7 +56,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string? NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new(value); } } + public string? NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs index 024998ed763a..4ed30272f872 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs @@ -56,7 +56,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string? Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new(value); } } + public string? Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs index e54eebdaa1dc..281084bc4a5a 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -58,7 +58,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new(value); } } + public string? EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -71,7 +71,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new(value); } } + public string? UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs index 40dee3f15569..63057540d6ae 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs @@ -128,7 +128,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary? DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new(value); } } + public Dictionary? DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new(value); } } /// /// Used to track the state of IndirectMap @@ -141,7 +141,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary? IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new(value); } } + public Dictionary? IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new(value); } } /// /// Used to track the state of MapMapOfString @@ -154,7 +154,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new(value); } } + public Dictionary>? MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new(value); } } /// /// Used to track the state of MapOfEnumString @@ -167,7 +167,7 @@ public static string InnerEnumToJsonValue(InnerEnum? value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new(value); } } + public Dictionary? MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs index cdac03c3bcf4..356c4e4f2ecb 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -56,7 +56,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedAnyOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs index e9f36662dd80..9d35e8952a3d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -56,7 +56,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent? Content { get { return this.ContentOption; } set { this.ContentOption = new(value); } } + public MixedOneOfContent? Content { get { return this.ContentOption.Value; } set { this.ContentOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 3629d644571b..07b42ca23c89 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -62,7 +62,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new(value); } } /// /// Used to track the state of Map @@ -75,7 +75,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary? Map { get { return this.MapOption; } set { this.MapOption = new(value); } } + public Dictionary? Map { get { return this.MapOption.Value; } set { this.MapOption = new(value); } } /// /// Used to track the state of Uuid @@ -88,7 +88,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Used to track the state of UuidWithPattern @@ -101,7 +101,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs index 696681a920f3..9daad48ac636 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -56,7 +56,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public string? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs index 4b3f421263d4..dec2398fdb7a 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs @@ -58,7 +58,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Class /// [JsonPropertyName("class")] - public string? Class { get { return this.ClassOption; } set { this.ClassOption = new(value); } } + public string? Class { get { return this.ClassOption.Value; } set { this.ClassOption = new(value); } } /// /// Used to track the state of Name @@ -71,7 +71,7 @@ public Model200Response(Option @class = default, Option name = de /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs index 49dcb68c571f..57fcd205e238 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs @@ -56,7 +56,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string? VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new(value); } } + public string? VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs index 72938274943d..4b30453bff93 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs @@ -68,7 +68,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Property /// [JsonPropertyName("property")] - public string? Property { get { return this.PropertyOption; } set { this.PropertyOption = new(value); } } + public string? Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new(value); } } /// /// Used to track the state of SnakeCase @@ -81,7 +81,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -94,7 +94,7 @@ public Name(int varName, Option property = default, Option snakeC /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs index aa2baca6ee31..29d28ec3fe1f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs @@ -78,7 +78,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new(value); } } + public List? ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -91,7 +91,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new(value); } } + public List? ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new(value); } } /// /// Used to track the state of ArrayNullableProp @@ -104,7 +104,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List? ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new(value); } } + public List? ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new(value); } } /// /// Used to track the state of BooleanProp @@ -117,7 +117,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new(value); } } /// /// Used to track the state of DateProp @@ -130,7 +130,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateOnly? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new(value); } } + public DateOnly? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new(value); } } /// /// Used to track the state of DatetimeProp @@ -143,7 +143,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new(value); } } /// /// Used to track the state of IntegerProp @@ -156,7 +156,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new(value); } } /// /// Used to track the state of NumberProp @@ -169,7 +169,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -182,7 +182,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new(value); } } + public Dictionary? ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -195,7 +195,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new(value); } } + public Dictionary? ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new(value); } } /// /// Used to track the state of ObjectNullableProp @@ -208,7 +208,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new(value); } } + public Dictionary? ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new(value); } } /// /// Used to track the state of StringProp @@ -221,7 +221,7 @@ public NullableClass(Option?> arrayAndItemsNullableProp = default, /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string? StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new(value); } } + public string? StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs index d0c107c1a216..d8f08bda7e3b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -57,7 +57,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs index 3662647e6562..ebcd84e339b1 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -56,7 +56,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index b2fced877576..9ca2454087c3 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -63,7 +63,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List? Bars { get { return this.BarsOption; } set { this.BarsOption = new(value); } } + public List? Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new(value); } } /// /// Used to track the state of DeprecatedRef @@ -77,7 +77,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new(value); } } + public DeprecatedObject? DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new(value); } } /// /// Used to track the state of Id @@ -91,7 +91,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Uuid @@ -104,7 +104,7 @@ public ObjectWithDeprecatedFields(Option?> bars = default, Option [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs index 0f45f32a5dc1..e2122376c4eb 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs @@ -161,7 +161,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new(value); } } /// /// Used to track the state of Id @@ -174,7 +174,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of PetId @@ -187,7 +187,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new(value); } } /// /// Used to track the state of Quantity @@ -200,7 +200,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new(value); } } /// /// Used to track the state of ShipDate @@ -214,7 +214,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs index 834a7f3516f1..5971c2e17137 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -60,7 +60,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new(value); } } /// /// Used to track the state of MyNumber @@ -73,7 +73,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new(value); } } /// /// Used to track the state of MyString @@ -86,7 +86,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string? MyString { get { return this.MyStringOption; } set { this.MyStringOption = new(value); } } + public string? MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs index 45da7d04ae56..f293b149d1e5 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs @@ -174,7 +174,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category? Category { get { return this.CategoryOption; } set { this.CategoryOption = new(value); } } + public Category? Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new(value); } } /// /// Used to track the state of Id @@ -187,7 +187,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Tags @@ -200,7 +200,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List? Tags { get { return this.TagsOption; } set { this.TagsOption = new(value); } } + public List? Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 4d458434bb1c..ba28de8cd9f5 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -58,7 +58,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string? Bar { get { return this.BarOption; } } + public string? Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -71,7 +71,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = defaul /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string? Baz { get { return this.BazOption; } set { this.BazOption = new(value); } } + public string? Baz { get { return this.BazOption.Value; } set { this.BazOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs index 269284919791..cfc639eb6e8c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1415,7 +1415,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1428,7 +1428,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1441,7 +1441,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new(value); } } + public DateOnly? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1454,7 +1454,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1467,7 +1467,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } + public List? NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1480,7 +1480,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1493,7 +1493,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1506,7 +1506,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } + public string? NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1520,7 +1520,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1533,7 +1533,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } + public List? NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1546,7 +1546,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1559,7 +1559,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1572,7 +1572,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new(value); } } + public string? NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1586,7 +1586,7 @@ public static RequiredNullableEnumStringEnum RequiredNullableEnumStringEnumFromS /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 1c1f18fd1dec..966694b51fc2 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -61,7 +61,7 @@ public Result(Option code = default, Option? /// /// Result code [JsonPropertyName("code")] - public string? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public string? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data @@ -75,7 +75,7 @@ public Result(Option code = default, Option? /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -89,7 +89,7 @@ public Result(Option code = default, Option? /// /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs index 1544a23710c1..99b0b0e5dba7 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs @@ -74,7 +74,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new(value); } } /// /// Used to track the state of Unsafe @@ -87,7 +87,7 @@ public Return(string @lock, string? @abstract = default, Option varReturn /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string? Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new(value); } } + public string? Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 28b65b24ecf3..7c8c3e101304 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -58,7 +58,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole? Role { get { return this.RoleOption; } set { this.RoleOption = new(value); } } + public RolesReportsHashRole? Role { get { return this.RoleOption.Value; } set { this.RoleOption = new(value); } } /// /// Used to track the state of RoleUuid @@ -71,7 +71,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index ba4ac84d8e20..4c74404a682e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -56,7 +56,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs index 0cf9332983fd..1a1f7b635e25 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -58,7 +58,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new(value); } } + public string? VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new(value); } } /// /// Used to track the state of SpecialPropertyName @@ -71,7 +71,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs index a350814f2c88..b738912d4c08 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs @@ -58,7 +58,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of Name @@ -71,7 +71,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string? Name { get { return this.NameOption; } set { this.NameOption = new(value); } } + public string? Name { get { return this.NameOption.Value; } set { this.NameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b5f8d88ed68d..998e1c432f20 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -56,7 +56,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string? Value { get { return this.ValueOption; } set { this.ValueOption = new(value); } } + public string? Value { get { return this.ValueOption.Value; } set { this.ValueOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 37acae1c88df..3edf20ab42ee 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -56,7 +56,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new(value); } } + public List? TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index de60d7c2281f..97146f4f3d35 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -56,7 +56,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option somePropert /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string? SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new(value); } } + public string? SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index 933d45815f83..11461549854b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -74,7 +74,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary? Data { get { return this.DataOption; } set { this.DataOption = new(value); } } + public Dictionary? Data { get { return this.DataOption.Value; } set { this.DataOption = new(value); } } /// /// Used to track the state of Uuid @@ -88,7 +88,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string? Uuid { get { return this.UuidOption; } set { this.UuidOption = new(value); } } + public string? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs index 6af3ab9df35c..8b3d616127fe 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs @@ -79,7 +79,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object? AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new(value); } } + public Object? AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -93,7 +93,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new(value); } } + public Object? AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new(value); } } /// /// Used to track the state of Email @@ -106,7 +106,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Email /// [JsonPropertyName("email")] - public string? Email { get { return this.EmailOption; } set { this.EmailOption = new(value); } } + public string? Email { get { return this.EmailOption.Value; } set { this.EmailOption = new(value); } } /// /// Used to track the state of FirstName @@ -119,7 +119,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string? FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new(value); } } + public string? FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new(value); } } /// /// Used to track the state of Id @@ -132,7 +132,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new(value); } } /// /// Used to track the state of LastName @@ -145,7 +145,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string? LastName { get { return this.LastNameOption; } set { this.LastNameOption = new(value); } } + public string? LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -159,7 +159,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } + public Object? ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -173,7 +173,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } + public Object? ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new(value); } } /// /// Used to track the state of Password @@ -186,7 +186,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Password /// [JsonPropertyName("password")] - public string? Password { get { return this.PasswordOption; } set { this.PasswordOption = new(value); } } + public string? Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new(value); } } /// /// Used to track the state of Phone @@ -199,7 +199,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string? Phone { get { return this.PhoneOption; } set { this.PhoneOption = new(value); } } + public string? Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new(value); } } /// /// Used to track the state of UserStatus @@ -213,7 +213,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new(value); } } /// /// Used to track the state of Username @@ -226,7 +226,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNu /// Gets or Sets Username /// [JsonPropertyName("username")] - public string? Username { get { return this.UsernameOption; } set { this.UsernameOption = new(value); } } + public string? Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs index 080a4f804022..8711b13d8742 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs @@ -66,7 +66,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new(value); } } /// /// Used to track the state of HasTeeth @@ -79,7 +79,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index d81a3689e6e1..aec5f0281cd6 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -56,7 +56,7 @@ public NowGet200Response(Option now = default, Option toda /// Gets or Sets Now /// [JsonPropertyName("now")] - public DateTime? Now { get { return this.NowOption; } set { this.NowOption = new(value); } } + public DateTime? Now { get { return this.NowOption.Value; } set { this.NowOption = new(value); } } /// /// Used to track the state of Today @@ -69,7 +69,7 @@ public NowGet200Response(Option now = default, Option toda /// Gets or Sets Today /// [JsonPropertyName("today")] - public DateTime? Today { get { return this.TodayOption; } set { this.TodayOption = new(value); } } + public DateTime? Today { get { return this.TodayOption.Value; } set { this.TodayOption = new(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 4562d4ceb728..c6919ac37cf6 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -53,7 +53,7 @@ public Activity(Option [JsonPropertyName("activity_outputs")] - public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption; } set { this.ActivityOutputsOption = new Option>>(value); } } + public Dictionary> ActivityOutputs { get { return this.ActivityOutputsOption.Value; } set { this.ActivityOutputsOption = new Option>>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index db832150ed96..78cbd0b330d8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -55,7 +55,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop1 /// [JsonPropertyName("prop1")] - public string Prop1 { get { return this.Prop1Option; } set { this.Prop1Option = new Option(value); } } + public string Prop1 { get { return this.Prop1Option.Value; } set { this.Prop1Option = new Option(value); } } /// /// Used to track the state of Prop2 @@ -68,7 +68,7 @@ public ActivityOutputElementRepresentation(Option prop1 = default, Optio /// Gets or Sets Prop2 /// [JsonPropertyName("prop2")] - public Object Prop2 { get { return this.Prop2Option; } set { this.Prop2Option = new Option(value); } } + public Object Prop2 { get { return this.Prop2Option.Value; } set { this.Prop2Option = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index f70c7a4c5fc3..7b1f22a3f695 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -67,7 +67,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("anytype_1")] - public Object Anytype1 { get { return this.Anytype1Option; } set { this.Anytype1Option = new Option(value); } } + public Object Anytype1 { get { return this.Anytype1Option.Value; } set { this.Anytype1Option = new Option(value); } } /// /// Used to track the state of EmptyMap @@ -81,7 +81,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option /// an object with no declared properties and no undeclared properties, hence it's an empty map. [JsonPropertyName("empty_map")] - public Object EmptyMap { get { return this.EmptyMapOption; } set { this.EmptyMapOption = new Option(value); } } + public Object EmptyMap { get { return this.EmptyMapOption.Value; } set { this.EmptyMapOption = new Option(value); } } /// /// Used to track the state of MapOfMapProperty @@ -94,7 +94,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_of_map_property")] - public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption; } set { this.MapOfMapPropertyOption = new Option>>(value); } } + public Dictionary> MapOfMapProperty { get { return this.MapOfMapPropertyOption.Value; } set { this.MapOfMapPropertyOption = new Option>>(value); } } /// /// Used to track the state of MapProperty @@ -107,7 +107,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_property")] - public Dictionary MapProperty { get { return this.MapPropertyOption; } set { this.MapPropertyOption = new Option>(value); } } + public Dictionary MapProperty { get { return this.MapPropertyOption.Value; } set { this.MapPropertyOption = new Option>(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype1 @@ -120,7 +120,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_1")] - public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new Option(value); } } + public Object MapWithUndeclaredPropertiesAnytype1 { get { return this.MapWithUndeclaredPropertiesAnytype1Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype1Option = new Option(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype2 @@ -133,7 +133,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_2")] - public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new Option(value); } } + public Object MapWithUndeclaredPropertiesAnytype2 { get { return this.MapWithUndeclaredPropertiesAnytype2Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype2Option = new Option(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesAnytype3 @@ -146,7 +146,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_anytype_3")] - public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new Option>(value); } } + public Dictionary MapWithUndeclaredPropertiesAnytype3 { get { return this.MapWithUndeclaredPropertiesAnytype3Option.Value; } set { this.MapWithUndeclaredPropertiesAnytype3Option = new Option>(value); } } /// /// Used to track the state of MapWithUndeclaredPropertiesString @@ -159,7 +159,7 @@ public AdditionalPropertiesClass(Option anytype1 = default, Option [JsonPropertyName("map_with_undeclared_properties_string")] - public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption; } set { this.MapWithUndeclaredPropertiesStringOption = new Option>(value); } } + public Dictionary MapWithUndeclaredPropertiesString { get { return this.MapWithUndeclaredPropertiesStringOption.Value; } set { this.MapWithUndeclaredPropertiesStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs index f172cd70bc53..ce38f4cef730 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -61,7 +61,7 @@ public Animal(Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 74dbae3c6ba3..e6fdc4fb07f1 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -57,7 +57,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Code /// [JsonPropertyName("code")] - public int? Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public int? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Message @@ -70,7 +70,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Message /// [JsonPropertyName("message")] - public string Message { get { return this.MessageOption; } set { this.MessageOption = new Option(value); } } + public string Message { get { return this.MessageOption.Value; } set { this.MessageOption = new Option(value); } } /// /// Used to track the state of Type @@ -83,7 +83,7 @@ public ApiResponse(Option code = default, Option message = default /// Gets or Sets Type /// [JsonPropertyName("type")] - public string Type { get { return this.TypeOption; } set { this.TypeOption = new Option(value); } } + public string Type { get { return this.TypeOption.Value; } set { this.TypeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs index df3bc9af06cc..990bd8d17acb 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -57,7 +57,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets ColorCode /// [JsonPropertyName("color_code")] - public string ColorCode { get { return this.ColorCodeOption; } set { this.ColorCodeOption = new Option(value); } } + public string ColorCode { get { return this.ColorCodeOption.Value; } set { this.ColorCodeOption = new Option(value); } } /// /// Used to track the state of Cultivar @@ -70,7 +70,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Cultivar /// [JsonPropertyName("cultivar")] - public string Cultivar { get { return this.CultivarOption; } set { this.CultivarOption = new Option(value); } } + public string Cultivar { get { return this.CultivarOption.Value; } set { this.CultivarOption = new Option(value); } } /// /// Used to track the state of Origin @@ -83,7 +83,7 @@ public Apple(Option colorCode = default, Option cultivar = defau /// Gets or Sets Origin /// [JsonPropertyName("origin")] - public string Origin { get { return this.OriginOption; } set { this.OriginOption = new Option(value); } } + public string Origin { get { return this.OriginOption.Value; } set { this.OriginOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index 1a839ecb01b6..14a48152dda2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -61,7 +61,7 @@ public AppleReq(string cultivar, Option mealy = default) /// Gets or Sets Mealy /// [JsonPropertyName("mealy")] - public bool? Mealy { get { return this.MealyOption; } set { this.MealyOption = new Option(value); } } + public bool? Mealy { get { return this.MealyOption.Value; } set { this.MealyOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cea3f5a4ba50..2c01bb986fc9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfArrayOfNumberOnly(Option>> arrayArrayNumber = d /// Gets or Sets ArrayArrayNumber /// [JsonPropertyName("ArrayArrayNumber")] - public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption; } set { this.ArrayArrayNumberOption = new Option>>(value); } } + public List> ArrayArrayNumber { get { return this.ArrayArrayNumberOption.Value; } set { this.ArrayArrayNumberOption = new Option>>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 47bac6ba97c6..0ba7a1e496b1 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -53,7 +53,7 @@ public ArrayOfNumberOnly(Option> arrayNumber = default) /// Gets or Sets ArrayNumber /// [JsonPropertyName("ArrayNumber")] - public List ArrayNumber { get { return this.ArrayNumberOption; } set { this.ArrayNumberOption = new Option>(value); } } + public List ArrayNumber { get { return this.ArrayNumberOption.Value; } set { this.ArrayNumberOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 1992bf9e932d..81e3c7c83f82 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -57,7 +57,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfInteger /// [JsonPropertyName("array_array_of_integer")] - public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption; } set { this.ArrayArrayOfIntegerOption = new Option>>(value); } } + public List> ArrayArrayOfInteger { get { return this.ArrayArrayOfIntegerOption.Value; } set { this.ArrayArrayOfIntegerOption = new Option>>(value); } } /// /// Used to track the state of ArrayArrayOfModel @@ -70,7 +70,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayArrayOfModel /// [JsonPropertyName("array_array_of_model")] - public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption; } set { this.ArrayArrayOfModelOption = new Option>>(value); } } + public List> ArrayArrayOfModel { get { return this.ArrayArrayOfModelOption.Value; } set { this.ArrayArrayOfModelOption = new Option>>(value); } } /// /// Used to track the state of ArrayOfString @@ -83,7 +83,7 @@ public ArrayTest(Option>> arrayArrayOfInteger = default, Option< /// Gets or Sets ArrayOfString /// [JsonPropertyName("array_of_string")] - public List ArrayOfString { get { return this.ArrayOfStringOption; } set { this.ArrayOfStringOption = new Option>(value); } } + public List ArrayOfString { get { return this.ArrayOfStringOption.Value; } set { this.ArrayOfStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d7b7e8188f75..90966bbb326e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -53,7 +53,7 @@ public Banana(Option lengthCm = default) /// Gets or Sets LengthCm /// [JsonPropertyName("lengthCm")] - public decimal? LengthCm { get { return this.LengthCmOption; } set { this.LengthCmOption = new Option(value); } } + public decimal? LengthCm { get { return this.LengthCmOption.Value; } set { this.LengthCmOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index 8aa8da44caea..ec58edf3bfb9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -61,7 +61,7 @@ public BananaReq(decimal lengthCm, Option sweet = default) /// Gets or Sets Sweet /// [JsonPropertyName("sweet")] - public bool? Sweet { get { return this.SweetOption; } set { this.SweetOption = new Option(value); } } + public bool? Sweet { get { return this.SweetOption.Value; } set { this.SweetOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index a1fb0b3eb574..6f593640eb2d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -64,7 +64,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// /// Name of the pet [JsonPropertyName("ATT_NAME")] - public string ATT_NAME { get { return this.ATT_NAMEOption; } set { this.ATT_NAMEOption = new Option(value); } } + public string ATT_NAME { get { return this.ATT_NAMEOption.Value; } set { this.ATT_NAMEOption = new Option(value); } } /// /// Used to track the state of CapitalCamel @@ -77,7 +77,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalCamel /// [JsonPropertyName("CapitalCamel")] - public string CapitalCamel { get { return this.CapitalCamelOption; } set { this.CapitalCamelOption = new Option(value); } } + public string CapitalCamel { get { return this.CapitalCamelOption.Value; } set { this.CapitalCamelOption = new Option(value); } } /// /// Used to track the state of CapitalSnake @@ -90,7 +90,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets CapitalSnake /// [JsonPropertyName("Capital_Snake")] - public string CapitalSnake { get { return this.CapitalSnakeOption; } set { this.CapitalSnakeOption = new Option(value); } } + public string CapitalSnake { get { return this.CapitalSnakeOption.Value; } set { this.CapitalSnakeOption = new Option(value); } } /// /// Used to track the state of SCAETHFlowPoints @@ -103,7 +103,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SCAETHFlowPoints /// [JsonPropertyName("SCA_ETH_Flow_Points")] - public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption; } set { this.SCAETHFlowPointsOption = new Option(value); } } + public string SCAETHFlowPoints { get { return this.SCAETHFlowPointsOption.Value; } set { this.SCAETHFlowPointsOption = new Option(value); } } /// /// Used to track the state of SmallCamel @@ -116,7 +116,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallCamel /// [JsonPropertyName("smallCamel")] - public string SmallCamel { get { return this.SmallCamelOption; } set { this.SmallCamelOption = new Option(value); } } + public string SmallCamel { get { return this.SmallCamelOption.Value; } set { this.SmallCamelOption = new Option(value); } } /// /// Used to track the state of SmallSnake @@ -129,7 +129,7 @@ public Capitalization(Option aTTNAME = default, Option capitalCa /// Gets or Sets SmallSnake /// [JsonPropertyName("small_Snake")] - public string SmallSnake { get { return this.SmallSnakeOption; } set { this.SmallSnakeOption = new Option(value); } } + public string SmallSnake { get { return this.SmallSnakeOption.Value; } set { this.SmallSnakeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index 9ed61c34f667..b7d785142b83 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -54,7 +54,7 @@ public Cat(Option color = default, Option declawed = default) : b /// Gets or Sets Declawed /// [JsonPropertyName("declawed")] - public bool? Declawed { get { return this.DeclawedOption; } set { this.DeclawedOption = new Option(value); } } + public bool? Declawed { get { return this.DeclawedOption.Value; } set { this.DeclawedOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index 7db5ba3129ff..f3cc4777b9d3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -55,7 +55,7 @@ public Category(Option id = default, string name = @"default-name") /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Gets or Sets Name diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index cce039237aea..147a228c8950 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -106,7 +106,7 @@ public static string PetTypeEnumToJsonValue(PetTypeEnum value) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// The discriminator diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 7c49d7adb55c..1e7364181d3d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -53,7 +53,7 @@ public ClassModel(Option @class = default) /// Gets or Sets Class /// [JsonPropertyName("_class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new Option(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 62ae935e4564..c84d556d4b1c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -54,7 +54,7 @@ public DateOnlyClass(Option dateOnlyProperty = default) /// /* Fri Jul 21 00:00:00 UTC 2017 */ [JsonPropertyName("dateOnlyProperty")] - public DateTime? DateOnlyProperty { get { return this.DateOnlyPropertyOption; } set { this.DateOnlyPropertyOption = new Option(value); } } + public DateTime? DateOnlyProperty { get { return this.DateOnlyPropertyOption.Value; } set { this.DateOnlyPropertyOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 08067c5cc07c..d9f800beabd2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -53,7 +53,7 @@ public DeprecatedObject(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 509278540c44..4164f84fe4d6 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -54,7 +54,7 @@ public Dog(Option breed = default, Option color = default) : bas /// Gets or Sets Breed /// [JsonPropertyName("breed")] - public string Breed { get { return this.BreedOption; } set { this.BreedOption = new Option(value); } } + public string Breed { get { return this.BreedOption.Value; } set { this.BreedOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index e83b95303760..96904b590ba7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -59,7 +59,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets MainShape /// [JsonPropertyName("mainShape")] - public Shape MainShape { get { return this.MainShapeOption; } set { this.MainShapeOption = new Option(value); } } + public Shape MainShape { get { return this.MainShapeOption.Value; } set { this.MainShapeOption = new Option(value); } } /// /// Used to track the state of NullableShape @@ -72,7 +72,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets NullableShape /// [JsonPropertyName("nullableShape")] - public NullableShape NullableShape { get { return this.NullableShapeOption; } set { this.NullableShapeOption = new Option(value); } } + public NullableShape NullableShape { get { return this.NullableShapeOption.Value; } set { this.NullableShapeOption = new Option(value); } } /// /// Used to track the state of ShapeOrNull @@ -85,7 +85,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets ShapeOrNull /// [JsonPropertyName("shapeOrNull")] - public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption; } set { this.ShapeOrNullOption = new Option(value); } } + public ShapeOrNull ShapeOrNull { get { return this.ShapeOrNullOption.Value; } set { this.ShapeOrNullOption = new Option(value); } } /// /// Used to track the state of Shapes @@ -98,7 +98,7 @@ public Drawing(Option mainShape = default, Option nullable /// Gets or Sets Shapes /// [JsonPropertyName("shapes")] - public List Shapes { get { return this.ShapesOption; } set { this.ShapesOption = new Option>(value); } } + public List Shapes { get { return this.ShapesOption.Value; } set { this.ShapesOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index e820832b3e88..e285c7523d4c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -200,7 +200,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets ArrayEnum /// [JsonPropertyName("array_enum")] - public List ArrayEnum { get { return this.ArrayEnumOption; } set { this.ArrayEnumOption = new Option>(value); } } + public List ArrayEnum { get { return this.ArrayEnumOption.Value; } set { this.ArrayEnumOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs index 092f10c09324..93d21794aad5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -54,7 +54,7 @@ public File(Option sourceURI = default) /// /// Test capitalization [JsonPropertyName("sourceURI")] - public string SourceURI { get { return this.SourceURIOption; } set { this.SourceURIOption = new Option(value); } } + public string SourceURI { get { return this.SourceURIOption.Value; } set { this.SourceURIOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 76db6338890f..6e250993445c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -55,7 +55,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets File /// [JsonPropertyName("file")] - public File File { get { return this.FileOption; } set { this.FileOption = new Option(value); } } + public File File { get { return this.FileOption.Value; } set { this.FileOption = new Option(value); } } /// /// Used to track the state of Files @@ -68,7 +68,7 @@ public FileSchemaTestClass(Option file = default, Option> files /// Gets or Sets Files /// [JsonPropertyName("files")] - public List Files { get { return this.FilesOption; } set { this.FilesOption = new Option>(value); } } + public List Files { get { return this.FilesOption.Value; } set { this.FilesOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 3eeca0aa2112..e8084ae32149 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -53,7 +53,7 @@ public Foo(Option bar = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } set { this.BarOption = new Option(value); } } + public string Bar { get { return this.BarOption.Value; } set { this.BarOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 285e193a7e15..01eef946bfc7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -53,7 +53,7 @@ public FooGetDefaultResponse(Option @string = default) /// Gets or Sets String /// [JsonPropertyName("string")] - public Foo String { get { return this.StringOption; } set { this.StringOption = new Option(value); } } + public Foo String { get { return this.StringOption.Value; } set { this.StringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index ae0854b6be45..a539802f3140 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -138,7 +138,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Binary /// [JsonPropertyName("binary")] - public System.IO.Stream Binary { get { return this.BinaryOption; } set { this.BinaryOption = new Option(value); } } + public System.IO.Stream Binary { get { return this.BinaryOption.Value; } set { this.BinaryOption = new Option(value); } } /// /// Used to track the state of DateTime @@ -152,7 +152,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /* 2007-12-03T10:15:30+01:00 */ [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new Option(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new Option(value); } } /// /// Used to track the state of Decimal @@ -165,7 +165,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Decimal /// [JsonPropertyName("decimal")] - public decimal? Decimal { get { return this.DecimalOption; } set { this.DecimalOption = new Option(value); } } + public decimal? Decimal { get { return this.DecimalOption.Value; } set { this.DecimalOption = new Option(value); } } /// /// Used to track the state of Double @@ -178,7 +178,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Double /// [JsonPropertyName("double")] - public double? Double { get { return this.DoubleOption; } set { this.DoubleOption = new Option(value); } } + public double? Double { get { return this.DoubleOption.Value; } set { this.DoubleOption = new Option(value); } } /// /// Used to track the state of DuplicatePropertyName2 @@ -191,7 +191,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets DuplicatePropertyName2 /// [JsonPropertyName("duplicate_property_name")] - public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option; } set { this.DuplicatePropertyName2Option = new Option(value); } } + public string DuplicatePropertyName2 { get { return this.DuplicatePropertyName2Option.Value; } set { this.DuplicatePropertyName2Option = new Option(value); } } /// /// Used to track the state of DuplicatePropertyName @@ -204,7 +204,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets DuplicatePropertyName /// [JsonPropertyName("@duplicate_property_name")] - public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption; } set { this.DuplicatePropertyNameOption = new Option(value); } } + public string DuplicatePropertyName { get { return this.DuplicatePropertyNameOption.Value; } set { this.DuplicatePropertyNameOption = new Option(value); } } /// /// Used to track the state of Float @@ -217,7 +217,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Float /// [JsonPropertyName("float")] - public float? Float { get { return this.FloatOption; } set { this.FloatOption = new Option(value); } } + public float? Float { get { return this.FloatOption.Value; } set { this.FloatOption = new Option(value); } } /// /// Used to track the state of Int32 @@ -230,7 +230,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int32 /// [JsonPropertyName("int32")] - public int? Int32 { get { return this.Int32Option; } set { this.Int32Option = new Option(value); } } + public int? Int32 { get { return this.Int32Option.Value; } set { this.Int32Option = new Option(value); } } /// /// Used to track the state of Int32Range @@ -243,7 +243,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int32Range /// [JsonPropertyName("int32Range")] - public int? Int32Range { get { return this.Int32RangeOption; } set { this.Int32RangeOption = new Option(value); } } + public int? Int32Range { get { return this.Int32RangeOption.Value; } set { this.Int32RangeOption = new Option(value); } } /// /// Used to track the state of Int64 @@ -256,7 +256,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64 /// [JsonPropertyName("int64")] - public long? Int64 { get { return this.Int64Option; } set { this.Int64Option = new Option(value); } } + public long? Int64 { get { return this.Int64Option.Value; } set { this.Int64Option = new Option(value); } } /// /// Used to track the state of Int64Negative @@ -269,7 +269,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64Negative /// [JsonPropertyName("int64Negative")] - public long? Int64Negative { get { return this.Int64NegativeOption; } set { this.Int64NegativeOption = new Option(value); } } + public long? Int64Negative { get { return this.Int64NegativeOption.Value; } set { this.Int64NegativeOption = new Option(value); } } /// /// Used to track the state of Int64NegativeExclusive @@ -282,7 +282,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64NegativeExclusive /// [JsonPropertyName("int64NegativeExclusive")] - public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption; } set { this.Int64NegativeExclusiveOption = new Option(value); } } + public long? Int64NegativeExclusive { get { return this.Int64NegativeExclusiveOption.Value; } set { this.Int64NegativeExclusiveOption = new Option(value); } } /// /// Used to track the state of Int64Positive @@ -295,7 +295,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64Positive /// [JsonPropertyName("int64Positive")] - public long? Int64Positive { get { return this.Int64PositiveOption; } set { this.Int64PositiveOption = new Option(value); } } + public long? Int64Positive { get { return this.Int64PositiveOption.Value; } set { this.Int64PositiveOption = new Option(value); } } /// /// Used to track the state of Int64PositiveExclusive @@ -308,7 +308,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Int64PositiveExclusive /// [JsonPropertyName("int64PositiveExclusive")] - public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption; } set { this.Int64PositiveExclusiveOption = new Option(value); } } + public long? Int64PositiveExclusive { get { return this.Int64PositiveExclusiveOption.Value; } set { this.Int64PositiveExclusiveOption = new Option(value); } } /// /// Used to track the state of Integer @@ -321,7 +321,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets Integer /// [JsonPropertyName("integer")] - public int? Integer { get { return this.IntegerOption; } set { this.IntegerOption = new Option(value); } } + public int? Integer { get { return this.IntegerOption.Value; } set { this.IntegerOption = new Option(value); } } /// /// Used to track the state of PatternWithBackslash @@ -335,7 +335,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// None [JsonPropertyName("pattern_with_backslash")] - public string PatternWithBackslash { get { return this.PatternWithBackslashOption; } set { this.PatternWithBackslashOption = new Option(value); } } + public string PatternWithBackslash { get { return this.PatternWithBackslashOption.Value; } set { this.PatternWithBackslashOption = new Option(value); } } /// /// Used to track the state of PatternWithDigits @@ -349,7 +349,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// A string that is a 10 digit number. Can have leading zeros. [JsonPropertyName("pattern_with_digits")] - public string PatternWithDigits { get { return this.PatternWithDigitsOption; } set { this.PatternWithDigitsOption = new Option(value); } } + public string PatternWithDigits { get { return this.PatternWithDigitsOption.Value; } set { this.PatternWithDigitsOption = new Option(value); } } /// /// Used to track the state of PatternWithDigitsAndDelimiter @@ -363,7 +363,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. [JsonPropertyName("pattern_with_digits_and_delimiter")] - public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption; } set { this.PatternWithDigitsAndDelimiterOption = new Option(value); } } + public string PatternWithDigitsAndDelimiter { get { return this.PatternWithDigitsAndDelimiterOption.Value; } set { this.PatternWithDigitsAndDelimiterOption = new Option(value); } } /// /// Used to track the state of String @@ -376,7 +376,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets String /// [JsonPropertyName("string")] - public string String { get { return this.StringOption; } set { this.StringOption = new Option(value); } } + public string String { get { return this.StringOption.Value; } set { this.StringOption = new Option(value); } } /// /// Used to track the state of StringFormattedAsDecimal @@ -389,7 +389,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets StringFormattedAsDecimal /// [JsonPropertyName("string_formatted_as_decimal")] - public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption; } set { this.StringFormattedAsDecimalOption = new Option(value); } } + public decimal? StringFormattedAsDecimal { get { return this.StringFormattedAsDecimalOption.Value; } set { this.StringFormattedAsDecimalOption = new Option(value); } } /// /// Used to track the state of UnsignedInteger @@ -402,7 +402,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets UnsignedInteger /// [JsonPropertyName("unsigned_integer")] - public uint? UnsignedInteger { get { return this.UnsignedIntegerOption; } set { this.UnsignedIntegerOption = new Option(value); } } + public uint? UnsignedInteger { get { return this.UnsignedIntegerOption.Value; } set { this.UnsignedIntegerOption = new Option(value); } } /// /// Used to track the state of UnsignedLong @@ -415,7 +415,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// Gets or Sets UnsignedLong /// [JsonPropertyName("unsigned_long")] - public ulong? UnsignedLong { get { return this.UnsignedLongOption; } set { this.UnsignedLongOption = new Option(value); } } + public ulong? UnsignedLong { get { return this.UnsignedLongOption.Value; } set { this.UnsignedLongOption = new Option(value); } } /// /// Used to track the state of Uuid @@ -429,7 +429,7 @@ public FormatTest(byte[] @byte, DateTime date, decimal number, string password, /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index cc8b4530f01c..05d7005b3c4b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -76,7 +76,7 @@ public Fruit(Banana banana, Option color = default) /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index b4298f04b511..bb202258e403 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -80,7 +80,7 @@ public GmFruit(Option apple, Option banana, Option color /// Gets or Sets Color /// [JsonPropertyName("color")] - public string Color { get { return this.ColorOption; } set { this.ColorOption = new Option(value); } } + public string Color { get { return this.ColorOption.Value; } set { this.ColorOption = new Option(value); } } /// /// Returns the string presentation of the object diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index a4e67f73a8e5..64130e7cfbf5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -55,7 +55,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Foo @@ -68,7 +68,7 @@ internal HasOnlyReadOnly(Option bar = default, Option foo = defa /// Gets or Sets Foo /// [JsonPropertyName("foo")] - public string Foo { get { return this.FooOption; } } + public string Foo { get { return this.FooOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs index 16afc025fa03..641c18e39ec0 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HealthCheckResult.cs @@ -53,7 +53,7 @@ public HealthCheckResult(Option nullableMessage = default) /// Gets or Sets NullableMessage /// [JsonPropertyName("NullableMessage")] - public string NullableMessage { get { return this.NullableMessageOption; } set { this.NullableMessageOption = new Option(value); } } + public string NullableMessage { get { return this.NullableMessageOption.Value; } set { this.NullableMessageOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs index 050d58f85c23..f3fac3c39845 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -53,7 +53,7 @@ public List(Option var123List = default) /// Gets or Sets Var123List /// [JsonPropertyName("123-list")] - public string Var123List { get { return this.Var123ListOption; } set { this.Var123ListOption = new Option(value); } } + public string Var123List { get { return this.Var123ListOption.Value; } set { this.Var123ListOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 522ba51e6cb3..b34577b8a881 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -55,7 +55,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets EscapedLiteralString /// [JsonPropertyName("escapedLiteralString")] - public string EscapedLiteralString { get { return this.EscapedLiteralStringOption; } set { this.EscapedLiteralStringOption = new Option(value); } } + public string EscapedLiteralString { get { return this.EscapedLiteralStringOption.Value; } set { this.EscapedLiteralStringOption = new Option(value); } } /// /// Used to track the state of UnescapedLiteralString @@ -68,7 +68,7 @@ public LiteralStringClass(Option escapedLiteralString = default, Option< /// Gets or Sets UnescapedLiteralString /// [JsonPropertyName("unescapedLiteralString")] - public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption; } set { this.UnescapedLiteralStringOption = new Option(value); } } + public string UnescapedLiteralString { get { return this.UnescapedLiteralStringOption.Value; } set { this.UnescapedLiteralStringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index 0af46ec34e41..6f322da6a9bf 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -125,7 +125,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets DirectMap /// [JsonPropertyName("direct_map")] - public Dictionary DirectMap { get { return this.DirectMapOption; } set { this.DirectMapOption = new Option>(value); } } + public Dictionary DirectMap { get { return this.DirectMapOption.Value; } set { this.DirectMapOption = new Option>(value); } } /// /// Used to track the state of IndirectMap @@ -138,7 +138,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets IndirectMap /// [JsonPropertyName("indirect_map")] - public Dictionary IndirectMap { get { return this.IndirectMapOption; } set { this.IndirectMapOption = new Option>(value); } } + public Dictionary IndirectMap { get { return this.IndirectMapOption.Value; } set { this.IndirectMapOption = new Option>(value); } } /// /// Used to track the state of MapMapOfString @@ -151,7 +151,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapMapOfString /// [JsonPropertyName("map_map_of_string")] - public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption; } set { this.MapMapOfStringOption = new Option>>(value); } } + public Dictionary> MapMapOfString { get { return this.MapMapOfStringOption.Value; } set { this.MapMapOfStringOption = new Option>>(value); } } /// /// Used to track the state of MapOfEnumString @@ -164,7 +164,7 @@ public static string InnerEnumToJsonValue(InnerEnum value) /// Gets or Sets MapOfEnumString /// [JsonPropertyName("map_of_enum_string")] - public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption; } set { this.MapOfEnumStringOption = new Option>(value); } } + public Dictionary MapOfEnumString { get { return this.MapOfEnumStringOption.Value; } set { this.MapOfEnumStringOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 3a559f831196..10106b8319fc 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -53,7 +53,7 @@ public MixedAnyOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedAnyOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new Option(value); } } + public MixedAnyOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 5e238e0f7b30..c6b1b0d35eb2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -53,7 +53,7 @@ public MixedOneOf(Option content = default) /// Gets or Sets Content /// [JsonPropertyName("content")] - public MixedOneOfContent Content { get { return this.ContentOption; } set { this.ContentOption = new Option(value); } } + public MixedOneOfContent Content { get { return this.ContentOption.Value; } set { this.ContentOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index e0462d7c8a25..fef0ec49b984 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -59,7 +59,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets DateTime /// [JsonPropertyName("dateTime")] - public DateTime? DateTime { get { return this.DateTimeOption; } set { this.DateTimeOption = new Option(value); } } + public DateTime? DateTime { get { return this.DateTimeOption.Value; } set { this.DateTimeOption = new Option(value); } } /// /// Used to track the state of Map @@ -72,7 +72,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Map /// [JsonPropertyName("map")] - public Dictionary Map { get { return this.MapOption; } set { this.MapOption = new Option>(value); } } + public Dictionary Map { get { return this.MapOption.Value; } set { this.MapOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets Uuid /// [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Used to track the state of UuidWithPattern @@ -98,7 +98,7 @@ public MixedPropertiesAndAdditionalPropertiesClass(Option dateTime = /// Gets or Sets UuidWithPattern /// [JsonPropertyName("uuid_with_pattern")] - public Guid? UuidWithPattern { get { return this.UuidWithPatternOption; } set { this.UuidWithPatternOption = new Option(value); } } + public Guid? UuidWithPattern { get { return this.UuidWithPatternOption.Value; } set { this.UuidWithPatternOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 34198e6f437a..3f2b6cb145f3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -53,7 +53,7 @@ public MixedSubId(Option id = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public string Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public string Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 882bf7ccda47..30dd8c4a1186 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -55,7 +55,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Class /// [JsonPropertyName("class")] - public string Class { get { return this.ClassOption; } set { this.ClassOption = new Option(value); } } + public string Class { get { return this.ClassOption.Value; } set { this.ClassOption = new Option(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Model200Response(Option @class = default, Option name = def /// Gets or Sets Name /// [JsonPropertyName("name")] - public int? Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public int? Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 5d459e8b5eb1..ddc0cae59e93 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -53,7 +53,7 @@ public ModelClient(Option varClient = default) /// Gets or Sets VarClient /// [JsonPropertyName("client")] - public string VarClient { get { return this.VarClientOption; } set { this.VarClientOption = new Option(value); } } + public string VarClient { get { return this.VarClientOption.Value; } set { this.VarClientOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index dba5779e547d..d8a8dca64fc4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -65,7 +65,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Property /// [JsonPropertyName("property")] - public string Property { get { return this.PropertyOption; } set { this.PropertyOption = new Option(value); } } + public string Property { get { return this.PropertyOption.Value; } set { this.PropertyOption = new Option(value); } } /// /// Used to track the state of SnakeCase @@ -78,7 +78,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets SnakeCase /// [JsonPropertyName("snake_case")] - public int? SnakeCase { get { return this.SnakeCaseOption; } } + public int? SnakeCase { get { return this.SnakeCaseOption.Value; } } /// /// Used to track the state of Var123Number @@ -91,7 +91,7 @@ public Name(int varName, Option property = default, Option snakeCa /// Gets or Sets Var123Number /// [JsonPropertyName("123Number")] - public int? Var123Number { get { return this.Var123NumberOption; } } + public int? Var123Number { get { return this.Var123NumberOption.Value; } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 397f12bffbb0..924e9bc89069 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -75,7 +75,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayAndItemsNullableProp /// [JsonPropertyName("array_and_items_nullable_prop")] - public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption; } set { this.ArrayAndItemsNullablePropOption = new Option>(value); } } + public List ArrayAndItemsNullableProp { get { return this.ArrayAndItemsNullablePropOption.Value; } set { this.ArrayAndItemsNullablePropOption = new Option>(value); } } /// /// Used to track the state of ArrayItemsNullable @@ -88,7 +88,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayItemsNullable /// [JsonPropertyName("array_items_nullable")] - public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption; } set { this.ArrayItemsNullableOption = new Option>(value); } } + public List ArrayItemsNullable { get { return this.ArrayItemsNullableOption.Value; } set { this.ArrayItemsNullableOption = new Option>(value); } } /// /// Used to track the state of ArrayNullableProp @@ -101,7 +101,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ArrayNullableProp /// [JsonPropertyName("array_nullable_prop")] - public List ArrayNullableProp { get { return this.ArrayNullablePropOption; } set { this.ArrayNullablePropOption = new Option>(value); } } + public List ArrayNullableProp { get { return this.ArrayNullablePropOption.Value; } set { this.ArrayNullablePropOption = new Option>(value); } } /// /// Used to track the state of BooleanProp @@ -114,7 +114,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets BooleanProp /// [JsonPropertyName("boolean_prop")] - public bool? BooleanProp { get { return this.BooleanPropOption; } set { this.BooleanPropOption = new Option(value); } } + public bool? BooleanProp { get { return this.BooleanPropOption.Value; } set { this.BooleanPropOption = new Option(value); } } /// /// Used to track the state of DateProp @@ -127,7 +127,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DateProp /// [JsonPropertyName("date_prop")] - public DateTime? DateProp { get { return this.DatePropOption; } set { this.DatePropOption = new Option(value); } } + public DateTime? DateProp { get { return this.DatePropOption.Value; } set { this.DatePropOption = new Option(value); } } /// /// Used to track the state of DatetimeProp @@ -140,7 +140,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets DatetimeProp /// [JsonPropertyName("datetime_prop")] - public DateTime? DatetimeProp { get { return this.DatetimePropOption; } set { this.DatetimePropOption = new Option(value); } } + public DateTime? DatetimeProp { get { return this.DatetimePropOption.Value; } set { this.DatetimePropOption = new Option(value); } } /// /// Used to track the state of IntegerProp @@ -153,7 +153,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets IntegerProp /// [JsonPropertyName("integer_prop")] - public int? IntegerProp { get { return this.IntegerPropOption; } set { this.IntegerPropOption = new Option(value); } } + public int? IntegerProp { get { return this.IntegerPropOption.Value; } set { this.IntegerPropOption = new Option(value); } } /// /// Used to track the state of NumberProp @@ -166,7 +166,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets NumberProp /// [JsonPropertyName("number_prop")] - public decimal? NumberProp { get { return this.NumberPropOption; } set { this.NumberPropOption = new Option(value); } } + public decimal? NumberProp { get { return this.NumberPropOption.Value; } set { this.NumberPropOption = new Option(value); } } /// /// Used to track the state of ObjectAndItemsNullableProp @@ -179,7 +179,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectAndItemsNullableProp /// [JsonPropertyName("object_and_items_nullable_prop")] - public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption; } set { this.ObjectAndItemsNullablePropOption = new Option>(value); } } + public Dictionary ObjectAndItemsNullableProp { get { return this.ObjectAndItemsNullablePropOption.Value; } set { this.ObjectAndItemsNullablePropOption = new Option>(value); } } /// /// Used to track the state of ObjectItemsNullable @@ -192,7 +192,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectItemsNullable /// [JsonPropertyName("object_items_nullable")] - public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption; } set { this.ObjectItemsNullableOption = new Option>(value); } } + public Dictionary ObjectItemsNullable { get { return this.ObjectItemsNullableOption.Value; } set { this.ObjectItemsNullableOption = new Option>(value); } } /// /// Used to track the state of ObjectNullableProp @@ -205,7 +205,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets ObjectNullableProp /// [JsonPropertyName("object_nullable_prop")] - public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption; } set { this.ObjectNullablePropOption = new Option>(value); } } + public Dictionary ObjectNullableProp { get { return this.ObjectNullablePropOption.Value; } set { this.ObjectNullablePropOption = new Option>(value); } } /// /// Used to track the state of StringProp @@ -218,7 +218,7 @@ public NullableClass(Option> arrayAndItemsNullableProp = default, O /// Gets or Sets StringProp /// [JsonPropertyName("string_prop")] - public string StringProp { get { return this.StringPropOption; } set { this.StringPropOption = new Option(value); } } + public string StringProp { get { return this.StringPropOption.Value; } set { this.StringPropOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs index 6efbeef44dcd..a3a4b6e125de 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableGuidClass.cs @@ -54,7 +54,7 @@ public NullableGuidClass(Option uuid = default) /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("uuid")] - public Guid? Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public Guid? Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 55ab016ac3db..061bb350661d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -53,7 +53,7 @@ public NumberOnly(Option justNumber = default) /// Gets or Sets JustNumber /// [JsonPropertyName("JustNumber")] - public decimal? JustNumber { get { return this.JustNumberOption; } set { this.JustNumberOption = new Option(value); } } + public decimal? JustNumber { get { return this.JustNumberOption.Value; } set { this.JustNumberOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 541a621953aa..867ab1d74025 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -60,7 +60,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("bars")] [Obsolete] - public List Bars { get { return this.BarsOption; } set { this.BarsOption = new Option>(value); } } + public List Bars { get { return this.BarsOption.Value; } set { this.BarsOption = new Option>(value); } } /// /// Used to track the state of DeprecatedRef @@ -74,7 +74,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("deprecatedRef")] [Obsolete] - public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption; } set { this.DeprecatedRefOption = new Option(value); } } + public DeprecatedObject DeprecatedRef { get { return this.DeprecatedRefOption.Value; } set { this.DeprecatedRefOption = new Option(value); } } /// /// Used to track the state of Id @@ -88,7 +88,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("id")] [Obsolete] - public decimal? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public decimal? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Uuid @@ -101,7 +101,7 @@ public ObjectWithDeprecatedFields(Option> bars = default, Option [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index c61a5c5527d9..4f5761ccd789 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -158,7 +158,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Complete /// [JsonPropertyName("complete")] - public bool? Complete { get { return this.CompleteOption; } set { this.CompleteOption = new Option(value); } } + public bool? Complete { get { return this.CompleteOption.Value; } set { this.CompleteOption = new Option(value); } } /// /// Used to track the state of Id @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of PetId @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets PetId /// [JsonPropertyName("petId")] - public long? PetId { get { return this.PetIdOption; } set { this.PetIdOption = new Option(value); } } + public long? PetId { get { return this.PetIdOption.Value; } set { this.PetIdOption = new Option(value); } } /// /// Used to track the state of Quantity @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Quantity /// [JsonPropertyName("quantity")] - public int? Quantity { get { return this.QuantityOption; } set { this.QuantityOption = new Option(value); } } + public int? Quantity { get { return this.QuantityOption.Value; } set { this.QuantityOption = new Option(value); } } /// /// Used to track the state of ShipDate @@ -211,7 +211,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /* 2020-02-02T20:20:20.000222Z */ [JsonPropertyName("shipDate")] - public DateTime? ShipDate { get { return this.ShipDateOption; } set { this.ShipDateOption = new Option(value); } } + public DateTime? ShipDate { get { return this.ShipDateOption.Value; } set { this.ShipDateOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index d366c24ec24c..d02f8c96ae2f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -57,7 +57,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyBoolean /// [JsonPropertyName("my_boolean")] - public bool? MyBoolean { get { return this.MyBooleanOption; } set { this.MyBooleanOption = new Option(value); } } + public bool? MyBoolean { get { return this.MyBooleanOption.Value; } set { this.MyBooleanOption = new Option(value); } } /// /// Used to track the state of MyNumber @@ -70,7 +70,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyNumber /// [JsonPropertyName("my_number")] - public decimal? MyNumber { get { return this.MyNumberOption; } set { this.MyNumberOption = new Option(value); } } + public decimal? MyNumber { get { return this.MyNumberOption.Value; } set { this.MyNumberOption = new Option(value); } } /// /// Used to track the state of MyString @@ -83,7 +83,7 @@ public OuterComposite(Option myBoolean = default, Option myNumb /// Gets or Sets MyString /// [JsonPropertyName("my_string")] - public string MyString { get { return this.MyStringOption; } set { this.MyStringOption = new Option(value); } } + public string MyString { get { return this.MyStringOption.Value; } set { this.MyStringOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index d86c3d5f64e5..788584e35833 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -171,7 +171,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Category /// [JsonPropertyName("category")] - public Category Category { get { return this.CategoryOption; } set { this.CategoryOption = new Option(value); } } + public Category Category { get { return this.CategoryOption.Value; } set { this.CategoryOption = new Option(value); } } /// /// Used to track the state of Id @@ -184,7 +184,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Tags @@ -197,7 +197,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// Gets or Sets Tags /// [JsonPropertyName("tags")] - public List Tags { get { return this.TagsOption; } set { this.TagsOption = new Option>(value); } } + public List Tags { get { return this.TagsOption.Value; } set { this.TagsOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index a7cd43316ac8..3134d1d7c1d7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -55,7 +55,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Bar /// [JsonPropertyName("bar")] - public string Bar { get { return this.BarOption; } } + public string Bar { get { return this.BarOption.Value; } } /// /// Used to track the state of Baz @@ -68,7 +68,7 @@ public ReadOnlyFirst(Option bar = default, Option baz = default) /// Gets or Sets Baz /// [JsonPropertyName("baz")] - public string Baz { get { return this.BazOption; } set { this.BazOption = new Option(value); } } + public string Baz { get { return this.BazOption.Value; } set { this.BazOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 1052c98ee925..8354a7779b79 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -1412,7 +1412,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableDateProp /// [JsonPropertyName("not_required_notnullable_date_prop")] - public DateTime? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption; } set { this.NotRequiredNotnullableDatePropOption = new Option(value); } } + public DateTime? NotRequiredNotnullableDateProp { get { return this.NotRequiredNotnullableDatePropOption.Value; } set { this.NotRequiredNotnullableDatePropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNotnullableintegerProp @@ -1425,7 +1425,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNotnullableintegerProp /// [JsonPropertyName("not_required_notnullableinteger_prop")] - public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption; } set { this.NotRequiredNotnullableintegerPropOption = new Option(value); } } + public int? NotRequiredNotnullableintegerProp { get { return this.NotRequiredNotnullableintegerPropOption.Value; } set { this.NotRequiredNotnullableintegerPropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNullableDateProp @@ -1438,7 +1438,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableDateProp /// [JsonPropertyName("not_required_nullable_date_prop")] - public DateTime? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption; } set { this.NotRequiredNullableDatePropOption = new Option(value); } } + public DateTime? NotRequiredNullableDateProp { get { return this.NotRequiredNullableDatePropOption.Value; } set { this.NotRequiredNullableDatePropOption = new Option(value); } } /// /// Used to track the state of NotRequiredNullableIntegerProp @@ -1451,7 +1451,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotRequiredNullableIntegerProp /// [JsonPropertyName("not_required_nullable_integer_prop")] - public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption; } set { this.NotRequiredNullableIntegerPropOption = new Option(value); } } + public int? NotRequiredNullableIntegerProp { get { return this.NotRequiredNullableIntegerPropOption.Value; } set { this.NotRequiredNullableIntegerPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableArrayOfString @@ -1464,7 +1464,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableArrayOfString /// [JsonPropertyName("notrequired_notnullable_array_of_string")] - public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption; } set { this.NotrequiredNotnullableArrayOfStringOption = new Option>(value); } } + public List NotrequiredNotnullableArrayOfString { get { return this.NotrequiredNotnullableArrayOfStringOption.Value; } set { this.NotrequiredNotnullableArrayOfStringOption = new Option>(value); } } /// /// Used to track the state of NotrequiredNotnullableBooleanProp @@ -1477,7 +1477,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableBooleanProp /// [JsonPropertyName("notrequired_notnullable_boolean_prop")] - public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption; } set { this.NotrequiredNotnullableBooleanPropOption = new Option(value); } } + public bool? NotrequiredNotnullableBooleanProp { get { return this.NotrequiredNotnullableBooleanPropOption.Value; } set { this.NotrequiredNotnullableBooleanPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableDatetimeProp @@ -1490,7 +1490,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableDatetimeProp /// [JsonPropertyName("notrequired_notnullable_datetime_prop")] - public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption; } set { this.NotrequiredNotnullableDatetimePropOption = new Option(value); } } + public DateTime? NotrequiredNotnullableDatetimeProp { get { return this.NotrequiredNotnullableDatetimePropOption.Value; } set { this.NotrequiredNotnullableDatetimePropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableStringProp @@ -1503,7 +1503,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNotnullableStringProp /// [JsonPropertyName("notrequired_notnullable_string_prop")] - public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption; } set { this.NotrequiredNotnullableStringPropOption = new Option(value); } } + public string NotrequiredNotnullableStringProp { get { return this.NotrequiredNotnullableStringPropOption.Value; } set { this.NotrequiredNotnullableStringPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableUuid @@ -1517,7 +1517,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_notnullable_uuid")] - public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption; } set { this.NotrequiredNotnullableUuidOption = new Option(value); } } + public Guid? NotrequiredNotnullableUuid { get { return this.NotrequiredNotnullableUuidOption.Value; } set { this.NotrequiredNotnullableUuidOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableArrayOfString @@ -1530,7 +1530,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableArrayOfString /// [JsonPropertyName("notrequired_nullable_array_of_string")] - public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption; } set { this.NotrequiredNullableArrayOfStringOption = new Option>(value); } } + public List NotrequiredNullableArrayOfString { get { return this.NotrequiredNullableArrayOfStringOption.Value; } set { this.NotrequiredNullableArrayOfStringOption = new Option>(value); } } /// /// Used to track the state of NotrequiredNullableBooleanProp @@ -1543,7 +1543,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableBooleanProp /// [JsonPropertyName("notrequired_nullable_boolean_prop")] - public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption; } set { this.NotrequiredNullableBooleanPropOption = new Option(value); } } + public bool? NotrequiredNullableBooleanProp { get { return this.NotrequiredNullableBooleanPropOption.Value; } set { this.NotrequiredNullableBooleanPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableDatetimeProp @@ -1556,7 +1556,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableDatetimeProp /// [JsonPropertyName("notrequired_nullable_datetime_prop")] - public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption; } set { this.NotrequiredNullableDatetimePropOption = new Option(value); } } + public DateTime? NotrequiredNullableDatetimeProp { get { return this.NotrequiredNullableDatetimePropOption.Value; } set { this.NotrequiredNullableDatetimePropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableStringProp @@ -1569,7 +1569,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// Gets or Sets NotrequiredNullableStringProp /// [JsonPropertyName("notrequired_nullable_string_prop")] - public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption; } set { this.NotrequiredNullableStringPropOption = new Option(value); } } + public string NotrequiredNullableStringProp { get { return this.NotrequiredNullableStringPropOption.Value; } set { this.NotrequiredNullableStringPropOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableUuid @@ -1583,7 +1583,7 @@ public static string RequiredNullableEnumStringEnumToJsonValue(RequiredNullableE /// /* 72f98069-206d-4f12-9f12-3d1e525a8e84 */ [JsonPropertyName("notrequired_nullable_uuid")] - public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new Option(value); } } + public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption.Value; } set { this.NotrequiredNullableUuidOption = new Option(value); } } /// /// Gets or Sets RequiredNullableArrayOfString diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs index fb1b3546a031..bc7b3d97d94c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -58,7 +58,7 @@ public Result(Option code = default, Option> /// /// Result code [JsonPropertyName("code")] - public string Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public string Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Data @@ -72,7 +72,7 @@ public Result(Option code = default, Option> /// /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -86,7 +86,7 @@ public Result(Option code = default, Option> /// /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index 81211e0ce4ac..6f5a0a005d23 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -71,7 +71,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets VarReturn /// [JsonPropertyName("return")] - public int? VarReturn { get { return this.VarReturnOption; } set { this.VarReturnOption = new Option(value); } } + public int? VarReturn { get { return this.VarReturnOption.Value; } set { this.VarReturnOption = new Option(value); } } /// /// Used to track the state of Unsafe @@ -84,7 +84,7 @@ public Return(string @lock, string @abstract = default, Option varReturn = /// Gets or Sets Unsafe /// [JsonPropertyName("unsafe")] - public string Unsafe { get { return this.UnsafeOption; } set { this.UnsafeOption = new Option(value); } } + public string Unsafe { get { return this.UnsafeOption.Value; } set { this.UnsafeOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 5b7a88bd659a..23e1b6c722f2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -55,7 +55,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role")] - public RolesReportsHashRole Role { get { return this.RoleOption; } set { this.RoleOption = new Option(value); } } + public RolesReportsHashRole Role { get { return this.RoleOption.Value; } set { this.RoleOption = new Option(value); } } /// /// Used to track the state of RoleUuid @@ -68,7 +68,7 @@ public RolesReportsHash(Option role = default, Option [JsonPropertyName("role_uuid")] - public Guid? RoleUuid { get { return this.RoleUuidOption; } set { this.RoleUuidOption = new Option(value); } } + public Guid? RoleUuid { get { return this.RoleUuidOption.Value; } set { this.RoleUuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 29c8760c9722..e7822a579340 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -53,7 +53,7 @@ public RolesReportsHashRole(Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index f30e2a11997b..3ca1bd1badbf 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -55,7 +55,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("_special_model.name_")] - public string VarSpecialModelName { get { return this.VarSpecialModelNameOption; } set { this.VarSpecialModelNameOption = new Option(value); } } + public string VarSpecialModelName { get { return this.VarSpecialModelNameOption.Value; } set { this.VarSpecialModelNameOption = new Option(value); } } /// /// Used to track the state of SpecialPropertyName @@ -68,7 +68,7 @@ public SpecialModelName(Option varSpecialModelName = default, Option [JsonPropertyName("$special[property.name]")] - public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption; } set { this.SpecialPropertyNameOption = new Option(value); } } + public long? SpecialPropertyName { get { return this.SpecialPropertyNameOption.Value; } set { this.SpecialPropertyNameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 6b9d5082405b..fa2a11bd1212 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -55,7 +55,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of Name @@ -68,7 +68,7 @@ public Tag(Option id = default, Option name = default) /// Gets or Sets Name /// [JsonPropertyName("name")] - public string Name { get { return this.NameOption; } set { this.NameOption = new Option(value); } } + public string Name { get { return this.NameOption.Value; } set { this.NameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 11d1cd5963c0..f7f17f6aab68 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordList(Option value = default) /// Gets or Sets Value /// [JsonPropertyName("value")] - public string Value { get { return this.ValueOption; } set { this.ValueOption = new Option(value); } } + public string Value { get { return this.ValueOption.Value; } set { this.ValueOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 7328caf1ead5..7426a4594e48 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -53,7 +53,7 @@ public TestCollectionEndingWithWordListObject(Option [JsonPropertyName("TestCollectionEndingWithWordList")] - public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption; } set { this.TestCollectionEndingWithWordListOption = new Option>(value); } } + public List TestCollectionEndingWithWordList { get { return this.TestCollectionEndingWithWordListOption.Value; } set { this.TestCollectionEndingWithWordListOption = new Option>(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 33f5183651a3..efd567b280c3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -53,7 +53,7 @@ public TestInlineFreeformAdditionalPropertiesRequest(Option someProperty /// Gets or Sets SomeProperty /// [JsonPropertyName("someProperty")] - public string SomeProperty { get { return this.SomePropertyOption; } set { this.SomePropertyOption = new Option(value); } } + public string SomeProperty { get { return this.SomePropertyOption.Value; } set { this.SomePropertyOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 32249c7516a1..421bbc33ec1a 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -71,7 +71,7 @@ public TestResult(Option code = default, Option /// list of named parameters for current message [JsonPropertyName("data")] - public Dictionary Data { get { return this.DataOption; } set { this.DataOption = new Option>(value); } } + public Dictionary Data { get { return this.DataOption.Value; } set { this.DataOption = new Option>(value); } } /// /// Used to track the state of Uuid @@ -85,7 +85,7 @@ public TestResult(Option code = default, Option /// Result unique identifier [JsonPropertyName("uuid")] - public string Uuid { get { return this.UuidOption; } set { this.UuidOption = new Option(value); } } + public string Uuid { get { return this.UuidOption.Value; } set { this.UuidOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index a85e556bb9e8..7807d2b09a17 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -76,7 +76,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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 [JsonPropertyName("anyTypeProp")] - public Object AnyTypeProp { get { return this.AnyTypePropOption; } set { this.AnyTypePropOption = new Option(value); } } + public Object AnyTypeProp { get { return this.AnyTypePropOption.Value; } set { this.AnyTypePropOption = new Option(value); } } /// /// Used to track the state of AnyTypePropNullable @@ -90,7 +90,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// 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. [JsonPropertyName("anyTypePropNullable")] - public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption; } set { this.AnyTypePropNullableOption = new Option(value); } } + public Object AnyTypePropNullable { get { return this.AnyTypePropNullableOption.Value; } set { this.AnyTypePropNullableOption = new Option(value); } } /// /// Used to track the state of Email @@ -103,7 +103,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Email /// [JsonPropertyName("email")] - public string Email { get { return this.EmailOption; } set { this.EmailOption = new Option(value); } } + public string Email { get { return this.EmailOption.Value; } set { this.EmailOption = new Option(value); } } /// /// Used to track the state of FirstName @@ -116,7 +116,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets FirstName /// [JsonPropertyName("firstName")] - public string FirstName { get { return this.FirstNameOption; } set { this.FirstNameOption = new Option(value); } } + public string FirstName { get { return this.FirstNameOption.Value; } set { this.FirstNameOption = new Option(value); } } /// /// Used to track the state of Id @@ -129,7 +129,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Id /// [JsonPropertyName("id")] - public long? Id { get { return this.IdOption; } set { this.IdOption = new Option(value); } } + public long? Id { get { return this.IdOption.Value; } set { this.IdOption = new Option(value); } } /// /// Used to track the state of LastName @@ -142,7 +142,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets LastName /// [JsonPropertyName("lastName")] - public string LastName { get { return this.LastNameOption; } set { this.LastNameOption = new Option(value); } } + public string LastName { get { return this.LastNameOption.Value; } set { this.LastNameOption = new Option(value); } } /// /// Used to track the state of ObjectWithNoDeclaredProps @@ -156,7 +156,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for objects Value must be a map of strings to values. It cannot be the 'null' value. [JsonPropertyName("objectWithNoDeclaredProps")] - public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption; } set { this.ObjectWithNoDeclaredPropsOption = new Option(value); } } + public Object ObjectWithNoDeclaredProps { get { return this.ObjectWithNoDeclaredPropsOption.Value; } set { this.ObjectWithNoDeclaredPropsOption = new Option(value); } } /// /// Used to track the state of ObjectWithNoDeclaredPropsNullable @@ -170,7 +170,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// test code generation for nullable objects. Value must be a map of strings to values or the 'null' value. [JsonPropertyName("objectWithNoDeclaredPropsNullable")] - public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption; } set { this.ObjectWithNoDeclaredPropsNullableOption = new Option(value); } } + public Object ObjectWithNoDeclaredPropsNullable { get { return this.ObjectWithNoDeclaredPropsNullableOption.Value; } set { this.ObjectWithNoDeclaredPropsNullableOption = new Option(value); } } /// /// Used to track the state of Password @@ -183,7 +183,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Password /// [JsonPropertyName("password")] - public string Password { get { return this.PasswordOption; } set { this.PasswordOption = new Option(value); } } + public string Password { get { return this.PasswordOption.Value; } set { this.PasswordOption = new Option(value); } } /// /// Used to track the state of Phone @@ -196,7 +196,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Phone /// [JsonPropertyName("phone")] - public string Phone { get { return this.PhoneOption; } set { this.PhoneOption = new Option(value); } } + public string Phone { get { return this.PhoneOption.Value; } set { this.PhoneOption = new Option(value); } } /// /// Used to track the state of UserStatus @@ -210,7 +210,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// /// User Status [JsonPropertyName("userStatus")] - public int? UserStatus { get { return this.UserStatusOption; } set { this.UserStatusOption = new Option(value); } } + public int? UserStatus { get { return this.UserStatusOption.Value; } set { this.UserStatusOption = new Option(value); } } /// /// Used to track the state of Username @@ -223,7 +223,7 @@ public User(Option anyTypeProp = default, Option anyTypePropNull /// Gets or Sets Username /// [JsonPropertyName("username")] - public string Username { get { return this.UsernameOption; } set { this.UsernameOption = new Option(value); } } + public string Username { get { return this.UsernameOption.Value; } set { this.UsernameOption = new Option(value); } } /// /// Gets or Sets additional properties diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 56da6f6db3c6..21e58212ba7b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -63,7 +63,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasBaleen /// [JsonPropertyName("hasBaleen")] - public bool? HasBaleen { get { return this.HasBaleenOption; } set { this.HasBaleenOption = new Option(value); } } + public bool? HasBaleen { get { return this.HasBaleenOption.Value; } set { this.HasBaleenOption = new Option(value); } } /// /// Used to track the state of HasTeeth @@ -76,7 +76,7 @@ public Whale(string className, Option hasBaleen = default, Option /// Gets or Sets HasTeeth /// [JsonPropertyName("hasTeeth")] - public bool? HasTeeth { get { return this.HasTeethOption; } set { this.HasTeethOption = new Option(value); } } + public bool? HasTeeth { get { return this.HasTeethOption.Value; } set { this.HasTeethOption = new Option(value); } } /// /// Gets or Sets additional properties