Fix issue with nullable values not validated when value is null Bug: 20525 (#20549)

* Do not check for token type null

* Update docs

* Fix CS8957 Target-Typed Conditional Expression

* Update samples

* Fix compile errors

* Update docs

---------

Co-authored-by: Jan van Rhijn <jan.vanrhijn1@akzonobel.com>
This commit is contained in:
Jan van Rhijn 2025-03-23 14:45:15 +01:00 committed by GitHub
parent 08ec37cc10
commit 2ec6b53dfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
554 changed files with 1845 additions and 3690 deletions

View File

@ -185,33 +185,27 @@
{{/isMap}} {{/isMap}}
{{/isString}} {{/isString}}
{{#isBoolean}} {{#isBoolean}}
if (utf8JsonReader.TokenType != JsonTokenType.Null) {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetBoolean());
{{/isBoolean}} {{/isBoolean}}
{{#isNumeric}} {{#isNumeric}}
{{^isEnum}} {{^isEnum}}
{{#isDouble}} {{#isDouble}}
if (utf8JsonReader.TokenType != JsonTokenType.Null) {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetDouble());
{{/isDouble}} {{/isDouble}}
{{#isDecimal}} {{#isDecimal}}
if (utf8JsonReader.TokenType != JsonTokenType.Null) {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetDecimal());
{{/isDecimal}} {{/isDecimal}}
{{#isFloat}} {{#isFloat}}
if (utf8JsonReader.TokenType != JsonTokenType.Null) {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}(float)utf8JsonReader.GetDouble());
{{/isFloat}} {{/isFloat}}
{{#isLong}} {{#isLong}}
if (utf8JsonReader.TokenType != JsonTokenType.Null) {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.TokenType == JsonTokenType.Null ? ({{#vendorExtensions.x-unsigned}}u{{/vendorExtensions.x-unsigned}}long?)null : utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int64());
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int64());
{{/isLong}} {{/isLong}}
{{^isLong}} {{^isLong}}
{{^isFloat}} {{^isFloat}}
{{^isDecimal}} {{^isDecimal}}
{{^isDouble}} {{^isDouble}}
if (utf8JsonReader.TokenType != JsonTokenType.Null) {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.TokenType == JsonTokenType.Null ? ({{#vendorExtensions.x-unsigned}}u{{/vendorExtensions.x-unsigned}}int?)null : utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int32());
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int32());
{{/isDouble}} {{/isDouble}}
{{/isDecimal}} {{/isDecimal}}
{{/isFloat}} {{/isFloat}}
@ -219,18 +213,15 @@
{{/isEnum}} {{/isEnum}}
{{/isNumeric}} {{/isNumeric}}
{{#isDate}} {{#isDate}}
if (utf8JsonReader.TokenType != JsonTokenType.Null) {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}JsonSerializer.Deserialize<{{#supportsDateOnly}}DateOnly{{/supportsDateOnly}}{{^supportsDateOnly}}DateTime{{/supportsDateOnly}}{{#isNullable}}?{{/isNullable}}>(ref utf8JsonReader, jsonSerializerOptions));
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}JsonSerializer.Deserialize<{{#supportsDateOnly}}DateOnly{{/supportsDateOnly}}{{^supportsDateOnly}}DateTime{{/supportsDateOnly}}{{#isNullable}}?{{/isNullable}}>(ref utf8JsonReader, jsonSerializerOptions));
{{/isDate}} {{/isDate}}
{{#isDateTime}} {{#isDateTime}}
if (utf8JsonReader.TokenType != JsonTokenType.Null) {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}JsonSerializer.Deserialize<DateTime{{#isNullable}}?{{/isNullable}}>(ref utf8JsonReader, jsonSerializerOptions));
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}JsonSerializer.Deserialize<DateTime{{#isNullable}}?{{/isNullable}}>(ref utf8JsonReader, jsonSerializerOptions));
{{/isDateTime}} {{/isDateTime}}
{{#isEnum}} {{#isEnum}}
{{^isMap}} {{^isMap}}
{{#isNumeric}} {{#isNumeric}}
if (utf8JsonReader.TokenType != JsonTokenType.Null) {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.TokenType == JsonTokenType.Null ? ({{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}}?)null : ({{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}})utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int32());
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}({{#isInnerEnum}}{{classname}}.{{/isInnerEnum}}{{{datatypeWithEnum}}})utf8JsonReader.Get{{#vendorExtensions.x-unsigned}}U{{/vendorExtensions.x-unsigned}}Int32());
{{/isNumeric}} {{/isNumeric}}
{{^isNumeric}} {{^isNumeric}}
string{{nrt?}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue = utf8JsonReader.GetString(); string{{nrt?}} {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}RawValue = utf8JsonReader.GetString();
@ -246,8 +237,7 @@
{{/isMap}} {{/isMap}}
{{/isEnum}} {{/isEnum}}
{{#isUuid}} {{#isUuid}}
if (utf8JsonReader.TokenType != JsonTokenType.Null) {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}utf8JsonReader.GetGuid());
{{/isUuid}} {{/isUuid}}
{{^isUuid}} {{^isUuid}}
{{^isEnum}} {{^isEnum}}
@ -256,8 +246,7 @@
{{^isNumeric}} {{^isNumeric}}
{{^isDate}} {{^isDate}}
{{^isDateTime}} {{^isDateTime}}
if (utf8JsonReader.TokenType != JsonTokenType.Null) {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}JsonSerializer.Deserialize<{{{datatypeWithEnum}}}>(ref utf8JsonReader, jsonSerializerOptions){{^isNullable}}{{nrt!}}{{/isNullable}});
{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} = {{>OptionProperty}}JsonSerializer.Deserialize<{{{datatypeWithEnum}}}>(ref utf8JsonReader, jsonSerializerOptions){{^isNullable}}{{nrt!}}{{/isNullable}});
{{/isDateTime}} {{/isDateTime}}
{{/isDate}} {{/isDate}}
{{/isNumeric}} {{/isNumeric}}

View File

@ -115,8 +115,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "children": case "children":
if (utf8JsonReader.TokenType != JsonTokenType.Null) children = new Option<List<Child>>(JsonSerializer.Deserialize<List<Child>>(ref utf8JsonReader, jsonSerializerOptions));
children = new Option<List<Child>>(JsonSerializer.Deserialize<List<Child>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "firstName": case "firstName":
firstName = new Option<string>(utf8JsonReader.GetString()); firstName = new Option<string>(utf8JsonReader.GetString());

View File

@ -132,8 +132,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "age": case "age":
if (utf8JsonReader.TokenType != JsonTokenType.Null) age = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
age = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "firstName": case "firstName":
firstName = new Option<string>(utf8JsonReader.GetString()); firstName = new Option<string>(utf8JsonReader.GetString());
@ -145,8 +144,7 @@ namespace Org.OpenAPITools.Model
type = new Option<string>(utf8JsonReader.GetString()); type = new Option<string>(utf8JsonReader.GetString());
break; break;
case "boosterSeat": case "boosterSeat":
if (utf8JsonReader.TokenType != JsonTokenType.Null) boosterSeat = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
boosterSeat = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "count": case "count":
if (utf8JsonReader.TokenType != JsonTokenType.Null) count = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
count = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
default: default:
break; break;

View File

@ -125,8 +125,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "count": case "count":
if (utf8JsonReader.TokenType != JsonTokenType.Null) count = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
count = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "activity_outputs": case "activity_outputs":
if (utf8JsonReader.TokenType != JsonTokenType.Null) activityOutputs = new Option<Dictionary<string, List<ActivityOutputElementRepresentation>>>(JsonSerializer.Deserialize<Dictionary<string, List<ActivityOutputElementRepresentation>>>(ref utf8JsonReader, jsonSerializerOptions));
activityOutputs = new Option<Dictionary<string, List<ActivityOutputElementRepresentation>>>(JsonSerializer.Deserialize<Dictionary<string, List<ActivityOutputElementRepresentation>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -146,8 +146,7 @@ namespace Org.OpenAPITools.Model
prop1 = new Option<string>(utf8JsonReader.GetString()); prop1 = new Option<string>(utf8JsonReader.GetString());
break; break;
case "prop2": case "prop2":
if (utf8JsonReader.TokenType != JsonTokenType.Null) prop2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
prop2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -246,36 +246,28 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "anytype_1": case "anytype_1":
if (utf8JsonReader.TokenType != JsonTokenType.Null) anytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
anytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "empty_map": case "empty_map":
if (utf8JsonReader.TokenType != JsonTokenType.Null) emptyMap = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
emptyMap = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_of_map_property": case "map_of_map_property":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapOfMapProperty = new Option<Dictionary<string, Dictionary<string, string>>>(JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(ref utf8JsonReader, jsonSerializerOptions));
mapOfMapProperty = new Option<Dictionary<string, Dictionary<string, string>>>(JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_property": case "map_property":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapProperty = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
mapProperty = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_anytype_1": case "map_with_undeclared_properties_anytype_1":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesAnytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesAnytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_anytype_2": case "map_with_undeclared_properties_anytype_2":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesAnytype2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesAnytype2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_anytype_3": case "map_with_undeclared_properties_anytype_3":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesAnytype3 = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesAnytype3 = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_string": case "map_with_undeclared_properties_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesString = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesString = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -160,8 +160,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "code": case "code":
if (utf8JsonReader.TokenType != JsonTokenType.Null) code = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
code = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "message": case "message":
message = new Option<string>(utf8JsonReader.GetString()); message = new Option<string>(utf8JsonReader.GetString());

View File

@ -132,8 +132,7 @@ namespace Org.OpenAPITools.Model
cultivar = new Option<string>(utf8JsonReader.GetString()); cultivar = new Option<string>(utf8JsonReader.GetString());
break; break;
case "mealy": case "mealy":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mealy = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
mealy = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "ArrayArrayNumber": case "ArrayArrayNumber":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayArrayNumber = new Option<List<List<decimal>>>(JsonSerializer.Deserialize<List<List<decimal>>>(ref utf8JsonReader, jsonSerializerOptions));
arrayArrayNumber = new Option<List<List<decimal>>>(JsonSerializer.Deserialize<List<List<decimal>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "ArrayNumber": case "ArrayNumber":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayNumber = new Option<List<decimal>>(JsonSerializer.Deserialize<List<decimal>>(ref utf8JsonReader, jsonSerializerOptions));
arrayNumber = new Option<List<decimal>>(JsonSerializer.Deserialize<List<decimal>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -160,16 +160,13 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "array_array_of_integer": case "array_array_of_integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayArrayOfInteger = new Option<List<List<long>>>(JsonSerializer.Deserialize<List<List<long>>>(ref utf8JsonReader, jsonSerializerOptions));
arrayArrayOfInteger = new Option<List<List<long>>>(JsonSerializer.Deserialize<List<List<long>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "array_array_of_model": case "array_array_of_model":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayArrayOfModel = new Option<List<List<ReadOnlyFirst>>>(JsonSerializer.Deserialize<List<List<ReadOnlyFirst>>>(ref utf8JsonReader, jsonSerializerOptions));
arrayArrayOfModel = new Option<List<List<ReadOnlyFirst>>>(JsonSerializer.Deserialize<List<List<ReadOnlyFirst>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "array_of_string": case "array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
arrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "lengthCm": case "lengthCm":
if (utf8JsonReader.TokenType != JsonTokenType.Null) lengthCm = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
lengthCm = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
default: default:
break; break;

View File

@ -129,12 +129,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "lengthCm": case "lengthCm":
if (utf8JsonReader.TokenType != JsonTokenType.Null) lengthCm = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
lengthCm = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
case "sweet": case "sweet":
if (utf8JsonReader.TokenType != JsonTokenType.Null) sweet = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
sweet = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
default: default:
break; break;

View File

@ -119,8 +119,7 @@ namespace Org.OpenAPITools.Model
color = new Option<string>(utf8JsonReader.GetString()); color = new Option<string>(utf8JsonReader.GetString());
break; break;
case "declawed": case "declawed":
if (utf8JsonReader.TokenType != JsonTokenType.Null) declawed = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
declawed = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
default: default:
break; break;

View File

@ -136,8 +136,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
id = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "name": case "name":
name = new Option<string>(utf8JsonReader.GetString()); name = new Option<string>(utf8JsonReader.GetString());

View File

@ -132,8 +132,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "dateOnlyProperty": case "dateOnlyProperty":
if (utf8JsonReader.TokenType != JsonTokenType.Null) dateOnlyProperty = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
dateOnlyProperty = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -177,20 +177,16 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "mainShape": case "mainShape":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mainShape = new Option<Shape>(JsonSerializer.Deserialize<Shape>(ref utf8JsonReader, jsonSerializerOptions));
mainShape = new Option<Shape>(JsonSerializer.Deserialize<Shape>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "nullableShape": case "nullableShape":
if (utf8JsonReader.TokenType != JsonTokenType.Null) nullableShape = new Option<NullableShape>(JsonSerializer.Deserialize<NullableShape>(ref utf8JsonReader, jsonSerializerOptions));
nullableShape = new Option<NullableShape>(JsonSerializer.Deserialize<NullableShape>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "shapeOrNull": case "shapeOrNull":
if (utf8JsonReader.TokenType != JsonTokenType.Null) shapeOrNull = new Option<ShapeOrNull>(JsonSerializer.Deserialize<ShapeOrNull>(ref utf8JsonReader, jsonSerializerOptions));
shapeOrNull = new Option<ShapeOrNull>(JsonSerializer.Deserialize<ShapeOrNull>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "shapes": case "shapes":
if (utf8JsonReader.TokenType != JsonTokenType.Null) shapes = new Option<List<Shape>>(JsonSerializer.Deserialize<List<Shape>>(ref utf8JsonReader, jsonSerializerOptions));
shapes = new Option<List<Shape>>(JsonSerializer.Deserialize<List<Shape>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -143,8 +143,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "array_enum": case "array_enum":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayEnum = new Option<List<EnumArraysArrayEnumInner>>(JsonSerializer.Deserialize<List<EnumArraysArrayEnumInner>>(ref utf8JsonReader, jsonSerializerOptions));
arrayEnum = new Option<List<EnumArraysArrayEnumInner>>(JsonSerializer.Deserialize<List<EnumArraysArrayEnumInner>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "just_symbol": case "just_symbol":
string justSymbolRawValue = utf8JsonReader.GetString(); string justSymbolRawValue = utf8JsonReader.GetString();

View File

@ -143,12 +143,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "file": case "file":
if (utf8JsonReader.TokenType != JsonTokenType.Null) file = new Option<File>(JsonSerializer.Deserialize<File>(ref utf8JsonReader, jsonSerializerOptions));
file = new Option<File>(JsonSerializer.Deserialize<File>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "files": case "files":
if (utf8JsonReader.TokenType != JsonTokenType.Null) files = new Option<List<File>>(JsonSerializer.Deserialize<List<File>>(ref utf8JsonReader, jsonSerializerOptions));
files = new Option<List<File>>(JsonSerializer.Deserialize<List<File>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "string": case "string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varString = new Option<Foo>(JsonSerializer.Deserialize<Foo>(ref utf8JsonReader, jsonSerializerOptions));
varString = new Option<Foo>(JsonSerializer.Deserialize<Foo>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -665,71 +665,55 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "byte": case "byte":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varByte = new Option<byte[]>(JsonSerializer.Deserialize<byte[]>(ref utf8JsonReader, jsonSerializerOptions));
varByte = new Option<byte[]>(JsonSerializer.Deserialize<byte[]>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "date": case "date":
if (utf8JsonReader.TokenType != JsonTokenType.Null) date = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
date = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "number": case "number":
if (utf8JsonReader.TokenType != JsonTokenType.Null) number = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
number = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
case "password": case "password":
password = new Option<string>(utf8JsonReader.GetString()); password = new Option<string>(utf8JsonReader.GetString());
break; break;
case "binary": case "binary":
if (utf8JsonReader.TokenType != JsonTokenType.Null) binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "dateTime": case "dateTime":
if (utf8JsonReader.TokenType != JsonTokenType.Null) dateTime = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
dateTime = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "decimal": case "decimal":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varDecimal = new Option<decimal?>(JsonSerializer.Deserialize<decimal>(ref utf8JsonReader, jsonSerializerOptions));
varDecimal = new Option<decimal?>(JsonSerializer.Deserialize<decimal>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "double": case "double":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
varDouble = new Option<double?>(utf8JsonReader.GetDouble());
break; break;
case "float": case "float":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
varFloat = new Option<float?>((float)utf8JsonReader.GetDouble());
break; break;
case "int32": case "int32":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int32 = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int32 = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "int32Range": case "int32Range":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int32Range = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int32Range = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "int64": case "int64":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int64 = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
int64 = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "int64Negative": case "int64Negative":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int64Negative = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int64Negative = new Option<long?>(utf8JsonReader.GetInt32());
break; break;
case "int64NegativeExclusive": case "int64NegativeExclusive":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int64NegativeExclusive = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int64NegativeExclusive = new Option<long?>(utf8JsonReader.GetInt32());
break; break;
case "int64Positive": case "int64Positive":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int64Positive = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int64Positive = new Option<long?>(utf8JsonReader.GetInt32());
break; break;
case "int64PositiveExclusive": case "int64PositiveExclusive":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int64PositiveExclusive = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int64PositiveExclusive = new Option<long?>(utf8JsonReader.GetInt32());
break; break;
case "integer": case "integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) integer = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
integer = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "pattern_with_backslash": case "pattern_with_backslash":
patternWithBackslash = new Option<string>(utf8JsonReader.GetString()); patternWithBackslash = new Option<string>(utf8JsonReader.GetString());
@ -744,16 +728,13 @@ namespace Org.OpenAPITools.Model
varString = new Option<string>(utf8JsonReader.GetString()); varString = new Option<string>(utf8JsonReader.GetString());
break; break;
case "unsigned_integer": case "unsigned_integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
unsignedInteger = new Option<uint?>(utf8JsonReader.GetUInt32());
break; break;
case "unsigned_long": case "unsigned_long":
if (utf8JsonReader.TokenType != JsonTokenType.Null) unsignedLong = new Option<ulong?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (ulong?)null : utf8JsonReader.GetUInt64());
unsignedLong = new Option<ulong?>(utf8JsonReader.GetUInt64());
break; break;
case "uuid": case "uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) uuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
uuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
default: default:
break; break;

View File

@ -177,20 +177,16 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "direct_map": case "direct_map":
if (utf8JsonReader.TokenType != JsonTokenType.Null) directMap = new Option<Dictionary<string, bool>>(JsonSerializer.Deserialize<Dictionary<string, bool>>(ref utf8JsonReader, jsonSerializerOptions));
directMap = new Option<Dictionary<string, bool>>(JsonSerializer.Deserialize<Dictionary<string, bool>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "indirect_map": case "indirect_map":
if (utf8JsonReader.TokenType != JsonTokenType.Null) indirectMap = new Option<Dictionary<string, bool>>(JsonSerializer.Deserialize<Dictionary<string, bool>>(ref utf8JsonReader, jsonSerializerOptions));
indirectMap = new Option<Dictionary<string, bool>>(JsonSerializer.Deserialize<Dictionary<string, bool>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_map_of_string": case "map_map_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapMapOfString = new Option<Dictionary<string, Dictionary<string, string>>>(JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(ref utf8JsonReader, jsonSerializerOptions));
mapMapOfString = new Option<Dictionary<string, Dictionary<string, string>>>(JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_of_enum_string": case "map_of_enum_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapOfEnumString = new Option<Dictionary<string, MapTestMapOfEnumStringValue>>(JsonSerializer.Deserialize<Dictionary<string, MapTestMapOfEnumStringValue>>(ref utf8JsonReader, jsonSerializerOptions));
mapOfEnumString = new Option<Dictionary<string, MapTestMapOfEnumStringValue>>(JsonSerializer.Deserialize<Dictionary<string, MapTestMapOfEnumStringValue>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "content": case "content":
if (utf8JsonReader.TokenType != JsonTokenType.Null) content = new Option<MixedAnyOfContent>(JsonSerializer.Deserialize<MixedAnyOfContent>(ref utf8JsonReader, jsonSerializerOptions));
content = new Option<MixedAnyOfContent>(JsonSerializer.Deserialize<MixedAnyOfContent>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "content": case "content":
if (utf8JsonReader.TokenType != JsonTokenType.Null) content = new Option<MixedOneOfContent>(JsonSerializer.Deserialize<MixedOneOfContent>(ref utf8JsonReader, jsonSerializerOptions));
content = new Option<MixedOneOfContent>(JsonSerializer.Deserialize<MixedOneOfContent>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -189,20 +189,16 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "dateTime": case "dateTime":
if (utf8JsonReader.TokenType != JsonTokenType.Null) dateTime = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
dateTime = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map": case "map":
if (utf8JsonReader.TokenType != JsonTokenType.Null) map = new Option<Dictionary<string, Animal>>(JsonSerializer.Deserialize<Dictionary<string, Animal>>(ref utf8JsonReader, jsonSerializerOptions));
map = new Option<Dictionary<string, Animal>>(JsonSerializer.Deserialize<Dictionary<string, Animal>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "uuid": case "uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) uuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
uuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
case "uuid_with_pattern": case "uuid_with_pattern":
if (utf8JsonReader.TokenType != JsonTokenType.Null) uuidWithPattern = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
uuidWithPattern = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
default: default:
break; break;

View File

@ -146,8 +146,7 @@ namespace Org.OpenAPITools.Model
varClass = new Option<string>(utf8JsonReader.GetString()); varClass = new Option<string>(utf8JsonReader.GetString());
break; break;
case "name": case "name":
if (utf8JsonReader.TokenType != JsonTokenType.Null) name = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
name = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
default: default:
break; break;

View File

@ -211,19 +211,16 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "name": case "name":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varName = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
varName = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "property": case "property":
property = new Option<string>(utf8JsonReader.GetString()); property = new Option<string>(utf8JsonReader.GetString());
break; break;
case "snake_case": case "snake_case":
if (utf8JsonReader.TokenType != JsonTokenType.Null) snakeCase = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
snakeCase = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "123Number": case "123Number":
if (utf8JsonReader.TokenType != JsonTokenType.Null) var123Number = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
var123Number = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
default: default:
break; break;

View File

@ -129,12 +129,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "a_objVariableobject": case "a_objVariableobject":
if (utf8JsonReader.TokenType != JsonTokenType.Null) aObjVariableobject = new Option<List<Dictionary<string, Object>>>(JsonSerializer.Deserialize<List<Dictionary<string, Object>>>(ref utf8JsonReader, jsonSerializerOptions));
aObjVariableobject = new Option<List<Dictionary<string, Object>>>(JsonSerializer.Deserialize<List<Dictionary<string, Object>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "pkiNotificationtestID": case "pkiNotificationtestID":
if (utf8JsonReader.TokenType != JsonTokenType.Null) pkiNotificationtestID = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
pkiNotificationtestID = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
default: default:
break; break;

View File

@ -323,48 +323,37 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "array_and_items_nullable_prop": case "array_and_items_nullable_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayAndItemsNullableProp = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
arrayAndItemsNullableProp = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "array_items_nullable": case "array_items_nullable":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayItemsNullable = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
arrayItemsNullable = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "array_nullable_prop": case "array_nullable_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayNullableProp = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
arrayNullableProp = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "boolean_prop": case "boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) booleanProp = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
booleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "date_prop": case "date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) dateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
dateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "datetime_prop": case "datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) datetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
datetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "integer_prop": case "integer_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) integerProp = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
integerProp = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "number_prop": case "number_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) numberProp = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
numberProp = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
case "object_and_items_nullable_prop": case "object_and_items_nullable_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) objectAndItemsNullableProp = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
objectAndItemsNullableProp = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "object_items_nullable": case "object_items_nullable":
if (utf8JsonReader.TokenType != JsonTokenType.Null) objectItemsNullable = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
objectItemsNullable = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "object_nullable_prop": case "object_nullable_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) objectNullableProp = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
objectNullableProp = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "string_prop": case "string_prop":
stringProp = new Option<string>(utf8JsonReader.GetString()); stringProp = new Option<string>(utf8JsonReader.GetString());

View File

@ -127,8 +127,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "uuid": case "uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) uuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
uuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "JustNumber": case "JustNumber":
if (utf8JsonReader.TokenType != JsonTokenType.Null) justNumber = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
justNumber = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
default: default:
break; break;

View File

@ -180,16 +180,13 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "bars": case "bars":
if (utf8JsonReader.TokenType != JsonTokenType.Null) bars = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
bars = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "deprecatedRef": case "deprecatedRef":
if (utf8JsonReader.TokenType != JsonTokenType.Null) deprecatedRef = new Option<DeprecatedObject>(JsonSerializer.Deserialize<DeprecatedObject>(ref utf8JsonReader, jsonSerializerOptions));
deprecatedRef = new Option<DeprecatedObject>(JsonSerializer.Deserialize<DeprecatedObject>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
id = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
case "uuid": case "uuid":
uuid = new Option<string>(utf8JsonReader.GetString()); uuid = new Option<string>(utf8JsonReader.GetString());

View File

@ -217,24 +217,19 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "complete": case "complete":
if (utf8JsonReader.TokenType != JsonTokenType.Null) complete = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
complete = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
id = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "petId": case "petId":
if (utf8JsonReader.TokenType != JsonTokenType.Null) petId = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
petId = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "quantity": case "quantity":
if (utf8JsonReader.TokenType != JsonTokenType.Null) quantity = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
quantity = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "shipDate": case "shipDate":
if (utf8JsonReader.TokenType != JsonTokenType.Null) shipDate = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
shipDate = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "status": case "status":
string statusRawValue = utf8JsonReader.GetString(); string statusRawValue = utf8JsonReader.GetString();

View File

@ -160,12 +160,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "my_boolean": case "my_boolean":
if (utf8JsonReader.TokenType != JsonTokenType.Null) myBoolean = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
myBoolean = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "my_number": case "my_number":
if (utf8JsonReader.TokenType != JsonTokenType.Null) myNumber = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
myNumber = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
case "my_string": case "my_string":
myString = new Option<string>(utf8JsonReader.GetString()); myString = new Option<string>(utf8JsonReader.GetString());

View File

@ -201,16 +201,13 @@ namespace Org.OpenAPITools.Model
name = new Option<string>(utf8JsonReader.GetString()); name = new Option<string>(utf8JsonReader.GetString());
break; break;
case "photoUrls": case "photoUrls":
if (utf8JsonReader.TokenType != JsonTokenType.Null) photoUrls = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
photoUrls = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "category": case "category":
if (utf8JsonReader.TokenType != JsonTokenType.Null) category = new Option<Category>(JsonSerializer.Deserialize<Category>(ref utf8JsonReader, jsonSerializerOptions));
category = new Option<Category>(JsonSerializer.Deserialize<Category>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
id = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "status": case "status":
string statusRawValue = utf8JsonReader.GetString(); string statusRawValue = utf8JsonReader.GetString();
@ -218,8 +215,7 @@ namespace Org.OpenAPITools.Model
status = new Option<PetStatus?>(PetStatusValueConverter.FromStringOrDefault(statusRawValue)); status = new Option<PetStatus?>(PetStatusValueConverter.FromStringOrDefault(statusRawValue));
break; break;
case "tags": case "tags":
if (utf8JsonReader.TokenType != JsonTokenType.Null) tags = new Option<List<Tag>>(JsonSerializer.Deserialize<List<Tag>>(ref utf8JsonReader, jsonSerializerOptions));
tags = new Option<List<Tag>>(JsonSerializer.Deserialize<List<Tag>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -747,20 +747,16 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "required_not_nullable_date_prop": case "required_not_nullable_date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
requiredNotNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_notnullable_array_of_string": case "required_notnullable_array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
requiredNotnullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_notnullable_boolean_prop": case "required_notnullable_boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableBooleanProp = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
requiredNotnullableBooleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "required_notnullable_datetime_prop": case "required_notnullable_datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
requiredNotnullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_notnullable_enum_integer": case "required_notnullable_enum_integer":
string requiredNotnullableEnumIntegerRawValue = utf8JsonReader.GetString(); string requiredNotnullableEnumIntegerRawValue = utf8JsonReader.GetString();
@ -786,40 +782,31 @@ namespace Org.OpenAPITools.Model
requiredNotnullableStringProp = new Option<string>(utf8JsonReader.GetString()); requiredNotnullableStringProp = new Option<string>(utf8JsonReader.GetString());
break; break;
case "required_notnullable_uuid": case "required_notnullable_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableUuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
requiredNotnullableUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
case "required_notnullableinteger_prop": case "required_notnullableinteger_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableintegerProp = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
requiredNotnullableintegerProp = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "not_required_notnullable_date_prop": case "not_required_notnullable_date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notRequiredNotnullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
notRequiredNotnullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "not_required_notnullableinteger_prop": case "not_required_notnullableinteger_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notRequiredNotnullableintegerProp = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
notRequiredNotnullableintegerProp = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "not_required_nullable_date_prop": case "not_required_nullable_date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notRequiredNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
notRequiredNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "not_required_nullable_integer_prop": case "not_required_nullable_integer_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notRequiredNullableIntegerProp = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
notRequiredNullableIntegerProp = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "notrequired_notnullable_array_of_string": case "notrequired_notnullable_array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNotnullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
notrequiredNotnullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "notrequired_notnullable_boolean_prop": case "notrequired_notnullable_boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNotnullableBooleanProp = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
notrequiredNotnullableBooleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "notrequired_notnullable_datetime_prop": case "notrequired_notnullable_datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNotnullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
notrequiredNotnullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "notrequired_notnullable_enum_integer": case "notrequired_notnullable_enum_integer":
string notrequiredNotnullableEnumIntegerRawValue = utf8JsonReader.GetString(); string notrequiredNotnullableEnumIntegerRawValue = utf8JsonReader.GetString();
@ -845,20 +832,16 @@ namespace Org.OpenAPITools.Model
notrequiredNotnullableStringProp = new Option<string>(utf8JsonReader.GetString()); notrequiredNotnullableStringProp = new Option<string>(utf8JsonReader.GetString());
break; break;
case "notrequired_notnullable_uuid": case "notrequired_notnullable_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNotnullableUuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
notrequiredNotnullableUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
case "notrequired_nullable_array_of_string": case "notrequired_nullable_array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
notrequiredNullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "notrequired_nullable_boolean_prop": case "notrequired_nullable_boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNullableBooleanProp = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
notrequiredNullableBooleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "notrequired_nullable_datetime_prop": case "notrequired_nullable_datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
notrequiredNullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "notrequired_nullable_enum_integer": case "notrequired_nullable_enum_integer":
string notrequiredNullableEnumIntegerRawValue = utf8JsonReader.GetString(); string notrequiredNullableEnumIntegerRawValue = utf8JsonReader.GetString();
@ -884,24 +867,19 @@ namespace Org.OpenAPITools.Model
notrequiredNullableStringProp = new Option<string>(utf8JsonReader.GetString()); notrequiredNullableStringProp = new Option<string>(utf8JsonReader.GetString());
break; break;
case "notrequired_nullable_uuid": case "notrequired_nullable_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNullableUuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
notrequiredNullableUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
case "required_nullable_array_of_string": case "required_nullable_array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
requiredNullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_nullable_boolean_prop": case "required_nullable_boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableBooleanProp = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
requiredNullableBooleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "required_nullable_date_prop": case "required_nullable_date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
requiredNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_nullable_datetime_prop": case "required_nullable_datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
requiredNullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_nullable_enum_integer": case "required_nullable_enum_integer":
string requiredNullableEnumIntegerRawValue = utf8JsonReader.GetString(); string requiredNullableEnumIntegerRawValue = utf8JsonReader.GetString();
@ -919,8 +897,7 @@ namespace Org.OpenAPITools.Model
requiredNullableEnumString = new Option<RequiredClassRequiredNullableEnumString?>(RequiredClassRequiredNullableEnumStringValueConverter.FromStringOrDefault(requiredNullableEnumStringRawValue)); requiredNullableEnumString = new Option<RequiredClassRequiredNullableEnumString?>(RequiredClassRequiredNullableEnumStringValueConverter.FromStringOrDefault(requiredNullableEnumStringRawValue));
break; break;
case "required_nullable_integer_prop": case "required_nullable_integer_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableIntegerProp = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
requiredNullableIntegerProp = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "required_nullable_outerEnumDefaultValue": case "required_nullable_outerEnumDefaultValue":
string requiredNullableOuterEnumDefaultValueRawValue = utf8JsonReader.GetString(); string requiredNullableOuterEnumDefaultValueRawValue = utf8JsonReader.GetString();
@ -931,8 +908,7 @@ namespace Org.OpenAPITools.Model
requiredNullableStringProp = new Option<string>(utf8JsonReader.GetString()); requiredNullableStringProp = new Option<string>(utf8JsonReader.GetString());
break; break;
case "required_nullable_uuid": case "required_nullable_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableUuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
requiredNullableUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
default: default:
break; break;

View File

@ -169,8 +169,7 @@ namespace Org.OpenAPITools.Model
varAbstract = new Option<string>(utf8JsonReader.GetString()); varAbstract = new Option<string>(utf8JsonReader.GetString());
break; break;
case "return": case "return":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varReturn = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
varReturn = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "unsafe": case "unsafe":
varUnsafe = new Option<string>(utf8JsonReader.GetString()); varUnsafe = new Option<string>(utf8JsonReader.GetString());

View File

@ -143,12 +143,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "role": case "role":
if (utf8JsonReader.TokenType != JsonTokenType.Null) role = new Option<RolesReportsHashRole>(JsonSerializer.Deserialize<RolesReportsHashRole>(ref utf8JsonReader, jsonSerializerOptions));
role = new Option<RolesReportsHashRole>(JsonSerializer.Deserialize<RolesReportsHashRole>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "role_uuid": case "role_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) roleUuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
roleUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
default: default:
break; break;

View File

@ -146,8 +146,7 @@ namespace Org.OpenAPITools.Model
varSpecialModelName = new Option<string>(utf8JsonReader.GetString()); varSpecialModelName = new Option<string>(utf8JsonReader.GetString());
break; break;
case "$special[property.name]": case "$special[property.name]":
if (utf8JsonReader.TokenType != JsonTokenType.Null) specialPropertyName = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
specialPropertyName = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
default: default:
break; break;

View File

@ -143,8 +143,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
id = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "name": case "name":
name = new Option<string>(utf8JsonReader.GetString()); name = new Option<string>(utf8JsonReader.GetString());

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "TestCollectionEndingWithWordList": case "TestCollectionEndingWithWordList":
if (utf8JsonReader.TokenType != JsonTokenType.Null) testCollectionEndingWithWordList = new Option<List<TestCollectionEndingWithWordList>>(JsonSerializer.Deserialize<List<TestCollectionEndingWithWordList>>(ref utf8JsonReader, jsonSerializerOptions));
testCollectionEndingWithWordList = new Option<List<TestCollectionEndingWithWordList>>(JsonSerializer.Deserialize<List<TestCollectionEndingWithWordList>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -318,12 +318,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "anyTypeProp": case "anyTypeProp":
if (utf8JsonReader.TokenType != JsonTokenType.Null) anyTypeProp = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
anyTypeProp = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "anyTypePropNullable": case "anyTypePropNullable":
if (utf8JsonReader.TokenType != JsonTokenType.Null) anyTypePropNullable = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
anyTypePropNullable = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "email": case "email":
email = new Option<string>(utf8JsonReader.GetString()); email = new Option<string>(utf8JsonReader.GetString());
@ -332,19 +330,16 @@ namespace Org.OpenAPITools.Model
firstName = new Option<string>(utf8JsonReader.GetString()); firstName = new Option<string>(utf8JsonReader.GetString());
break; break;
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
id = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "lastName": case "lastName":
lastName = new Option<string>(utf8JsonReader.GetString()); lastName = new Option<string>(utf8JsonReader.GetString());
break; break;
case "objectWithNoDeclaredProps": case "objectWithNoDeclaredProps":
if (utf8JsonReader.TokenType != JsonTokenType.Null) objectWithNoDeclaredProps = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
objectWithNoDeclaredProps = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "objectWithNoDeclaredPropsNullable": case "objectWithNoDeclaredPropsNullable":
if (utf8JsonReader.TokenType != JsonTokenType.Null) objectWithNoDeclaredPropsNullable = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
objectWithNoDeclaredPropsNullable = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "password": case "password":
password = new Option<string>(utf8JsonReader.GetString()); password = new Option<string>(utf8JsonReader.GetString());
@ -353,8 +348,7 @@ namespace Org.OpenAPITools.Model
phone = new Option<string>(utf8JsonReader.GetString()); phone = new Option<string>(utf8JsonReader.GetString());
break; break;
case "userStatus": case "userStatus":
if (utf8JsonReader.TokenType != JsonTokenType.Null) userStatus = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
userStatus = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "username": case "username":
username = new Option<string>(utf8JsonReader.GetString()); username = new Option<string>(utf8JsonReader.GetString());

View File

@ -156,12 +156,10 @@ namespace Org.OpenAPITools.Model
className = new Option<string>(utf8JsonReader.GetString()); className = new Option<string>(utf8JsonReader.GetString());
break; break;
case "hasBaleen": case "hasBaleen":
if (utf8JsonReader.TokenType != JsonTokenType.Null) hasBaleen = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
hasBaleen = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "hasTeeth": case "hasTeeth":
if (utf8JsonReader.TokenType != JsonTokenType.Null) hasTeeth = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
hasTeeth = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "count": case "count":
if (utf8JsonReader.TokenType != JsonTokenType.Null) count = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
count = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "activity_outputs": case "activity_outputs":
if (utf8JsonReader.TokenType != JsonTokenType.Null) activityOutputs = new Option<Dictionary<string, List<ActivityOutputElementRepresentation>>>(JsonSerializer.Deserialize<Dictionary<string, List<ActivityOutputElementRepresentation>>>(ref utf8JsonReader, jsonSerializerOptions));
activityOutputs = new Option<Dictionary<string, List<ActivityOutputElementRepresentation>>>(JsonSerializer.Deserialize<Dictionary<string, List<ActivityOutputElementRepresentation>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -146,8 +146,7 @@ namespace Org.OpenAPITools.Model
prop1 = new Option<string>(utf8JsonReader.GetString()); prop1 = new Option<string>(utf8JsonReader.GetString());
break; break;
case "prop2": case "prop2":
if (utf8JsonReader.TokenType != JsonTokenType.Null) prop2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
prop2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -246,36 +246,28 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "anytype_1": case "anytype_1":
if (utf8JsonReader.TokenType != JsonTokenType.Null) anytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
anytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "empty_map": case "empty_map":
if (utf8JsonReader.TokenType != JsonTokenType.Null) emptyMap = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
emptyMap = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_of_map_property": case "map_of_map_property":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapOfMapProperty = new Option<Dictionary<string, Dictionary<string, string>>>(JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(ref utf8JsonReader, jsonSerializerOptions));
mapOfMapProperty = new Option<Dictionary<string, Dictionary<string, string>>>(JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_property": case "map_property":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapProperty = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
mapProperty = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_anytype_1": case "map_with_undeclared_properties_anytype_1":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesAnytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesAnytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_anytype_2": case "map_with_undeclared_properties_anytype_2":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesAnytype2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesAnytype2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_anytype_3": case "map_with_undeclared_properties_anytype_3":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesAnytype3 = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesAnytype3 = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_string": case "map_with_undeclared_properties_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesString = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesString = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -160,8 +160,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "code": case "code":
if (utf8JsonReader.TokenType != JsonTokenType.Null) code = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
code = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "message": case "message":
message = new Option<string>(utf8JsonReader.GetString()); message = new Option<string>(utf8JsonReader.GetString());

View File

@ -132,8 +132,7 @@ namespace Org.OpenAPITools.Model
cultivar = new Option<string>(utf8JsonReader.GetString()); cultivar = new Option<string>(utf8JsonReader.GetString());
break; break;
case "mealy": case "mealy":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mealy = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
mealy = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "ArrayArrayNumber": case "ArrayArrayNumber":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayArrayNumber = new Option<List<List<decimal>>>(JsonSerializer.Deserialize<List<List<decimal>>>(ref utf8JsonReader, jsonSerializerOptions));
arrayArrayNumber = new Option<List<List<decimal>>>(JsonSerializer.Deserialize<List<List<decimal>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "ArrayNumber": case "ArrayNumber":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayNumber = new Option<List<decimal>>(JsonSerializer.Deserialize<List<decimal>>(ref utf8JsonReader, jsonSerializerOptions));
arrayNumber = new Option<List<decimal>>(JsonSerializer.Deserialize<List<decimal>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -160,16 +160,13 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "array_array_of_integer": case "array_array_of_integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayArrayOfInteger = new Option<List<List<long>>>(JsonSerializer.Deserialize<List<List<long>>>(ref utf8JsonReader, jsonSerializerOptions));
arrayArrayOfInteger = new Option<List<List<long>>>(JsonSerializer.Deserialize<List<List<long>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "array_array_of_model": case "array_array_of_model":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayArrayOfModel = new Option<List<List<ReadOnlyFirst>>>(JsonSerializer.Deserialize<List<List<ReadOnlyFirst>>>(ref utf8JsonReader, jsonSerializerOptions));
arrayArrayOfModel = new Option<List<List<ReadOnlyFirst>>>(JsonSerializer.Deserialize<List<List<ReadOnlyFirst>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "array_of_string": case "array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
arrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "lengthCm": case "lengthCm":
if (utf8JsonReader.TokenType != JsonTokenType.Null) lengthCm = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
lengthCm = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
default: default:
break; break;

View File

@ -129,12 +129,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "lengthCm": case "lengthCm":
if (utf8JsonReader.TokenType != JsonTokenType.Null) lengthCm = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
lengthCm = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
case "sweet": case "sweet":
if (utf8JsonReader.TokenType != JsonTokenType.Null) sweet = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
sweet = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
default: default:
break; break;

View File

@ -119,8 +119,7 @@ namespace Org.OpenAPITools.Model
color = new Option<string>(utf8JsonReader.GetString()); color = new Option<string>(utf8JsonReader.GetString());
break; break;
case "declawed": case "declawed":
if (utf8JsonReader.TokenType != JsonTokenType.Null) declawed = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
declawed = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
default: default:
break; break;

View File

@ -136,8 +136,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
id = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "name": case "name":
name = new Option<string>(utf8JsonReader.GetString()); name = new Option<string>(utf8JsonReader.GetString());

View File

@ -132,8 +132,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "dateOnlyProperty": case "dateOnlyProperty":
if (utf8JsonReader.TokenType != JsonTokenType.Null) dateOnlyProperty = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
dateOnlyProperty = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -177,20 +177,16 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "mainShape": case "mainShape":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mainShape = new Option<Shape>(JsonSerializer.Deserialize<Shape>(ref utf8JsonReader, jsonSerializerOptions));
mainShape = new Option<Shape>(JsonSerializer.Deserialize<Shape>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "nullableShape": case "nullableShape":
if (utf8JsonReader.TokenType != JsonTokenType.Null) nullableShape = new Option<NullableShape>(JsonSerializer.Deserialize<NullableShape>(ref utf8JsonReader, jsonSerializerOptions));
nullableShape = new Option<NullableShape>(JsonSerializer.Deserialize<NullableShape>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "shapeOrNull": case "shapeOrNull":
if (utf8JsonReader.TokenType != JsonTokenType.Null) shapeOrNull = new Option<ShapeOrNull>(JsonSerializer.Deserialize<ShapeOrNull>(ref utf8JsonReader, jsonSerializerOptions));
shapeOrNull = new Option<ShapeOrNull>(JsonSerializer.Deserialize<ShapeOrNull>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "shapes": case "shapes":
if (utf8JsonReader.TokenType != JsonTokenType.Null) shapes = new Option<List<Shape>>(JsonSerializer.Deserialize<List<Shape>>(ref utf8JsonReader, jsonSerializerOptions));
shapes = new Option<List<Shape>>(JsonSerializer.Deserialize<List<Shape>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -275,8 +275,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "array_enum": case "array_enum":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayEnum = new Option<List<EnumArrays.ArrayEnumEnum>>(JsonSerializer.Deserialize<List<EnumArrays.ArrayEnumEnum>>(ref utf8JsonReader, jsonSerializerOptions));
arrayEnum = new Option<List<EnumArrays.ArrayEnumEnum>>(JsonSerializer.Deserialize<List<EnumArrays.ArrayEnumEnum>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "just_symbol": case "just_symbol":
string justSymbolRawValue = utf8JsonReader.GetString(); string justSymbolRawValue = utf8JsonReader.GetString();

View File

@ -744,16 +744,13 @@ namespace Org.OpenAPITools.Model
enumStringRequired = new Option<EnumTest.EnumStringRequiredEnum?>(EnumTest.EnumStringRequiredEnumFromStringOrDefault(enumStringRequiredRawValue)); enumStringRequired = new Option<EnumTest.EnumStringRequiredEnum?>(EnumTest.EnumStringRequiredEnumFromStringOrDefault(enumStringRequiredRawValue));
break; break;
case "enum_integer": case "enum_integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) enumInteger = new Option<EnumTest.EnumIntegerEnum?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (EnumTest.EnumIntegerEnum?)null : (EnumTest.EnumIntegerEnum)utf8JsonReader.GetInt32());
enumInteger = new Option<EnumTest.EnumIntegerEnum?>((EnumTest.EnumIntegerEnum)utf8JsonReader.GetInt32());
break; break;
case "enum_integer_only": case "enum_integer_only":
if (utf8JsonReader.TokenType != JsonTokenType.Null) enumIntegerOnly = new Option<EnumTest.EnumIntegerOnlyEnum?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (EnumTest.EnumIntegerOnlyEnum?)null : (EnumTest.EnumIntegerOnlyEnum)utf8JsonReader.GetInt32());
enumIntegerOnly = new Option<EnumTest.EnumIntegerOnlyEnum?>((EnumTest.EnumIntegerOnlyEnum)utf8JsonReader.GetInt32());
break; break;
case "enum_number": case "enum_number":
if (utf8JsonReader.TokenType != JsonTokenType.Null) enumNumber = new Option<EnumTest.EnumNumberEnum?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (EnumTest.EnumNumberEnum?)null : (EnumTest.EnumNumberEnum)utf8JsonReader.GetInt32());
enumNumber = new Option<EnumTest.EnumNumberEnum?>((EnumTest.EnumNumberEnum)utf8JsonReader.GetInt32());
break; break;
case "enum_string": case "enum_string":
string enumStringRawValue = utf8JsonReader.GetString(); string enumStringRawValue = utf8JsonReader.GetString();

View File

@ -143,12 +143,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "file": case "file":
if (utf8JsonReader.TokenType != JsonTokenType.Null) file = new Option<File>(JsonSerializer.Deserialize<File>(ref utf8JsonReader, jsonSerializerOptions));
file = new Option<File>(JsonSerializer.Deserialize<File>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "files": case "files":
if (utf8JsonReader.TokenType != JsonTokenType.Null) files = new Option<List<File>>(JsonSerializer.Deserialize<List<File>>(ref utf8JsonReader, jsonSerializerOptions));
files = new Option<List<File>>(JsonSerializer.Deserialize<List<File>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "string": case "string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varString = new Option<Foo>(JsonSerializer.Deserialize<Foo>(ref utf8JsonReader, jsonSerializerOptions));
varString = new Option<Foo>(JsonSerializer.Deserialize<Foo>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -665,71 +665,55 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "byte": case "byte":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varByte = new Option<byte[]>(JsonSerializer.Deserialize<byte[]>(ref utf8JsonReader, jsonSerializerOptions));
varByte = new Option<byte[]>(JsonSerializer.Deserialize<byte[]>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "date": case "date":
if (utf8JsonReader.TokenType != JsonTokenType.Null) date = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
date = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "number": case "number":
if (utf8JsonReader.TokenType != JsonTokenType.Null) number = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
number = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
case "password": case "password":
password = new Option<string>(utf8JsonReader.GetString()); password = new Option<string>(utf8JsonReader.GetString());
break; break;
case "binary": case "binary":
if (utf8JsonReader.TokenType != JsonTokenType.Null) binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
binary = new Option<System.IO.Stream>(JsonSerializer.Deserialize<System.IO.Stream>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "dateTime": case "dateTime":
if (utf8JsonReader.TokenType != JsonTokenType.Null) dateTime = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
dateTime = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "decimal": case "decimal":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varDecimal = new Option<decimal?>(JsonSerializer.Deserialize<decimal>(ref utf8JsonReader, jsonSerializerOptions));
varDecimal = new Option<decimal?>(JsonSerializer.Deserialize<decimal>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "double": case "double":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varDouble = new Option<double?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (double?)null : utf8JsonReader.GetDouble());
varDouble = new Option<double?>(utf8JsonReader.GetDouble());
break; break;
case "float": case "float":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varFloat = new Option<float?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (float?)null : (float)utf8JsonReader.GetDouble());
varFloat = new Option<float?>((float)utf8JsonReader.GetDouble());
break; break;
case "int32": case "int32":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int32 = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int32 = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "int32Range": case "int32Range":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int32Range = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int32Range = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "int64": case "int64":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int64 = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
int64 = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "int64Negative": case "int64Negative":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int64Negative = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int64Negative = new Option<long?>(utf8JsonReader.GetInt32());
break; break;
case "int64NegativeExclusive": case "int64NegativeExclusive":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int64NegativeExclusive = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int64NegativeExclusive = new Option<long?>(utf8JsonReader.GetInt32());
break; break;
case "int64Positive": case "int64Positive":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int64Positive = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int64Positive = new Option<long?>(utf8JsonReader.GetInt32());
break; break;
case "int64PositiveExclusive": case "int64PositiveExclusive":
if (utf8JsonReader.TokenType != JsonTokenType.Null) int64PositiveExclusive = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
int64PositiveExclusive = new Option<long?>(utf8JsonReader.GetInt32());
break; break;
case "integer": case "integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) integer = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
integer = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "pattern_with_backslash": case "pattern_with_backslash":
patternWithBackslash = new Option<string>(utf8JsonReader.GetString()); patternWithBackslash = new Option<string>(utf8JsonReader.GetString());
@ -744,16 +728,13 @@ namespace Org.OpenAPITools.Model
varString = new Option<string>(utf8JsonReader.GetString()); varString = new Option<string>(utf8JsonReader.GetString());
break; break;
case "unsigned_integer": case "unsigned_integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) unsignedInteger = new Option<uint?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (uint?)null : utf8JsonReader.GetUInt32());
unsignedInteger = new Option<uint?>(utf8JsonReader.GetUInt32());
break; break;
case "unsigned_long": case "unsigned_long":
if (utf8JsonReader.TokenType != JsonTokenType.Null) unsignedLong = new Option<ulong?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (ulong?)null : utf8JsonReader.GetUInt64());
unsignedLong = new Option<ulong?>(utf8JsonReader.GetUInt64());
break; break;
case "uuid": case "uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) uuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
uuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
default: default:
break; break;

View File

@ -243,20 +243,16 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "direct_map": case "direct_map":
if (utf8JsonReader.TokenType != JsonTokenType.Null) directMap = new Option<Dictionary<string, bool>>(JsonSerializer.Deserialize<Dictionary<string, bool>>(ref utf8JsonReader, jsonSerializerOptions));
directMap = new Option<Dictionary<string, bool>>(JsonSerializer.Deserialize<Dictionary<string, bool>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "indirect_map": case "indirect_map":
if (utf8JsonReader.TokenType != JsonTokenType.Null) indirectMap = new Option<Dictionary<string, bool>>(JsonSerializer.Deserialize<Dictionary<string, bool>>(ref utf8JsonReader, jsonSerializerOptions));
indirectMap = new Option<Dictionary<string, bool>>(JsonSerializer.Deserialize<Dictionary<string, bool>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_map_of_string": case "map_map_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapMapOfString = new Option<Dictionary<string, Dictionary<string, string>>>(JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(ref utf8JsonReader, jsonSerializerOptions));
mapMapOfString = new Option<Dictionary<string, Dictionary<string, string>>>(JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_of_enum_string": case "map_of_enum_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapOfEnumString = new Option<Dictionary<string, MapTest.InnerEnum>>(JsonSerializer.Deserialize<Dictionary<string, MapTest.InnerEnum>>(ref utf8JsonReader, jsonSerializerOptions));
mapOfEnumString = new Option<Dictionary<string, MapTest.InnerEnum>>(JsonSerializer.Deserialize<Dictionary<string, MapTest.InnerEnum>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "content": case "content":
if (utf8JsonReader.TokenType != JsonTokenType.Null) content = new Option<MixedAnyOfContent>(JsonSerializer.Deserialize<MixedAnyOfContent>(ref utf8JsonReader, jsonSerializerOptions));
content = new Option<MixedAnyOfContent>(JsonSerializer.Deserialize<MixedAnyOfContent>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "content": case "content":
if (utf8JsonReader.TokenType != JsonTokenType.Null) content = new Option<MixedOneOfContent>(JsonSerializer.Deserialize<MixedOneOfContent>(ref utf8JsonReader, jsonSerializerOptions));
content = new Option<MixedOneOfContent>(JsonSerializer.Deserialize<MixedOneOfContent>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -189,20 +189,16 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "dateTime": case "dateTime":
if (utf8JsonReader.TokenType != JsonTokenType.Null) dateTime = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
dateTime = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map": case "map":
if (utf8JsonReader.TokenType != JsonTokenType.Null) map = new Option<Dictionary<string, Animal>>(JsonSerializer.Deserialize<Dictionary<string, Animal>>(ref utf8JsonReader, jsonSerializerOptions));
map = new Option<Dictionary<string, Animal>>(JsonSerializer.Deserialize<Dictionary<string, Animal>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "uuid": case "uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) uuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
uuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
case "uuid_with_pattern": case "uuid_with_pattern":
if (utf8JsonReader.TokenType != JsonTokenType.Null) uuidWithPattern = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
uuidWithPattern = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
default: default:
break; break;

View File

@ -146,8 +146,7 @@ namespace Org.OpenAPITools.Model
varClass = new Option<string>(utf8JsonReader.GetString()); varClass = new Option<string>(utf8JsonReader.GetString());
break; break;
case "name": case "name":
if (utf8JsonReader.TokenType != JsonTokenType.Null) name = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
name = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
default: default:
break; break;

View File

@ -211,19 +211,16 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "name": case "name":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varName = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
varName = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "property": case "property":
property = new Option<string>(utf8JsonReader.GetString()); property = new Option<string>(utf8JsonReader.GetString());
break; break;
case "snake_case": case "snake_case":
if (utf8JsonReader.TokenType != JsonTokenType.Null) snakeCase = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
snakeCase = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "123Number": case "123Number":
if (utf8JsonReader.TokenType != JsonTokenType.Null) var123Number = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
var123Number = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
default: default:
break; break;

View File

@ -129,12 +129,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "a_objVariableobject": case "a_objVariableobject":
if (utf8JsonReader.TokenType != JsonTokenType.Null) aObjVariableobject = new Option<List<Dictionary<string, Object>>>(JsonSerializer.Deserialize<List<Dictionary<string, Object>>>(ref utf8JsonReader, jsonSerializerOptions));
aObjVariableobject = new Option<List<Dictionary<string, Object>>>(JsonSerializer.Deserialize<List<Dictionary<string, Object>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "pkiNotificationtestID": case "pkiNotificationtestID":
if (utf8JsonReader.TokenType != JsonTokenType.Null) pkiNotificationtestID = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
pkiNotificationtestID = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
default: default:
break; break;

View File

@ -323,48 +323,37 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "array_and_items_nullable_prop": case "array_and_items_nullable_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayAndItemsNullableProp = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
arrayAndItemsNullableProp = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "array_items_nullable": case "array_items_nullable":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayItemsNullable = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
arrayItemsNullable = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "array_nullable_prop": case "array_nullable_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayNullableProp = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
arrayNullableProp = new Option<List<Object>>(JsonSerializer.Deserialize<List<Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "boolean_prop": case "boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) booleanProp = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
booleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "date_prop": case "date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) dateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
dateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "datetime_prop": case "datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) datetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
datetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "integer_prop": case "integer_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) integerProp = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
integerProp = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "number_prop": case "number_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) numberProp = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
numberProp = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
case "object_and_items_nullable_prop": case "object_and_items_nullable_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) objectAndItemsNullableProp = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
objectAndItemsNullableProp = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "object_items_nullable": case "object_items_nullable":
if (utf8JsonReader.TokenType != JsonTokenType.Null) objectItemsNullable = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
objectItemsNullable = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "object_nullable_prop": case "object_nullable_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) objectNullableProp = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
objectNullableProp = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "string_prop": case "string_prop":
stringProp = new Option<string>(utf8JsonReader.GetString()); stringProp = new Option<string>(utf8JsonReader.GetString());

View File

@ -127,8 +127,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "uuid": case "uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) uuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
uuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "JustNumber": case "JustNumber":
if (utf8JsonReader.TokenType != JsonTokenType.Null) justNumber = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
justNumber = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
default: default:
break; break;

View File

@ -180,16 +180,13 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "bars": case "bars":
if (utf8JsonReader.TokenType != JsonTokenType.Null) bars = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
bars = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "deprecatedRef": case "deprecatedRef":
if (utf8JsonReader.TokenType != JsonTokenType.Null) deprecatedRef = new Option<DeprecatedObject>(JsonSerializer.Deserialize<DeprecatedObject>(ref utf8JsonReader, jsonSerializerOptions));
deprecatedRef = new Option<DeprecatedObject>(JsonSerializer.Deserialize<DeprecatedObject>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
id = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
case "uuid": case "uuid":
uuid = new Option<string>(utf8JsonReader.GetString()); uuid = new Option<string>(utf8JsonReader.GetString());

View File

@ -299,24 +299,19 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "complete": case "complete":
if (utf8JsonReader.TokenType != JsonTokenType.Null) complete = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
complete = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
id = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "petId": case "petId":
if (utf8JsonReader.TokenType != JsonTokenType.Null) petId = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
petId = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "quantity": case "quantity":
if (utf8JsonReader.TokenType != JsonTokenType.Null) quantity = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
quantity = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "shipDate": case "shipDate":
if (utf8JsonReader.TokenType != JsonTokenType.Null) shipDate = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
shipDate = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "status": case "status":
string statusRawValue = utf8JsonReader.GetString(); string statusRawValue = utf8JsonReader.GetString();

View File

@ -160,12 +160,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "my_boolean": case "my_boolean":
if (utf8JsonReader.TokenType != JsonTokenType.Null) myBoolean = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
myBoolean = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "my_number": case "my_number":
if (utf8JsonReader.TokenType != JsonTokenType.Null) myNumber = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
myNumber = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
case "my_string": case "my_string":
myString = new Option<string>(utf8JsonReader.GetString()); myString = new Option<string>(utf8JsonReader.GetString());

View File

@ -283,16 +283,13 @@ namespace Org.OpenAPITools.Model
name = new Option<string>(utf8JsonReader.GetString()); name = new Option<string>(utf8JsonReader.GetString());
break; break;
case "photoUrls": case "photoUrls":
if (utf8JsonReader.TokenType != JsonTokenType.Null) photoUrls = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
photoUrls = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "category": case "category":
if (utf8JsonReader.TokenType != JsonTokenType.Null) category = new Option<Category>(JsonSerializer.Deserialize<Category>(ref utf8JsonReader, jsonSerializerOptions));
category = new Option<Category>(JsonSerializer.Deserialize<Category>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
id = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "status": case "status":
string statusRawValue = utf8JsonReader.GetString(); string statusRawValue = utf8JsonReader.GetString();
@ -300,8 +297,7 @@ namespace Org.OpenAPITools.Model
status = new Option<Pet.StatusEnum?>(Pet.StatusEnumFromStringOrDefault(statusRawValue)); status = new Option<Pet.StatusEnum?>(Pet.StatusEnumFromStringOrDefault(statusRawValue));
break; break;
case "tags": case "tags":
if (utf8JsonReader.TokenType != JsonTokenType.Null) tags = new Option<List<Tag>>(JsonSerializer.Deserialize<List<Tag>>(ref utf8JsonReader, jsonSerializerOptions));
tags = new Option<List<Tag>>(JsonSerializer.Deserialize<List<Tag>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -1825,28 +1825,22 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "required_not_nullable_date_prop": case "required_not_nullable_date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
requiredNotNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_notnullable_array_of_string": case "required_notnullable_array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
requiredNotnullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_notnullable_boolean_prop": case "required_notnullable_boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableBooleanProp = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
requiredNotnullableBooleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "required_notnullable_datetime_prop": case "required_notnullable_datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
requiredNotnullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_notnullable_enum_integer": case "required_notnullable_enum_integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableEnumInteger = new Option<RequiredClass.RequiredNotnullableEnumIntegerEnum?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (RequiredClass.RequiredNotnullableEnumIntegerEnum?)null : (RequiredClass.RequiredNotnullableEnumIntegerEnum)utf8JsonReader.GetInt32());
requiredNotnullableEnumInteger = new Option<RequiredClass.RequiredNotnullableEnumIntegerEnum?>((RequiredClass.RequiredNotnullableEnumIntegerEnum)utf8JsonReader.GetInt32());
break; break;
case "required_notnullable_enum_integer_only": case "required_notnullable_enum_integer_only":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableEnumIntegerOnly = new Option<RequiredClass.RequiredNotnullableEnumIntegerOnlyEnum?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (RequiredClass.RequiredNotnullableEnumIntegerOnlyEnum?)null : (RequiredClass.RequiredNotnullableEnumIntegerOnlyEnum)utf8JsonReader.GetInt32());
requiredNotnullableEnumIntegerOnly = new Option<RequiredClass.RequiredNotnullableEnumIntegerOnlyEnum?>((RequiredClass.RequiredNotnullableEnumIntegerOnlyEnum)utf8JsonReader.GetInt32());
break; break;
case "required_notnullable_enum_string": case "required_notnullable_enum_string":
string requiredNotnullableEnumStringRawValue = utf8JsonReader.GetString(); string requiredNotnullableEnumStringRawValue = utf8JsonReader.GetString();
@ -1862,48 +1856,37 @@ namespace Org.OpenAPITools.Model
requiredNotnullableStringProp = new Option<string>(utf8JsonReader.GetString()); requiredNotnullableStringProp = new Option<string>(utf8JsonReader.GetString());
break; break;
case "required_notnullable_uuid": case "required_notnullable_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableUuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
requiredNotnullableUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
case "required_notnullableinteger_prop": case "required_notnullableinteger_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNotnullableintegerProp = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
requiredNotnullableintegerProp = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "not_required_notnullable_date_prop": case "not_required_notnullable_date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notRequiredNotnullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
notRequiredNotnullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "not_required_notnullableinteger_prop": case "not_required_notnullableinteger_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notRequiredNotnullableintegerProp = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
notRequiredNotnullableintegerProp = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "not_required_nullable_date_prop": case "not_required_nullable_date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notRequiredNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
notRequiredNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "not_required_nullable_integer_prop": case "not_required_nullable_integer_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notRequiredNullableIntegerProp = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
notRequiredNullableIntegerProp = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "notrequired_notnullable_array_of_string": case "notrequired_notnullable_array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNotnullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
notrequiredNotnullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "notrequired_notnullable_boolean_prop": case "notrequired_notnullable_boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNotnullableBooleanProp = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
notrequiredNotnullableBooleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "notrequired_notnullable_datetime_prop": case "notrequired_notnullable_datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNotnullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
notrequiredNotnullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "notrequired_notnullable_enum_integer": case "notrequired_notnullable_enum_integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNotnullableEnumInteger = new Option<RequiredClass.NotrequiredNotnullableEnumIntegerEnum?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (RequiredClass.NotrequiredNotnullableEnumIntegerEnum?)null : (RequiredClass.NotrequiredNotnullableEnumIntegerEnum)utf8JsonReader.GetInt32());
notrequiredNotnullableEnumInteger = new Option<RequiredClass.NotrequiredNotnullableEnumIntegerEnum?>((RequiredClass.NotrequiredNotnullableEnumIntegerEnum)utf8JsonReader.GetInt32());
break; break;
case "notrequired_notnullable_enum_integer_only": case "notrequired_notnullable_enum_integer_only":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNotnullableEnumIntegerOnly = new Option<RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnum?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnum?)null : (RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnum)utf8JsonReader.GetInt32());
notrequiredNotnullableEnumIntegerOnly = new Option<RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnum?>((RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnum)utf8JsonReader.GetInt32());
break; break;
case "notrequired_notnullable_enum_string": case "notrequired_notnullable_enum_string":
string notrequiredNotnullableEnumStringRawValue = utf8JsonReader.GetString(); string notrequiredNotnullableEnumStringRawValue = utf8JsonReader.GetString();
@ -1919,28 +1902,22 @@ namespace Org.OpenAPITools.Model
notrequiredNotnullableStringProp = new Option<string>(utf8JsonReader.GetString()); notrequiredNotnullableStringProp = new Option<string>(utf8JsonReader.GetString());
break; break;
case "notrequired_notnullable_uuid": case "notrequired_notnullable_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNotnullableUuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
notrequiredNotnullableUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
case "notrequired_nullable_array_of_string": case "notrequired_nullable_array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
notrequiredNullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "notrequired_nullable_boolean_prop": case "notrequired_nullable_boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNullableBooleanProp = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
notrequiredNullableBooleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "notrequired_nullable_datetime_prop": case "notrequired_nullable_datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
notrequiredNullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "notrequired_nullable_enum_integer": case "notrequired_nullable_enum_integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNullableEnumInteger = new Option<RequiredClass.NotrequiredNullableEnumIntegerEnum?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (RequiredClass.NotrequiredNullableEnumIntegerEnum?)null : (RequiredClass.NotrequiredNullableEnumIntegerEnum)utf8JsonReader.GetInt32());
notrequiredNullableEnumInteger = new Option<RequiredClass.NotrequiredNullableEnumIntegerEnum?>((RequiredClass.NotrequiredNullableEnumIntegerEnum)utf8JsonReader.GetInt32());
break; break;
case "notrequired_nullable_enum_integer_only": case "notrequired_nullable_enum_integer_only":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNullableEnumIntegerOnly = new Option<RequiredClass.NotrequiredNullableEnumIntegerOnlyEnum?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (RequiredClass.NotrequiredNullableEnumIntegerOnlyEnum?)null : (RequiredClass.NotrequiredNullableEnumIntegerOnlyEnum)utf8JsonReader.GetInt32());
notrequiredNullableEnumIntegerOnly = new Option<RequiredClass.NotrequiredNullableEnumIntegerOnlyEnum?>((RequiredClass.NotrequiredNullableEnumIntegerOnlyEnum)utf8JsonReader.GetInt32());
break; break;
case "notrequired_nullable_enum_string": case "notrequired_nullable_enum_string":
string notrequiredNullableEnumStringRawValue = utf8JsonReader.GetString(); string notrequiredNullableEnumStringRawValue = utf8JsonReader.GetString();
@ -1956,32 +1933,25 @@ namespace Org.OpenAPITools.Model
notrequiredNullableStringProp = new Option<string>(utf8JsonReader.GetString()); notrequiredNullableStringProp = new Option<string>(utf8JsonReader.GetString());
break; break;
case "notrequired_nullable_uuid": case "notrequired_nullable_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) notrequiredNullableUuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
notrequiredNullableUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
case "required_nullable_array_of_string": case "required_nullable_array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
requiredNullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_nullable_boolean_prop": case "required_nullable_boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableBooleanProp = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
requiredNullableBooleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "required_nullable_date_prop": case "required_nullable_date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
requiredNullableDateProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_nullable_datetime_prop": case "required_nullable_datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
requiredNullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "required_nullable_enum_integer": case "required_nullable_enum_integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableEnumInteger = new Option<RequiredClass.RequiredNullableEnumIntegerEnum?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (RequiredClass.RequiredNullableEnumIntegerEnum?)null : (RequiredClass.RequiredNullableEnumIntegerEnum)utf8JsonReader.GetInt32());
requiredNullableEnumInteger = new Option<RequiredClass.RequiredNullableEnumIntegerEnum?>((RequiredClass.RequiredNullableEnumIntegerEnum)utf8JsonReader.GetInt32());
break; break;
case "required_nullable_enum_integer_only": case "required_nullable_enum_integer_only":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableEnumIntegerOnly = new Option<RequiredClass.RequiredNullableEnumIntegerOnlyEnum?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (RequiredClass.RequiredNullableEnumIntegerOnlyEnum?)null : (RequiredClass.RequiredNullableEnumIntegerOnlyEnum)utf8JsonReader.GetInt32());
requiredNullableEnumIntegerOnly = new Option<RequiredClass.RequiredNullableEnumIntegerOnlyEnum?>((RequiredClass.RequiredNullableEnumIntegerOnlyEnum)utf8JsonReader.GetInt32());
break; break;
case "required_nullable_enum_string": case "required_nullable_enum_string":
string requiredNullableEnumStringRawValue = utf8JsonReader.GetString(); string requiredNullableEnumStringRawValue = utf8JsonReader.GetString();
@ -1989,8 +1959,7 @@ namespace Org.OpenAPITools.Model
requiredNullableEnumString = new Option<RequiredClass.RequiredNullableEnumStringEnum?>(RequiredClass.RequiredNullableEnumStringEnumFromStringOrDefault(requiredNullableEnumStringRawValue)); requiredNullableEnumString = new Option<RequiredClass.RequiredNullableEnumStringEnum?>(RequiredClass.RequiredNullableEnumStringEnumFromStringOrDefault(requiredNullableEnumStringRawValue));
break; break;
case "required_nullable_integer_prop": case "required_nullable_integer_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableIntegerProp = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
requiredNullableIntegerProp = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "required_nullable_outerEnumDefaultValue": case "required_nullable_outerEnumDefaultValue":
string requiredNullableOuterEnumDefaultValueRawValue = utf8JsonReader.GetString(); string requiredNullableOuterEnumDefaultValueRawValue = utf8JsonReader.GetString();
@ -2001,8 +1970,7 @@ namespace Org.OpenAPITools.Model
requiredNullableStringProp = new Option<string>(utf8JsonReader.GetString()); requiredNullableStringProp = new Option<string>(utf8JsonReader.GetString());
break; break;
case "required_nullable_uuid": case "required_nullable_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) requiredNullableUuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
requiredNullableUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
default: default:
break; break;

View File

@ -169,8 +169,7 @@ namespace Org.OpenAPITools.Model
varAbstract = new Option<string>(utf8JsonReader.GetString()); varAbstract = new Option<string>(utf8JsonReader.GetString());
break; break;
case "return": case "return":
if (utf8JsonReader.TokenType != JsonTokenType.Null) varReturn = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
varReturn = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "unsafe": case "unsafe":
varUnsafe = new Option<string>(utf8JsonReader.GetString()); varUnsafe = new Option<string>(utf8JsonReader.GetString());

View File

@ -143,12 +143,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "role": case "role":
if (utf8JsonReader.TokenType != JsonTokenType.Null) role = new Option<RolesReportsHashRole>(JsonSerializer.Deserialize<RolesReportsHashRole>(ref utf8JsonReader, jsonSerializerOptions));
role = new Option<RolesReportsHashRole>(JsonSerializer.Deserialize<RolesReportsHashRole>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "role_uuid": case "role_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null) roleUuid = new Option<Guid?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (Guid?)null : utf8JsonReader.GetGuid());
roleUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break; break;
default: default:
break; break;

View File

@ -146,8 +146,7 @@ namespace Org.OpenAPITools.Model
varSpecialModelName = new Option<string>(utf8JsonReader.GetString()); varSpecialModelName = new Option<string>(utf8JsonReader.GetString());
break; break;
case "$special[property.name]": case "$special[property.name]":
if (utf8JsonReader.TokenType != JsonTokenType.Null) specialPropertyName = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
specialPropertyName = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
default: default:
break; break;

View File

@ -143,8 +143,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
id = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "name": case "name":
name = new Option<string>(utf8JsonReader.GetString()); name = new Option<string>(utf8JsonReader.GetString());

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "TestCollectionEndingWithWordList": case "TestCollectionEndingWithWordList":
if (utf8JsonReader.TokenType != JsonTokenType.Null) testCollectionEndingWithWordList = new Option<List<TestCollectionEndingWithWordList>>(JsonSerializer.Deserialize<List<TestCollectionEndingWithWordList>>(ref utf8JsonReader, jsonSerializerOptions));
testCollectionEndingWithWordList = new Option<List<TestCollectionEndingWithWordList>>(JsonSerializer.Deserialize<List<TestCollectionEndingWithWordList>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -318,12 +318,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "anyTypeProp": case "anyTypeProp":
if (utf8JsonReader.TokenType != JsonTokenType.Null) anyTypeProp = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
anyTypeProp = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "anyTypePropNullable": case "anyTypePropNullable":
if (utf8JsonReader.TokenType != JsonTokenType.Null) anyTypePropNullable = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
anyTypePropNullable = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "email": case "email":
email = new Option<string>(utf8JsonReader.GetString()); email = new Option<string>(utf8JsonReader.GetString());
@ -332,19 +330,16 @@ namespace Org.OpenAPITools.Model
firstName = new Option<string>(utf8JsonReader.GetString()); firstName = new Option<string>(utf8JsonReader.GetString());
break; break;
case "id": case "id":
if (utf8JsonReader.TokenType != JsonTokenType.Null) id = new Option<long?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (long?)null : utf8JsonReader.GetInt64());
id = new Option<long?>(utf8JsonReader.GetInt64());
break; break;
case "lastName": case "lastName":
lastName = new Option<string>(utf8JsonReader.GetString()); lastName = new Option<string>(utf8JsonReader.GetString());
break; break;
case "objectWithNoDeclaredProps": case "objectWithNoDeclaredProps":
if (utf8JsonReader.TokenType != JsonTokenType.Null) objectWithNoDeclaredProps = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
objectWithNoDeclaredProps = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "objectWithNoDeclaredPropsNullable": case "objectWithNoDeclaredPropsNullable":
if (utf8JsonReader.TokenType != JsonTokenType.Null) objectWithNoDeclaredPropsNullable = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
objectWithNoDeclaredPropsNullable = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "password": case "password":
password = new Option<string>(utf8JsonReader.GetString()); password = new Option<string>(utf8JsonReader.GetString());
@ -353,8 +348,7 @@ namespace Org.OpenAPITools.Model
phone = new Option<string>(utf8JsonReader.GetString()); phone = new Option<string>(utf8JsonReader.GetString());
break; break;
case "userStatus": case "userStatus":
if (utf8JsonReader.TokenType != JsonTokenType.Null) userStatus = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
userStatus = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "username": case "username":
username = new Option<string>(utf8JsonReader.GetString()); username = new Option<string>(utf8JsonReader.GetString());

View File

@ -156,12 +156,10 @@ namespace Org.OpenAPITools.Model
className = new Option<string>(utf8JsonReader.GetString()); className = new Option<string>(utf8JsonReader.GetString());
break; break;
case "hasBaleen": case "hasBaleen":
if (utf8JsonReader.TokenType != JsonTokenType.Null) hasBaleen = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
hasBaleen = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
case "hasTeeth": case "hasTeeth":
if (utf8JsonReader.TokenType != JsonTokenType.Null) hasTeeth = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
hasTeeth = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
default: default:
break; break;

View File

@ -145,12 +145,10 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "now": case "now":
if (utf8JsonReader.TokenType != JsonTokenType.Null) now = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
now = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "today": case "today":
if (utf8JsonReader.TokenType != JsonTokenType.Null) today = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
today = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -115,8 +115,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "children": case "children":
if (utf8JsonReader.TokenType != JsonTokenType.Null) children = new Option<List<Child>>(JsonSerializer.Deserialize<List<Child>>(ref utf8JsonReader, jsonSerializerOptions));
children = new Option<List<Child>>(JsonSerializer.Deserialize<List<Child>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "firstName": case "firstName":
firstName = new Option<string>(utf8JsonReader.GetString()); firstName = new Option<string>(utf8JsonReader.GetString());

View File

@ -132,8 +132,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "age": case "age":
if (utf8JsonReader.TokenType != JsonTokenType.Null) age = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
age = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "firstName": case "firstName":
firstName = new Option<string>(utf8JsonReader.GetString()); firstName = new Option<string>(utf8JsonReader.GetString());
@ -145,8 +144,7 @@ namespace Org.OpenAPITools.Model
type = new Option<string>(utf8JsonReader.GetString()); type = new Option<string>(utf8JsonReader.GetString());
break; break;
case "boosterSeat": case "boosterSeat":
if (utf8JsonReader.TokenType != JsonTokenType.Null) boosterSeat = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
boosterSeat = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "count": case "count":
if (utf8JsonReader.TokenType != JsonTokenType.Null) count = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
count = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
default: default:
break; break;

View File

@ -125,8 +125,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "count": case "count":
if (utf8JsonReader.TokenType != JsonTokenType.Null) count = new Option<decimal?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (decimal?)null : utf8JsonReader.GetDecimal());
count = new Option<decimal?>(utf8JsonReader.GetDecimal());
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "activity_outputs": case "activity_outputs":
if (utf8JsonReader.TokenType != JsonTokenType.Null) activityOutputs = new Option<Dictionary<string, List<ActivityOutputElementRepresentation>>>(JsonSerializer.Deserialize<Dictionary<string, List<ActivityOutputElementRepresentation>>>(ref utf8JsonReader, jsonSerializerOptions));
activityOutputs = new Option<Dictionary<string, List<ActivityOutputElementRepresentation>>>(JsonSerializer.Deserialize<Dictionary<string, List<ActivityOutputElementRepresentation>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -146,8 +146,7 @@ namespace Org.OpenAPITools.Model
prop1 = new Option<string>(utf8JsonReader.GetString()); prop1 = new Option<string>(utf8JsonReader.GetString());
break; break;
case "prop2": case "prop2":
if (utf8JsonReader.TokenType != JsonTokenType.Null) prop2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
prop2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -246,36 +246,28 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "anytype_1": case "anytype_1":
if (utf8JsonReader.TokenType != JsonTokenType.Null) anytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
anytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "empty_map": case "empty_map":
if (utf8JsonReader.TokenType != JsonTokenType.Null) emptyMap = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
emptyMap = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_of_map_property": case "map_of_map_property":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapOfMapProperty = new Option<Dictionary<string, Dictionary<string, string>>>(JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(ref utf8JsonReader, jsonSerializerOptions));
mapOfMapProperty = new Option<Dictionary<string, Dictionary<string, string>>>(JsonSerializer.Deserialize<Dictionary<string, Dictionary<string, string>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_property": case "map_property":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapProperty = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
mapProperty = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_anytype_1": case "map_with_undeclared_properties_anytype_1":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesAnytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesAnytype1 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_anytype_2": case "map_with_undeclared_properties_anytype_2":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesAnytype2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesAnytype2 = new Option<Object>(JsonSerializer.Deserialize<Object>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_anytype_3": case "map_with_undeclared_properties_anytype_3":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesAnytype3 = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesAnytype3 = new Option<Dictionary<string, Object>>(JsonSerializer.Deserialize<Dictionary<string, Object>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "map_with_undeclared_properties_string": case "map_with_undeclared_properties_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mapWithUndeclaredPropertiesString = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
mapWithUndeclaredPropertiesString = new Option<Dictionary<string, string>>(JsonSerializer.Deserialize<Dictionary<string, string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -160,8 +160,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "code": case "code":
if (utf8JsonReader.TokenType != JsonTokenType.Null) code = new Option<int?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (int?)null : utf8JsonReader.GetInt32());
code = new Option<int?>(utf8JsonReader.GetInt32());
break; break;
case "message": case "message":
message = new Option<string>(utf8JsonReader.GetString()); message = new Option<string>(utf8JsonReader.GetString());

View File

@ -132,8 +132,7 @@ namespace Org.OpenAPITools.Model
cultivar = new Option<string>(utf8JsonReader.GetString()); cultivar = new Option<string>(utf8JsonReader.GetString());
break; break;
case "mealy": case "mealy":
if (utf8JsonReader.TokenType != JsonTokenType.Null) mealy = new Option<bool?>(utf8JsonReader.TokenType == JsonTokenType.Null ? (bool?)null : utf8JsonReader.GetBoolean());
mealy = new Option<bool?>(utf8JsonReader.GetBoolean());
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "ArrayArrayNumber": case "ArrayArrayNumber":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayArrayNumber = new Option<List<List<decimal>>>(JsonSerializer.Deserialize<List<List<decimal>>>(ref utf8JsonReader, jsonSerializerOptions));
arrayArrayNumber = new Option<List<List<decimal>>>(JsonSerializer.Deserialize<List<List<decimal>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -126,8 +126,7 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "ArrayNumber": case "ArrayNumber":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayNumber = new Option<List<decimal>>(JsonSerializer.Deserialize<List<decimal>>(ref utf8JsonReader, jsonSerializerOptions));
arrayNumber = new Option<List<decimal>>(JsonSerializer.Deserialize<List<decimal>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

View File

@ -160,16 +160,13 @@ namespace Org.OpenAPITools.Model
switch (localVarJsonPropertyName) switch (localVarJsonPropertyName)
{ {
case "array_array_of_integer": case "array_array_of_integer":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayArrayOfInteger = new Option<List<List<long>>>(JsonSerializer.Deserialize<List<List<long>>>(ref utf8JsonReader, jsonSerializerOptions));
arrayArrayOfInteger = new Option<List<List<long>>>(JsonSerializer.Deserialize<List<List<long>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "array_array_of_model": case "array_array_of_model":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayArrayOfModel = new Option<List<List<ReadOnlyFirst>>>(JsonSerializer.Deserialize<List<List<ReadOnlyFirst>>>(ref utf8JsonReader, jsonSerializerOptions));
arrayArrayOfModel = new Option<List<List<ReadOnlyFirst>>>(JsonSerializer.Deserialize<List<List<ReadOnlyFirst>>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
case "array_of_string": case "array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null) arrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
arrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break; break;
default: default:
break; break;

Some files were not shown because too many files have changed in this diff Show More