From 82f1daeb5fa925459f4e21301243ca009742f384 Mon Sep 17 00:00:00 2001 From: devhl Date: Mon, 9 Mar 2026 19:45:46 -0400 Subject: [PATCH] fix invalid implicit casts --- .../libraries/generichost/modelGeneric.mustache | 6 +++--- .../Org.OpenAPITools/Model/IconsSizeParameter.cs | 4 ++-- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 4 ++-- .../src/Org.OpenAPITools/Model/Fruit.cs | 4 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../src/Org.OpenAPITools/Model/Order.cs | 2 +- .../FormModels/src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../src/Org.OpenAPITools/Model/Order.cs | 2 +- .../src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../Petstore/src/Org.OpenAPITools/Model/Order.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../src/Org.OpenAPITools/Model/Order.cs | 2 +- .../src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 4 ++-- .../src/Org.OpenAPITools/Model/Fruit.cs | 4 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../src/Org.OpenAPITools/Model/Order.cs | 2 +- .../FormModels/src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../Petstore/src/Org.OpenAPITools/Model/Order.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 4 ++-- .../src/Org.OpenAPITools/Model/Fruit.cs | 4 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../src/Org.OpenAPITools/Model/Order.cs | 2 +- .../FormModels/src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../Petstore/src/Org.OpenAPITools/Model/Order.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 4 ++-- .../src/Org.OpenAPITools/Model/Fruit.cs | 4 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../src/Org.OpenAPITools/Model/Order.cs | 2 +- .../FormModels/src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../src/Org.OpenAPITools/Model/Order.cs | 2 +- .../src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../Petstore/src/Org.OpenAPITools/Model/Order.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../src/Org.OpenAPITools/Model/Order.cs | 2 +- .../src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 4 ++-- .../src/Org.OpenAPITools/Model/Fruit.cs | 4 ++-- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../src/Org.OpenAPITools/Model/Order.cs | 2 +- .../FormModels/src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../src/Org.OpenAPITools/Model/Order.cs | 2 +- .../src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../Petstore/src/Org.OpenAPITools/Model/Order.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../src/Org.OpenAPITools/Model/Order.cs | 2 +- .../src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 2 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/GmFruit.cs | 4 ++-- .../Org.OpenAPITools/Model/MixedAnyOfContent.cs | 10 +++++----- .../Petstore/src/Org.OpenAPITools/Model/Order.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Pet.cs | 2 +- .../src/Org.OpenAPITools/Model/RequiredClass.cs | 16 ++++++++-------- .../src/Org.OpenAPITools/Model/TestResult.cs | 2 +- .../Petstore/src/Org.OpenAPITools/Model/Zebra.cs | 2 +- .../Org.OpenAPITools/Model/ZeroBasedEnumClass.cs | 2 +- 182 files changed, 518 insertions(+), 518 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 93ca620ddaff..4c2ab6929162 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 @@ -131,7 +131,7 @@ {{#deprecated}} [Obsolete] {{/deprecated}} - public {{#isNew}}new {{/isNew}}{{{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 {{#isNew}}new {{/isNew}}{{{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}} {{/isEnum}} {{/isDiscriminator}} @@ -157,7 +157,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}} {{#lambda.titlecase}}{{baseType}}{{/lambda.titlecase}} {{#required}}{ get; {{^isReadOnly}}set; {{/isReadOnly}}}{{/required}}{{^required}}{ get { return this.{{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}Option; } {{^isReadOnly}}set { this.{{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}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}} {{#lambda.titlecase}}{{baseType}}{{/lambda.titlecase}} {{#required}}{ get; {{^isReadOnly}}set; {{/isReadOnly}}}{{/required}}{{^required}}{ get { return this.{{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}Option.Value; } {{^isReadOnly}}set { this.{{#lambda.titlecase}}{{name}}{{/lambda.titlecase}}Option = new{{^net70OrLater}} Option<{{{datatypeWithEnum}}}{{>NullConditionalProperty}}>{{/net70OrLater}}(value); } {{/isReadOnly}}}{{/required}} {{/vendorExtensions.x-duplicated-data-type}} {{/composedSchemas.anyOf}} @@ -215,7 +215,7 @@ {{#deprecated}} [Obsolete] {{/deprecated}} - public new {{{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 new {{{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}} {{/isNew}} {{/isInherited}} diff --git a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsSizeParameter.cs b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsSizeParameter.cs index f966becfb41b..261018b943b4 100644 --- a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsSizeParameter.cs +++ b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsSizeParameter.cs @@ -54,7 +54,7 @@ internal IconsSizeParameter(Option iconsSizeParameterA /// /// Gets or Sets IconsSizeParameterAnyOf /// - public IconsSizeParameterAnyOf? IconsSizeParameterAnyOf { get { return this.IconsSizeParameterAnyOfOption; } set { this.IconsSizeParameterAnyOfOption = new(value); } } + public IconsSizeParameterAnyOf? IconsSizeParameterAnyOf { get { return this.IconsSizeParameterAnyOfOption.Value; } set { this.IconsSizeParameterAnyOfOption = new(value); } } /// /// Used to track the state of Int @@ -66,7 +66,7 @@ internal IconsSizeParameter(Option iconsSizeParameterA /// /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Returns the string presentation of the object 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 89b223fa5dbb..90ae7568d3fc 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 @@ -57,7 +57,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -69,7 +69,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color 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 60e3c31c6a4f..8a99245775f6 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 @@ -56,7 +56,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -68,7 +68,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color 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 afdb3342ce23..7fe4cb3c8afa 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 @@ -55,7 +55,7 @@ public EnumArrays(Option> arrayEnum = default, Op /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public EnumArraysJustSymbol? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public EnumArraysJustSymbol? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 49ce4b0a6d6e..24a5199c418b 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -75,7 +75,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_integer")] - public EnumTestEnumInteger? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumTestEnumInteger? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Used to track the state of EnumIntegerOnly @@ -88,7 +88,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_integer_only")] - public EnumTestEnumIntegerOnly? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumTestEnumIntegerOnly? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Used to track the state of EnumNumber @@ -101,7 +101,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_number")] - public TestEnumParametersEnumQueryDoubleParameter? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public TestEnumParametersEnumQueryDoubleParameter? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Used to track the state of EnumString @@ -114,7 +114,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_string")] - public EnumTestEnumString? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumTestEnumString? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -127,7 +127,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -140,7 +140,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -153,7 +153,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -166,7 +166,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 54f59fff7073..64b6d880bdc0 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 @@ -55,7 +55,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 44207079969a..07747b042115 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -59,7 +59,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -71,7 +71,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -83,7 +83,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -95,7 +95,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -107,7 +107,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 0f70b6ee763d..4c7bea23ae40 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 @@ -63,7 +63,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Status /// [JsonPropertyName("status")] - public OrderStatus? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public OrderStatus? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 294770c56dfb..c505ad177fb4 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 @@ -63,7 +63,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Status /// [JsonPropertyName("status")] - public PetStatus? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public PetStatus? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 8a2fc39d76bf..76ab94c6f171 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 @@ -163,7 +163,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public RequiredClassRequiredNotnullableEnumInteger? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public RequiredClassRequiredNotnullableEnumInteger? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableEnumIntegerOnly @@ -176,7 +176,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public RequiredClassRequiredNotnullableEnumIntegerOnly? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public RequiredClassRequiredNotnullableEnumIntegerOnly? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableEnumString @@ -189,7 +189,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public RequiredClassRequiredNotnullableEnumString? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public RequiredClassRequiredNotnullableEnumString? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -202,7 +202,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of NotrequiredNullableEnumInteger @@ -215,7 +215,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public RequiredClassRequiredNullableEnumInteger? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public RequiredClassRequiredNullableEnumInteger? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Used to track the state of NotrequiredNullableEnumIntegerOnly @@ -228,7 +228,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public RequiredClassRequiredNullableEnumIntegerOnly? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public RequiredClassRequiredNullableEnumIntegerOnly? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Used to track the state of NotrequiredNullableEnumString @@ -241,7 +241,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public RequiredClassRequiredNullableEnumString? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public RequiredClassRequiredNullableEnumString? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -254,7 +254,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Gets or Sets RequiredNullableEnumInteger 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 508d19f2807e..512daa77d491 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 @@ -57,7 +57,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index d3fbe37b12e5..e2435865cc1f 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -55,7 +55,7 @@ public Zebra(string className, Option type = default) /// Gets or Sets Type /// [JsonPropertyName("type")] - public ZebraType? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public ZebraType? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 7373bc5873d5..a40fc0e4770b 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -53,7 +53,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumClassZeroBasedEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumClassZeroBasedEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 9a6f097e92c2..10c01b2dcb54 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 @@ -189,7 +189,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs index ea7a5bd26988..725176ac17b0 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs @@ -286,7 +286,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Defines EnumIntegerOnly @@ -358,7 +358,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Defines EnumNumber @@ -437,7 +437,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Defines EnumString @@ -600,7 +600,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -613,7 +613,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -626,7 +626,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -639,7 +639,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -652,7 +652,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 d751e8154524..6bb6bc5757af 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 @@ -57,7 +57,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -69,7 +69,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 3d92101cb493..2c8240caf7f2 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -61,7 +61,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -73,7 +73,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -85,7 +85,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -97,7 +97,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -109,7 +109,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId? MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId? MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 c4c43309bec1..9341b50d3a3d 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 @@ -147,7 +147,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 56b981a0e2ad..9692c765c581 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 @@ -147,7 +147,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 0c7dc7eab56f..60530fcdce09 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 @@ -492,7 +492,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -564,7 +564,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -727,7 +727,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -740,7 +740,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -812,7 +812,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -884,7 +884,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1050,7 +1050,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1063,7 +1063,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines RequiredNullableEnumInteger 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 e7829b5974ee..bcd2a5f846da 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 @@ -59,7 +59,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs index 4ca12a36d096..babe74eead82 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs @@ -137,7 +137,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index dfb395124397..fa71787b18e3 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -121,7 +121,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 2a7d6a8a5f4d..5eda7b332cb7 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 @@ -187,7 +187,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index b44f96171f59..223a76a6ca96 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -284,7 +284,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Defines EnumIntegerOnly @@ -356,7 +356,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Defines EnumNumber @@ -435,7 +435,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Defines EnumString @@ -598,7 +598,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -611,7 +611,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -624,7 +624,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -637,7 +637,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -650,7 +650,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 54f59fff7073..64b6d880bdc0 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 @@ -55,7 +55,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 44207079969a..07747b042115 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -59,7 +59,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -71,7 +71,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -83,7 +83,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -95,7 +95,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -107,7 +107,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 094096b6350d..7f2e150b71fd 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 7e8a3d34957a..0473a02f1573 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 6217ae6e6799..c4f7a9534641 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 @@ -490,7 +490,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -562,7 +562,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -725,7 +725,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -738,7 +738,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -810,7 +810,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -882,7 +882,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1048,7 +1048,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1061,7 +1061,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines RequiredNullableEnumInteger 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 508d19f2807e..512daa77d491 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 @@ -57,7 +57,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 0efe7f985a3a..cce46d917eab 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -135,7 +135,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 9722305fcb2a..840d0c0bb1f6 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -119,7 +119,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 5c9774abc417..0cc70adbd2a2 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 @@ -190,7 +190,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs index 897a9bd24efe..ba1daad0bdc1 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs @@ -287,7 +287,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Defines EnumIntegerOnly @@ -359,7 +359,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Defines EnumNumber @@ -438,7 +438,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Defines EnumString @@ -601,7 +601,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -614,7 +614,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -627,7 +627,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -640,7 +640,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -653,7 +653,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 8b41879612ea..31555694e81b 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 @@ -58,7 +58,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -70,7 +70,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 0fd593b27c00..2ab12aca41df 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -62,7 +62,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -74,7 +74,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -86,7 +86,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -98,7 +98,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -110,7 +110,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId? MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId? MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 fff55dc03b4b..0f45f32a5dc1 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 @@ -148,7 +148,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 fc68eb27a177..45da7d04ae56 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 @@ -148,7 +148,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 074d0e77ee37..269284919791 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 @@ -493,7 +493,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -565,7 +565,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -728,7 +728,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -741,7 +741,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -813,7 +813,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -885,7 +885,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1051,7 +1051,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1064,7 +1064,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines RequiredNullableEnumInteger 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 df0deacac70e..933d45815f83 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 @@ -60,7 +60,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs index 0d0e7222c42b..c736cc2a360d 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs @@ -138,7 +138,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 74792442fd0e..fb00a6c38e90 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -122,7 +122,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = new(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 d88a462355e3..c32c0e9cac75 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 @@ -55,7 +55,7 @@ public Fruit(Option apple, Option banana, Option color = /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new Option(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new Option(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public Fruit(Option apple, Option banana, Option color = /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new Option(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new Option(value); } } /// /// Used to track the state of Color 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 18cf210a1dc7..dae9c136996b 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 @@ -54,7 +54,7 @@ public Fruit(Option apple, Option banana, Option color = /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new Option(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new Option(value); } } /// /// Used to track the state of Banana @@ -66,7 +66,7 @@ public Fruit(Option apple, Option banana, Option color = /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new Option(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new Option(value); } } /// /// Used to track the state of Color 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 007eba77a358..fd871b9c2ef7 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 @@ -55,7 +55,7 @@ public EnumArrays(Option> arrayEnum = default, Op /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public EnumArraysJustSymbol? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new Option(value); } } + public EnumArraysJustSymbol? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new Option(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index cb22e561feaf..1f6bce32e98f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -75,7 +75,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_integer")] - public EnumTestEnumInteger? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new Option(value); } } + public EnumTestEnumInteger? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new Option(value); } } /// /// Used to track the state of EnumIntegerOnly @@ -88,7 +88,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_integer_only")] - public EnumTestEnumIntegerOnly? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new Option(value); } } + public EnumTestEnumIntegerOnly? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new Option(value); } } /// /// Used to track the state of EnumNumber @@ -101,7 +101,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_number")] - public TestEnumParametersEnumQueryDoubleParameter? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new Option(value); } } + public TestEnumParametersEnumQueryDoubleParameter? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new Option(value); } } /// /// Used to track the state of EnumString @@ -114,7 +114,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_string")] - public EnumTestEnumString? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new Option(value); } } + public EnumTestEnumString? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new Option(value); } } /// /// Used to track the state of OuterEnum @@ -127,7 +127,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new Option(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new Option(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -140,7 +140,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new Option(value); } } /// /// Used to track the state of OuterEnumInteger @@ -153,7 +153,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new Option(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new Option(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -166,7 +166,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new Option(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new Option(value); } } /// /// Gets or Sets additional properties 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 af9c4abd96ae..b4298f04b511 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 @@ -55,7 +55,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new Option(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new Option(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new Option(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new Option(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index e17ac2b5fe41..7ba77aca7c17 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -59,7 +59,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -71,7 +71,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new Option(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new Option(value); } } /// /// Used to track the state of Int @@ -83,7 +83,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new Option(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new Option(value); } } /// /// Used to track the state of Decimal @@ -95,7 +95,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -107,7 +107,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new Option(value); } } + public MixedSubId MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 8af5defaed7e..ce2005d89016 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 @@ -63,7 +63,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Status /// [JsonPropertyName("status")] - public OrderStatus? Status { get { return this.StatusOption; } set { this.StatusOption = new Option(value); } } + public OrderStatus? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new Option(value); } } /// /// Used to track the state of Complete 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 6e741c362d66..0717f1499aaa 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 @@ -63,7 +63,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Status /// [JsonPropertyName("status")] - public PetStatus? Status { get { return this.StatusOption; } set { this.StatusOption = new Option(value); } } + public PetStatus? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new Option(value); } } /// /// Gets or Sets Name 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 f7422f86f558..85bd06ae9d1d 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 @@ -163,7 +163,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public RequiredClassRequiredNotnullableEnumInteger? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new Option(value); } } + public RequiredClassRequiredNotnullableEnumInteger? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableEnumIntegerOnly @@ -176,7 +176,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public RequiredClassRequiredNotnullableEnumIntegerOnly? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new Option(value); } } + public RequiredClassRequiredNotnullableEnumIntegerOnly? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableEnumString @@ -189,7 +189,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public RequiredClassRequiredNotnullableEnumString? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new Option(value); } } + public RequiredClassRequiredNotnullableEnumString? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -202,7 +202,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableEnumInteger @@ -215,7 +215,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public RequiredClassRequiredNullableEnumInteger? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new Option(value); } } + public RequiredClassRequiredNullableEnumInteger? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableEnumIntegerOnly @@ -228,7 +228,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public RequiredClassRequiredNullableEnumIntegerOnly? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new Option(value); } } + public RequiredClassRequiredNullableEnumIntegerOnly? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableEnumString @@ -241,7 +241,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public RequiredClassRequiredNullableEnumString? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new Option(value); } } + public RequiredClassRequiredNullableEnumString? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -254,7 +254,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new Option(value); } } /// /// Gets or Sets RequiredNullableEnumInteger 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 cfa1aee10f8d..32249c7516a1 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 @@ -57,7 +57,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 0b9bb3c3bc51..ede821a9ad25 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -55,7 +55,7 @@ public Zebra(string className, Option type = default) /// Gets or Sets Type /// [JsonPropertyName("type")] - public ZebraType? Type { get { return this.TypeOption; } set { this.TypeOption = new Option(value); } } + public ZebraType? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new Option(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index d538b722cae0..277fb3d5a3b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -53,7 +53,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumClassZeroBasedEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new Option(value); } } + public ZeroBasedEnumClassZeroBasedEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 c107741e961d..e820832b3e88 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 @@ -187,7 +187,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new Option(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new Option(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 40d5e2753631..4e1990b650f9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -284,7 +284,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new Option(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new Option(value); } } /// /// Defines EnumIntegerOnly @@ -356,7 +356,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new Option(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new Option(value); } } /// /// Defines EnumNumber @@ -435,7 +435,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new Option(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new Option(value); } } /// /// Defines EnumString @@ -598,7 +598,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new Option(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new Option(value); } } /// /// Used to track the state of OuterEnum @@ -611,7 +611,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new Option(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new Option(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -624,7 +624,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new Option(value); } } /// /// Used to track the state of OuterEnumInteger @@ -637,7 +637,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new Option(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new Option(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -650,7 +650,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new Option(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new Option(value); } } /// /// Gets or Sets additional properties 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 af9c4abd96ae..b4298f04b511 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 @@ -55,7 +55,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new Option(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new Option(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new Option(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new Option(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index e17ac2b5fe41..7ba77aca7c17 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -59,7 +59,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -71,7 +71,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new Option(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new Option(value); } } /// /// Used to track the state of Int @@ -83,7 +83,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new Option(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new Option(value); } } /// /// Used to track the state of Decimal @@ -95,7 +95,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -107,7 +107,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new Option(value); } } + public MixedSubId MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 ad31eb6ad143..c61a5c5527d9 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new Option(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new Option(value); } } /// /// Used to track the state of Complete 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 e8e661445a1c..d86c3d5f64e5 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new Option(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new Option(value); } } /// /// Gets or Sets Name 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 fee9ba7f2965..1052c98ee925 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 @@ -490,7 +490,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new Option(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new Option(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -562,7 +562,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new Option(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new Option(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -725,7 +725,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new Option(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -738,7 +738,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new Option(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -810,7 +810,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new Option(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new Option(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -882,7 +882,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new Option(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new Option(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1048,7 +1048,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new Option(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1061,7 +1061,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new Option(value); } } /// /// Defines RequiredNullableEnumInteger 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 cfa1aee10f8d..32249c7516a1 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 @@ -57,7 +57,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..ef8a3c49bf1f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -135,7 +135,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new Option(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new Option(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..827dbf234489 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -119,7 +119,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new Option(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 d88a462355e3..c32c0e9cac75 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 @@ -55,7 +55,7 @@ public Fruit(Option apple, Option banana, Option color = /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new Option(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new Option(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public Fruit(Option apple, Option banana, Option color = /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new Option(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new Option(value); } } /// /// Used to track the state of Color 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 18cf210a1dc7..dae9c136996b 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 @@ -54,7 +54,7 @@ public Fruit(Option apple, Option banana, Option color = /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new Option(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new Option(value); } } /// /// Used to track the state of Banana @@ -66,7 +66,7 @@ public Fruit(Option apple, Option banana, Option color = /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new Option(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new Option(value); } } /// /// Used to track the state of Color 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 007eba77a358..fd871b9c2ef7 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 @@ -55,7 +55,7 @@ public EnumArrays(Option> arrayEnum = default, Op /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public EnumArraysJustSymbol? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new Option(value); } } + public EnumArraysJustSymbol? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new Option(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index cb22e561feaf..1f6bce32e98f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -75,7 +75,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_integer")] - public EnumTestEnumInteger? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new Option(value); } } + public EnumTestEnumInteger? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new Option(value); } } /// /// Used to track the state of EnumIntegerOnly @@ -88,7 +88,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_integer_only")] - public EnumTestEnumIntegerOnly? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new Option(value); } } + public EnumTestEnumIntegerOnly? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new Option(value); } } /// /// Used to track the state of EnumNumber @@ -101,7 +101,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_number")] - public TestEnumParametersEnumQueryDoubleParameter? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new Option(value); } } + public TestEnumParametersEnumQueryDoubleParameter? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new Option(value); } } /// /// Used to track the state of EnumString @@ -114,7 +114,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_string")] - public EnumTestEnumString? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new Option(value); } } + public EnumTestEnumString? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new Option(value); } } /// /// Used to track the state of OuterEnum @@ -127,7 +127,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new Option(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new Option(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -140,7 +140,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new Option(value); } } /// /// Used to track the state of OuterEnumInteger @@ -153,7 +153,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new Option(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new Option(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -166,7 +166,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new Option(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new Option(value); } } /// /// Gets or Sets additional properties 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 af9c4abd96ae..b4298f04b511 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 @@ -55,7 +55,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new Option(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new Option(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new Option(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new Option(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index e17ac2b5fe41..7ba77aca7c17 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -59,7 +59,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -71,7 +71,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new Option(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new Option(value); } } /// /// Used to track the state of Int @@ -83,7 +83,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new Option(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new Option(value); } } /// /// Used to track the state of Decimal @@ -95,7 +95,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -107,7 +107,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new Option(value); } } + public MixedSubId MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 8af5defaed7e..ce2005d89016 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 @@ -63,7 +63,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Status /// [JsonPropertyName("status")] - public OrderStatus? Status { get { return this.StatusOption; } set { this.StatusOption = new Option(value); } } + public OrderStatus? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new Option(value); } } /// /// Used to track the state of Complete 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 6e741c362d66..0717f1499aaa 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 @@ -63,7 +63,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Status /// [JsonPropertyName("status")] - public PetStatus? Status { get { return this.StatusOption; } set { this.StatusOption = new Option(value); } } + public PetStatus? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new Option(value); } } /// /// Gets or Sets Name 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 f7422f86f558..85bd06ae9d1d 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 @@ -163,7 +163,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public RequiredClassRequiredNotnullableEnumInteger? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new Option(value); } } + public RequiredClassRequiredNotnullableEnumInteger? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableEnumIntegerOnly @@ -176,7 +176,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public RequiredClassRequiredNotnullableEnumIntegerOnly? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new Option(value); } } + public RequiredClassRequiredNotnullableEnumIntegerOnly? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableEnumString @@ -189,7 +189,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public RequiredClassRequiredNotnullableEnumString? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new Option(value); } } + public RequiredClassRequiredNotnullableEnumString? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -202,7 +202,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableEnumInteger @@ -215,7 +215,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public RequiredClassRequiredNullableEnumInteger? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new Option(value); } } + public RequiredClassRequiredNullableEnumInteger? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableEnumIntegerOnly @@ -228,7 +228,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public RequiredClassRequiredNullableEnumIntegerOnly? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new Option(value); } } + public RequiredClassRequiredNullableEnumIntegerOnly? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableEnumString @@ -241,7 +241,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public RequiredClassRequiredNullableEnumString? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new Option(value); } } + public RequiredClassRequiredNullableEnumString? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -254,7 +254,7 @@ public RequiredClass(DateTime requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new Option(value); } } /// /// Gets or Sets RequiredNullableEnumInteger 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 cfa1aee10f8d..32249c7516a1 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 @@ -57,7 +57,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 0b9bb3c3bc51..ede821a9ad25 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -55,7 +55,7 @@ public Zebra(string className, Option type = default) /// Gets or Sets Type /// [JsonPropertyName("type")] - public ZebraType? Type { get { return this.TypeOption; } set { this.TypeOption = new Option(value); } } + public ZebraType? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new Option(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index d538b722cae0..277fb3d5a3b2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -53,7 +53,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumClassZeroBasedEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new Option(value); } } + public ZeroBasedEnumClassZeroBasedEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 c107741e961d..e820832b3e88 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 @@ -187,7 +187,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new Option(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new Option(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 40d5e2753631..4e1990b650f9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -284,7 +284,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new Option(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new Option(value); } } /// /// Defines EnumIntegerOnly @@ -356,7 +356,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new Option(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new Option(value); } } /// /// Defines EnumNumber @@ -435,7 +435,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new Option(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new Option(value); } } /// /// Defines EnumString @@ -598,7 +598,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new Option(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new Option(value); } } /// /// Used to track the state of OuterEnum @@ -611,7 +611,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new Option(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new Option(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -624,7 +624,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new Option(value); } } /// /// Used to track the state of OuterEnumInteger @@ -637,7 +637,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new Option(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new Option(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -650,7 +650,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new Option(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new Option(value); } } /// /// Gets or Sets additional properties 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 af9c4abd96ae..b4298f04b511 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 @@ -55,7 +55,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new Option(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new Option(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new Option(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new Option(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index e17ac2b5fe41..7ba77aca7c17 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -59,7 +59,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -71,7 +71,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new Option(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new Option(value); } } /// /// Used to track the state of Int @@ -83,7 +83,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new Option(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new Option(value); } } /// /// Used to track the state of Decimal @@ -95,7 +95,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -107,7 +107,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new Option(value); } } + public MixedSubId MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 ad31eb6ad143..c61a5c5527d9 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new Option(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new Option(value); } } /// /// Used to track the state of Complete 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 e8e661445a1c..d86c3d5f64e5 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new Option(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new Option(value); } } /// /// Gets or Sets Name 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 fee9ba7f2965..1052c98ee925 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 @@ -490,7 +490,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new Option(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new Option(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -562,7 +562,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new Option(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new Option(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -725,7 +725,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new Option(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -738,7 +738,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new Option(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -810,7 +810,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new Option(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new Option(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -882,7 +882,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new Option(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new Option(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1048,7 +1048,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new Option(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1061,7 +1061,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new Option(value); } } /// /// Defines RequiredNullableEnumInteger 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 cfa1aee10f8d..32249c7516a1 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 @@ -57,7 +57,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..ef8a3c49bf1f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -135,7 +135,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new Option(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new Option(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..827dbf234489 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -119,7 +119,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new Option(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = new Option(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 89b223fa5dbb..90ae7568d3fc 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 @@ -57,7 +57,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -69,7 +69,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color 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 60e3c31c6a4f..8a99245775f6 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 @@ -56,7 +56,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -68,7 +68,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color 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 afdb3342ce23..7fe4cb3c8afa 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 @@ -55,7 +55,7 @@ public EnumArrays(Option> arrayEnum = default, Op /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public EnumArraysJustSymbol? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public EnumArraysJustSymbol? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 49ce4b0a6d6e..24a5199c418b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -75,7 +75,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_integer")] - public EnumTestEnumInteger? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumTestEnumInteger? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Used to track the state of EnumIntegerOnly @@ -88,7 +88,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_integer_only")] - public EnumTestEnumIntegerOnly? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumTestEnumIntegerOnly? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Used to track the state of EnumNumber @@ -101,7 +101,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_number")] - public TestEnumParametersEnumQueryDoubleParameter? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public TestEnumParametersEnumQueryDoubleParameter? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Used to track the state of EnumString @@ -114,7 +114,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_string")] - public EnumTestEnumString? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumTestEnumString? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -127,7 +127,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -140,7 +140,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -153,7 +153,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -166,7 +166,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 54f59fff7073..64b6d880bdc0 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 @@ -55,7 +55,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 44207079969a..07747b042115 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -59,7 +59,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -71,7 +71,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -83,7 +83,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -95,7 +95,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -107,7 +107,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 0f70b6ee763d..4c7bea23ae40 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 @@ -63,7 +63,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Status /// [JsonPropertyName("status")] - public OrderStatus? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public OrderStatus? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 294770c56dfb..c505ad177fb4 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 @@ -63,7 +63,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Status /// [JsonPropertyName("status")] - public PetStatus? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public PetStatus? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 8a2fc39d76bf..76ab94c6f171 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 @@ -163,7 +163,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public RequiredClassRequiredNotnullableEnumInteger? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public RequiredClassRequiredNotnullableEnumInteger? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableEnumIntegerOnly @@ -176,7 +176,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public RequiredClassRequiredNotnullableEnumIntegerOnly? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public RequiredClassRequiredNotnullableEnumIntegerOnly? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableEnumString @@ -189,7 +189,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public RequiredClassRequiredNotnullableEnumString? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public RequiredClassRequiredNotnullableEnumString? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -202,7 +202,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of NotrequiredNullableEnumInteger @@ -215,7 +215,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public RequiredClassRequiredNullableEnumInteger? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public RequiredClassRequiredNullableEnumInteger? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Used to track the state of NotrequiredNullableEnumIntegerOnly @@ -228,7 +228,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public RequiredClassRequiredNullableEnumIntegerOnly? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public RequiredClassRequiredNullableEnumIntegerOnly? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Used to track the state of NotrequiredNullableEnumString @@ -241,7 +241,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public RequiredClassRequiredNullableEnumString? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public RequiredClassRequiredNullableEnumString? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -254,7 +254,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Gets or Sets RequiredNullableEnumInteger 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 508d19f2807e..512daa77d491 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 @@ -57,7 +57,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index d3fbe37b12e5..e2435865cc1f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -55,7 +55,7 @@ public Zebra(string className, Option type = default) /// Gets or Sets Type /// [JsonPropertyName("type")] - public ZebraType? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public ZebraType? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 7373bc5873d5..a40fc0e4770b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -53,7 +53,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumClassZeroBasedEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumClassZeroBasedEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 9a6f097e92c2..10c01b2dcb54 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 @@ -189,7 +189,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs index ea7a5bd26988..725176ac17b0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs @@ -286,7 +286,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Defines EnumIntegerOnly @@ -358,7 +358,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Defines EnumNumber @@ -437,7 +437,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Defines EnumString @@ -600,7 +600,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -613,7 +613,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -626,7 +626,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -639,7 +639,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -652,7 +652,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 d751e8154524..6bb6bc5757af 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 @@ -57,7 +57,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -69,7 +69,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 3d92101cb493..2c8240caf7f2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -61,7 +61,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -73,7 +73,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -85,7 +85,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -97,7 +97,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -109,7 +109,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId? MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId? MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 c4c43309bec1..9341b50d3a3d 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 @@ -147,7 +147,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 56b981a0e2ad..9692c765c581 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 @@ -147,7 +147,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 0c7dc7eab56f..60530fcdce09 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 @@ -492,7 +492,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -564,7 +564,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -727,7 +727,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -740,7 +740,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -812,7 +812,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -884,7 +884,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1050,7 +1050,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1063,7 +1063,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines RequiredNullableEnumInteger 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 e7829b5974ee..bcd2a5f846da 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 @@ -59,7 +59,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs index 4ca12a36d096..babe74eead82 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs @@ -137,7 +137,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index dfb395124397..fa71787b18e3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -121,7 +121,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 2a7d6a8a5f4d..5eda7b332cb7 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 @@ -187,7 +187,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index b44f96171f59..223a76a6ca96 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -284,7 +284,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Defines EnumIntegerOnly @@ -356,7 +356,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Defines EnumNumber @@ -435,7 +435,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Defines EnumString @@ -598,7 +598,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -611,7 +611,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -624,7 +624,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -637,7 +637,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -650,7 +650,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 54f59fff7073..64b6d880bdc0 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 @@ -55,7 +55,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 44207079969a..07747b042115 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -59,7 +59,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -71,7 +71,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -83,7 +83,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -95,7 +95,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -107,7 +107,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 094096b6350d..7f2e150b71fd 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 7e8a3d34957a..0473a02f1573 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 6217ae6e6799..c4f7a9534641 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 @@ -490,7 +490,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -562,7 +562,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -725,7 +725,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -738,7 +738,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -810,7 +810,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -882,7 +882,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1048,7 +1048,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1061,7 +1061,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines RequiredNullableEnumInteger 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 508d19f2807e..512daa77d491 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 @@ -57,7 +57,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 0efe7f985a3a..cce46d917eab 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -135,7 +135,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 9722305fcb2a..840d0c0bb1f6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -119,7 +119,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 5c9774abc417..0cc70adbd2a2 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 @@ -190,7 +190,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs index 897a9bd24efe..ba1daad0bdc1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs @@ -287,7 +287,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Defines EnumIntegerOnly @@ -359,7 +359,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Defines EnumNumber @@ -438,7 +438,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Defines EnumString @@ -601,7 +601,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -614,7 +614,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -627,7 +627,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -640,7 +640,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -653,7 +653,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 8b41879612ea..31555694e81b 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 @@ -58,7 +58,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -70,7 +70,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 0fd593b27c00..2ab12aca41df 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -62,7 +62,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -74,7 +74,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -86,7 +86,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -98,7 +98,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -110,7 +110,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId? MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId? MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 fff55dc03b4b..0f45f32a5dc1 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 @@ -148,7 +148,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 fc68eb27a177..45da7d04ae56 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 @@ -148,7 +148,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 074d0e77ee37..269284919791 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 @@ -493,7 +493,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -565,7 +565,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -728,7 +728,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -741,7 +741,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -813,7 +813,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -885,7 +885,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1051,7 +1051,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1064,7 +1064,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines RequiredNullableEnumInteger 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 df0deacac70e..933d45815f83 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 @@ -60,7 +60,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs index 0d0e7222c42b..c736cc2a360d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs @@ -138,7 +138,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 74792442fd0e..fb00a6c38e90 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -122,7 +122,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 89b223fa5dbb..90ae7568d3fc 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 @@ -57,7 +57,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -69,7 +69,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color 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 60e3c31c6a4f..8a99245775f6 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 @@ -56,7 +56,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -68,7 +68,7 @@ public Fruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color 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 afdb3342ce23..7fe4cb3c8afa 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 @@ -55,7 +55,7 @@ public EnumArrays(Option> arrayEnum = default, Op /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public EnumArraysJustSymbol? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public EnumArraysJustSymbol? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 49ce4b0a6d6e..24a5199c418b 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -75,7 +75,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_integer")] - public EnumTestEnumInteger? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumTestEnumInteger? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Used to track the state of EnumIntegerOnly @@ -88,7 +88,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_integer_only")] - public EnumTestEnumIntegerOnly? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumTestEnumIntegerOnly? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Used to track the state of EnumNumber @@ -101,7 +101,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_number")] - public TestEnumParametersEnumQueryDoubleParameter? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public TestEnumParametersEnumQueryDoubleParameter? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Used to track the state of EnumString @@ -114,7 +114,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("enum_string")] - public EnumTestEnumString? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumTestEnumString? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -127,7 +127,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -140,7 +140,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -153,7 +153,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -166,7 +166,7 @@ public EnumTest(EnumTestEnumString enumStringRequired, Option [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 54f59fff7073..64b6d880bdc0 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 @@ -55,7 +55,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 44207079969a..07747b042115 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -59,7 +59,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -71,7 +71,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -83,7 +83,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -95,7 +95,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -107,7 +107,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 0f70b6ee763d..4c7bea23ae40 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 @@ -63,7 +63,7 @@ public Order(Option complete = default, Option id = default, Optio /// Gets or Sets Status /// [JsonPropertyName("status")] - public OrderStatus? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public OrderStatus? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 294770c56dfb..c505ad177fb4 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 @@ -63,7 +63,7 @@ public Pet(string name, List photoUrls, Option category = defa /// Gets or Sets Status /// [JsonPropertyName("status")] - public PetStatus? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public PetStatus? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 8a2fc39d76bf..76ab94c6f171 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 @@ -163,7 +163,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public RequiredClassRequiredNotnullableEnumInteger? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public RequiredClassRequiredNotnullableEnumInteger? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableEnumIntegerOnly @@ -176,7 +176,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public RequiredClassRequiredNotnullableEnumIntegerOnly? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public RequiredClassRequiredNotnullableEnumIntegerOnly? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableEnumString @@ -189,7 +189,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public RequiredClassRequiredNotnullableEnumString? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public RequiredClassRequiredNotnullableEnumString? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -202,7 +202,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of NotrequiredNullableEnumInteger @@ -215,7 +215,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public RequiredClassRequiredNullableEnumInteger? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public RequiredClassRequiredNullableEnumInteger? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Used to track the state of NotrequiredNullableEnumIntegerOnly @@ -228,7 +228,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public RequiredClassRequiredNullableEnumIntegerOnly? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public RequiredClassRequiredNullableEnumIntegerOnly? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Used to track the state of NotrequiredNullableEnumString @@ -241,7 +241,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public RequiredClassRequiredNullableEnumString? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public RequiredClassRequiredNullableEnumString? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -254,7 +254,7 @@ public RequiredClass(DateOnly requiredNotNullableDateProp, List required /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Gets or Sets RequiredNullableEnumInteger 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 508d19f2807e..512daa77d491 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 @@ -57,7 +57,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index d3fbe37b12e5..e2435865cc1f 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -55,7 +55,7 @@ public Zebra(string className, Option type = default) /// Gets or Sets Type /// [JsonPropertyName("type")] - public ZebraType? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public ZebraType? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 7373bc5873d5..a40fc0e4770b 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -53,7 +53,7 @@ public ZeroBasedEnumClass(Option zeroBasedEnum /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumClassZeroBasedEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumClassZeroBasedEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 9a6f097e92c2..10c01b2dcb54 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 @@ -189,7 +189,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs index ea7a5bd26988..725176ac17b0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs @@ -286,7 +286,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Defines EnumIntegerOnly @@ -358,7 +358,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Defines EnumNumber @@ -437,7 +437,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Defines EnumString @@ -600,7 +600,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -613,7 +613,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -626,7 +626,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -639,7 +639,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -652,7 +652,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 d751e8154524..6bb6bc5757af 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 @@ -57,7 +57,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -69,7 +69,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 3d92101cb493..2c8240caf7f2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -61,7 +61,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -73,7 +73,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -85,7 +85,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -97,7 +97,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -109,7 +109,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId? MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId? MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 c4c43309bec1..9341b50d3a3d 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 @@ -147,7 +147,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 56b981a0e2ad..9692c765c581 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 @@ -147,7 +147,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 0c7dc7eab56f..60530fcdce09 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 @@ -492,7 +492,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -564,7 +564,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -727,7 +727,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -740,7 +740,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -812,7 +812,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -884,7 +884,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1050,7 +1050,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1063,7 +1063,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines RequiredNullableEnumInteger 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 e7829b5974ee..bcd2a5f846da 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 @@ -59,7 +59,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs index 4ca12a36d096..babe74eead82 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs @@ -137,7 +137,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index dfb395124397..fa71787b18e3 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -121,7 +121,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 2a7d6a8a5f4d..5eda7b332cb7 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 @@ -187,7 +187,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index b44f96171f59..223a76a6ca96 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -284,7 +284,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Defines EnumIntegerOnly @@ -356,7 +356,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Defines EnumNumber @@ -435,7 +435,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Defines EnumString @@ -598,7 +598,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -611,7 +611,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -624,7 +624,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -637,7 +637,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -650,7 +650,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 54f59fff7073..64b6d880bdc0 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 @@ -55,7 +55,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 44207079969a..07747b042115 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -59,7 +59,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -71,7 +71,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -83,7 +83,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -95,7 +95,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -107,7 +107,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 094096b6350d..7f2e150b71fd 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 7e8a3d34957a..0473a02f1573 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 6217ae6e6799..c4f7a9534641 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 @@ -490,7 +490,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -562,7 +562,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -725,7 +725,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -738,7 +738,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -810,7 +810,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -882,7 +882,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1048,7 +1048,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1061,7 +1061,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines RequiredNullableEnumInteger 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 508d19f2807e..512daa77d491 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 @@ -57,7 +57,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 0efe7f985a3a..cce46d917eab 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -135,7 +135,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 9722305fcb2a..840d0c0bb1f6 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -119,7 +119,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = 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 5c9774abc417..0cc70adbd2a2 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 @@ -190,7 +190,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs index 897a9bd24efe..ba1daad0bdc1 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs @@ -287,7 +287,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new(value); } } /// /// Defines EnumIntegerOnly @@ -359,7 +359,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new(value); } } /// /// Defines EnumNumber @@ -438,7 +438,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new(value); } } /// /// Defines EnumString @@ -601,7 +601,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new(value); } } /// /// Used to track the state of OuterEnum @@ -614,7 +614,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -627,7 +627,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new(value); } } /// /// Used to track the state of OuterEnumInteger @@ -640,7 +640,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -653,7 +653,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new(value); } } /// /// Gets or Sets additional properties 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 8b41879612ea..31555694e81b 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 @@ -58,7 +58,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Apple /// - public Apple? Apple { get { return this.AppleOption; } set { this.AppleOption = new(value); } } + public Apple? Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new(value); } } /// /// Used to track the state of Banana @@ -70,7 +70,7 @@ public GmFruit(Option apple, Option banana, Option col /// /// Gets or Sets Banana /// - public Banana? Banana { get { return this.BananaOption; } set { this.BananaOption = new(value); } } + public Banana? Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index 0fd593b27c00..2ab12aca41df 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -62,7 +62,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -74,7 +74,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new(value); } } /// /// Used to track the state of Int @@ -86,7 +86,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new(value); } } /// /// Used to track the state of Decimal @@ -98,7 +98,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -110,7 +110,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId? MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new(value); } } + public MixedSubId? MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 fff55dc03b4b..0f45f32a5dc1 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 @@ -148,7 +148,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Used to track the state of Complete 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 fc68eb27a177..45da7d04ae56 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 @@ -148,7 +148,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new(value); } } /// /// Gets or Sets Name 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 074d0e77ee37..269284919791 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 @@ -493,7 +493,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -565,7 +565,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -728,7 +728,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -741,7 +741,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -813,7 +813,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -885,7 +885,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1051,7 +1051,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1064,7 +1064,7 @@ public static NotrequiredNullableEnumStringEnum NotrequiredNullableEnumStringEnu /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } } /// /// Defines RequiredNullableEnumInteger 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 df0deacac70e..933d45815f83 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 @@ -60,7 +60,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs index 0d0e7222c42b..c736cc2a360d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs @@ -138,7 +138,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 74792442fd0e..fb00a6c38e90 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -122,7 +122,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = new(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 c107741e961d..e820832b3e88 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 @@ -187,7 +187,7 @@ public static string JustSymbolEnumToJsonValue(JustSymbolEnum? value) /// Gets or Sets JustSymbol /// [JsonPropertyName("just_symbol")] - public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption; } set { this.JustSymbolOption = new Option(value); } } + public JustSymbolEnum? JustSymbol { get { return this.JustSymbolOption.Value; } set { this.JustSymbolOption = new Option(value); } } /// /// Used to track the state of ArrayEnum diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 40d5e2753631..4e1990b650f9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -284,7 +284,7 @@ public static int EnumIntegerEnumToJsonValue(EnumIntegerEnum value) /// Gets or Sets EnumInteger /// [JsonPropertyName("enum_integer")] - public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption; } set { this.EnumIntegerOption = new Option(value); } } + public EnumIntegerEnum? EnumInteger { get { return this.EnumIntegerOption.Value; } set { this.EnumIntegerOption = new Option(value); } } /// /// Defines EnumIntegerOnly @@ -356,7 +356,7 @@ public static int EnumIntegerOnlyEnumToJsonValue(EnumIntegerOnlyEnum value) /// Gets or Sets EnumIntegerOnly /// [JsonPropertyName("enum_integer_only")] - public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption; } set { this.EnumIntegerOnlyOption = new Option(value); } } + public EnumIntegerOnlyEnum? EnumIntegerOnly { get { return this.EnumIntegerOnlyOption.Value; } set { this.EnumIntegerOnlyOption = new Option(value); } } /// /// Defines EnumNumber @@ -435,7 +435,7 @@ public static double EnumNumberEnumToJsonValue(EnumNumberEnum? value) /// Gets or Sets EnumNumber /// [JsonPropertyName("enum_number")] - public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption; } set { this.EnumNumberOption = new Option(value); } } + public EnumNumberEnum? EnumNumber { get { return this.EnumNumberOption.Value; } set { this.EnumNumberOption = new Option(value); } } /// /// Defines EnumString @@ -598,7 +598,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets EnumString /// [JsonPropertyName("enum_string")] - public EnumStringEnum? EnumString { get { return this.EnumStringOption; } set { this.EnumStringOption = new Option(value); } } + public EnumStringEnum? EnumString { get { return this.EnumStringOption.Value; } set { this.EnumStringOption = new Option(value); } } /// /// Used to track the state of OuterEnum @@ -611,7 +611,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnum /// [JsonPropertyName("outerEnum")] - public OuterEnum? OuterEnum { get { return this.OuterEnumOption; } set { this.OuterEnumOption = new Option(value); } } + public OuterEnum? OuterEnum { get { return this.OuterEnumOption.Value; } set { this.OuterEnumOption = new Option(value); } } /// /// Used to track the state of OuterEnumDefaultValue @@ -624,7 +624,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumDefaultValue /// [JsonPropertyName("outerEnumDefaultValue")] - public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption; } set { this.OuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? OuterEnumDefaultValue { get { return this.OuterEnumDefaultValueOption.Value; } set { this.OuterEnumDefaultValueOption = new Option(value); } } /// /// Used to track the state of OuterEnumInteger @@ -637,7 +637,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumInteger /// [JsonPropertyName("outerEnumInteger")] - public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption; } set { this.OuterEnumIntegerOption = new Option(value); } } + public OuterEnumInteger? OuterEnumInteger { get { return this.OuterEnumIntegerOption.Value; } set { this.OuterEnumIntegerOption = new Option(value); } } /// /// Used to track the state of OuterEnumIntegerDefaultValue @@ -650,7 +650,7 @@ public static string EnumStringEnumToJsonValue(EnumStringEnum? value) /// Gets or Sets OuterEnumIntegerDefaultValue /// [JsonPropertyName("outerEnumIntegerDefaultValue")] - public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption; } set { this.OuterEnumIntegerDefaultValueOption = new Option(value); } } + public OuterEnumIntegerDefaultValue? OuterEnumIntegerDefaultValue { get { return this.OuterEnumIntegerDefaultValueOption.Value; } set { this.OuterEnumIntegerDefaultValueOption = new Option(value); } } /// /// Gets or Sets additional properties 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 af9c4abd96ae..b4298f04b511 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 @@ -55,7 +55,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Apple /// - public Apple Apple { get { return this.AppleOption; } set { this.AppleOption = new Option(value); } } + public Apple Apple { get { return this.AppleOption.Value; } set { this.AppleOption = new Option(value); } } /// /// Used to track the state of Banana @@ -67,7 +67,7 @@ public GmFruit(Option apple, Option banana, Option color /// /// Gets or Sets Banana /// - public Banana Banana { get { return this.BananaOption; } set { this.BananaOption = new Option(value); } } + public Banana Banana { get { return this.BananaOption.Value; } set { this.BananaOption = new Option(value); } } /// /// Used to track the state of Color diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs index e17ac2b5fe41..7ba77aca7c17 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs @@ -59,7 +59,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 Bool @@ -71,7 +71,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Bool /// - public bool? Bool { get { return this.BoolOption; } set { this.BoolOption = new Option(value); } } + public bool? Bool { get { return this.BoolOption.Value; } set { this.BoolOption = new Option(value); } } /// /// Used to track the state of Int @@ -83,7 +83,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets Int /// - public int? Int { get { return this.IntOption; } set { this.IntOption = new Option(value); } } + public int? Int { get { return this.IntOption.Value; } set { this.IntOption = new Option(value); } } /// /// Used to track the state of Decimal @@ -95,7 +95,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets 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 MixedSubId @@ -107,7 +107,7 @@ public MixedAnyOfContent(Option @string, Option @bool, Option /// Gets or Sets MixedSubId /// - public MixedSubId MixedSubId { get { return this.MixedSubIdOption; } set { this.MixedSubIdOption = new Option(value); } } + public MixedSubId MixedSubId { get { return this.MixedSubIdOption.Value; } set { this.MixedSubIdOption = 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 ad31eb6ad143..c61a5c5527d9 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// Order Status [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new Option(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new Option(value); } } /// /// Used to track the state of Complete 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 e8e661445a1c..d86c3d5f64e5 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 @@ -145,7 +145,7 @@ public static string StatusEnumToJsonValue(StatusEnum? value) /// /// pet status in the store [JsonPropertyName("status")] - public StatusEnum? Status { get { return this.StatusOption; } set { this.StatusOption = new Option(value); } } + public StatusEnum? Status { get { return this.StatusOption.Value; } set { this.StatusOption = new Option(value); } } /// /// Gets or Sets Name 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 fee9ba7f2965..1052c98ee925 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 @@ -490,7 +490,7 @@ public static int NotrequiredNotnullableEnumIntegerEnumToJsonValue(NotrequiredNo /// Gets or Sets NotrequiredNotnullableEnumInteger /// [JsonPropertyName("notrequired_notnullable_enum_integer")] - public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption; } set { this.NotrequiredNotnullableEnumIntegerOption = new Option(value); } } + public NotrequiredNotnullableEnumIntegerEnum? NotrequiredNotnullableEnumInteger { get { return this.NotrequiredNotnullableEnumIntegerOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOption = new Option(value); } } /// /// Defines NotrequiredNotnullableEnumIntegerOnly @@ -562,7 +562,7 @@ public static int NotrequiredNotnullableEnumIntegerOnlyEnumToJsonValue(Notrequir /// Gets or Sets NotrequiredNotnullableEnumIntegerOnly /// [JsonPropertyName("notrequired_notnullable_enum_integer_only")] - public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new Option(value); } } + public NotrequiredNotnullableEnumIntegerOnlyEnum? NotrequiredNotnullableEnumIntegerOnly { get { return this.NotrequiredNotnullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNotnullableEnumIntegerOnlyOption = new Option(value); } } /// /// Defines NotrequiredNotnullableEnumString @@ -725,7 +725,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableEnumString /// [JsonPropertyName("notrequired_notnullable_enum_string")] - public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption; } set { this.NotrequiredNotnullableEnumStringOption = new Option(value); } } + public NotrequiredNotnullableEnumStringEnum? NotrequiredNotnullableEnumString { get { return this.NotrequiredNotnullableEnumStringOption.Value; } set { this.NotrequiredNotnullableEnumStringOption = new Option(value); } } /// /// Used to track the state of NotrequiredNotnullableOuterEnumDefaultValue @@ -738,7 +738,7 @@ public static string NotrequiredNotnullableEnumStringEnumToJsonValue(Notrequired /// Gets or Sets NotrequiredNotnullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_notnullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? NotrequiredNotnullableOuterEnumDefaultValue { get { return this.NotrequiredNotnullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNotnullableOuterEnumDefaultValueOption = new Option(value); } } /// /// Defines NotrequiredNullableEnumInteger @@ -810,7 +810,7 @@ public static int NotrequiredNullableEnumIntegerEnumToJsonValue(NotrequiredNulla /// Gets or Sets NotrequiredNullableEnumInteger /// [JsonPropertyName("notrequired_nullable_enum_integer")] - public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption; } set { this.NotrequiredNullableEnumIntegerOption = new Option(value); } } + public NotrequiredNullableEnumIntegerEnum? NotrequiredNullableEnumInteger { get { return this.NotrequiredNullableEnumIntegerOption.Value; } set { this.NotrequiredNullableEnumIntegerOption = new Option(value); } } /// /// Defines NotrequiredNullableEnumIntegerOnly @@ -882,7 +882,7 @@ public static int NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(NotrequiredN /// Gets or Sets NotrequiredNullableEnumIntegerOnly /// [JsonPropertyName("notrequired_nullable_enum_integer_only")] - public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new Option(value); } } + public NotrequiredNullableEnumIntegerOnlyEnum? NotrequiredNullableEnumIntegerOnly { get { return this.NotrequiredNullableEnumIntegerOnlyOption.Value; } set { this.NotrequiredNullableEnumIntegerOnlyOption = new Option(value); } } /// /// Defines NotrequiredNullableEnumString @@ -1048,7 +1048,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableEnumString /// [JsonPropertyName("notrequired_nullable_enum_string")] - public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption; } set { this.NotrequiredNullableEnumStringOption = new Option(value); } } + public NotrequiredNullableEnumStringEnum? NotrequiredNullableEnumString { get { return this.NotrequiredNullableEnumStringOption.Value; } set { this.NotrequiredNullableEnumStringOption = new Option(value); } } /// /// Used to track the state of NotrequiredNullableOuterEnumDefaultValue @@ -1061,7 +1061,7 @@ public static string NotrequiredNullableEnumStringEnumToJsonValue(NotrequiredNul /// Gets or Sets NotrequiredNullableOuterEnumDefaultValue /// [JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")] - public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new Option(value); } } + public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption.Value; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new Option(value); } } /// /// Defines RequiredNullableEnumInteger 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 cfa1aee10f8d..32249c7516a1 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 @@ -57,7 +57,7 @@ public TestResult(Option code = default, Option [JsonPropertyName("code")] - public TestResultCode? Code { get { return this.CodeOption; } set { this.CodeOption = new Option(value); } } + public TestResultCode? Code { get { return this.CodeOption.Value; } set { this.CodeOption = new Option(value); } } /// /// Used to track the state of Data diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index bdf489815279..ef8a3c49bf1f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -135,7 +135,7 @@ public static string TypeEnumToJsonValue(TypeEnum? value) /// Gets or Sets Type /// [JsonPropertyName("type")] - public TypeEnum? Type { get { return this.TypeOption; } set { this.TypeOption = new Option(value); } } + public TypeEnum? Type { get { return this.TypeOption.Value; } set { this.TypeOption = new Option(value); } } /// /// Gets or Sets ClassName diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a6d408aeecc1..827dbf234489 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -119,7 +119,7 @@ public static string ZeroBasedEnumEnumToJsonValue(ZeroBasedEnumEnum? value) /// Gets or Sets ZeroBasedEnum /// [JsonPropertyName("ZeroBasedEnum")] - public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption; } set { this.ZeroBasedEnumOption = new Option(value); } } + public ZeroBasedEnumEnum? ZeroBasedEnum { get { return this.ZeroBasedEnumOption.Value; } set { this.ZeroBasedEnumOption = new Option(value); } } /// /// Gets or Sets additional properties