forked from loafle/openapi-generator-original
[csharp-netcore][generichost] Reduce null warnings (#15656)
* reduced null warnings * removed null warnings
This commit is contained in:
parent
af917f8865
commit
4d52bf656e
@ -58,7 +58,7 @@
|
||||
{{/isInherited}}
|
||||
{{/composedSchemas.allOf}}
|
||||
{{#allVars}}
|
||||
{{#isInnerEnum}}{{^isMap}}{{classname}}.{{/isMap}}{{/isInnerEnum}}{{{datatypeWithEnum}}}{{#isEnum}}{{#isNullable}}?{{/isNullable}}{{/isEnum}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = default;
|
||||
{{#isInnerEnum}}{{^isMap}}{{classname}}.{{/isMap}}{{/isInnerEnum}}{{#nrt}}{{#lambda.optional}}{{{datatypeWithEnum}}}{{/lambda.optional}}{{/nrt}}{{^nrt}}{{{datatypeWithEnum}}}{{#vendorExtensions.x-csharp-value-type}}?{{/vendorExtensions.x-csharp-value-type}}{{/nrt}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = default;
|
||||
{{/allVars}}
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
@ -192,7 +192,7 @@
|
||||
{{#composedSchemas.oneOf}}
|
||||
{{^vendorExtensions.x-duplicated-data-type}}
|
||||
if ({{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}Deserialized)
|
||||
return new {{classname}}({{#lambda.joinWithComma}}{{#lambda.camelcase_param}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/lambda.camelcase_param}} {{#model.composedSchemas.allOf}}{{^isInherited}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/isInherited}}{{/model.composedSchemas.allOf}}{{#model.composedSchemas.anyOf}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{/model.composedSchemas.anyOf}}{{#allVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} {{/allVars}}{{/lambda.joinWithComma}});
|
||||
return new {{classname}}({{#lambda.joinWithComma}}{{#lambda.camelcase_param}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/lambda.camelcase_param}}{{#vendorExtensions.x-csharp-value-type}}.Value{{/vendorExtensions.x-csharp-value-type}} {{#model.composedSchemas.allOf}}{{^isInherited}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/isInherited}}{{/model.composedSchemas.allOf}}{{#model.composedSchemas.anyOf}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{#vendorExtensions.x-csharp-value-type}}.Value{{/vendorExtensions.x-csharp-value-type}} {{/model.composedSchemas.anyOf}}{{#allVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{#vendorExtensions.x-csharp-value-type}}.Value{{/vendorExtensions.x-csharp-value-type}} {{/allVars}}{{/lambda.joinWithComma}});
|
||||
|
||||
{{/vendorExtensions.x-duplicated-data-type}}
|
||||
{{#-last}}
|
||||
@ -200,7 +200,7 @@
|
||||
{{/-last}}
|
||||
{{/composedSchemas.oneOf}}
|
||||
{{^composedSchemas.oneOf}}
|
||||
return new {{classname}}({{#lambda.joinWithComma}}{{#model.composedSchemas.allOf}}{{^isInherited}}{{#lambda.camelcase_param}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/lambda.camelcase_param}} {{/isInherited}}{{/model.composedSchemas.allOf}}{{#model.composedSchemas.anyOf}}{{#lambda.camelcase_param}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/lambda.camelcase_param}} {{/model.composedSchemas.anyOf}}{{#allVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} {{/allVars}}{{/lambda.joinWithComma}});
|
||||
return new {{classname}}({{#lambda.joinWithComma}}{{#model.composedSchemas.allOf}}{{^isInherited}}{{#lambda.camelcase_param}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/lambda.camelcase_param}}{{#vendorExtensions.x-csharp-value-type}}.Value{{/vendorExtensions.x-csharp-value-type}} {{/isInherited}}{{/model.composedSchemas.allOf}}{{#model.composedSchemas.anyOf}}{{#lambda.camelcase_param}}{{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}}{{/lambda.camelcase_param}}{{#vendorExtensions.x-csharp-value-type}}.Value{{/vendorExtensions.x-csharp-value-type}} {{/model.composedSchemas.anyOf}}{{#allVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{#vendorExtensions.x-csharp-value-type}}.Value{{/vendorExtensions.x-csharp-value-type}} {{/allVars}}{{/lambda.joinWithComma}});
|
||||
{{/composedSchemas.oneOf}}
|
||||
}
|
||||
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
Dictionary<string, List<ActivityOutputElementRepresentation>> activityOutputs = default;
|
||||
Dictionary<string, List<ActivityOutputElementRepresentation>>? activityOutputs = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -111,8 +111,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string prop1 = default;
|
||||
Object prop2 = default;
|
||||
string? prop1 = default;
|
||||
Object? prop2 = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -166,14 +166,14 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
Object emptyMap = default;
|
||||
Dictionary<string, Dictionary<string, string>> mapOfMapProperty = default;
|
||||
Dictionary<string, string> mapProperty = default;
|
||||
Object mapWithUndeclaredPropertiesAnytype1 = default;
|
||||
Object mapWithUndeclaredPropertiesAnytype2 = default;
|
||||
Dictionary<string, Object> mapWithUndeclaredPropertiesAnytype3 = default;
|
||||
Dictionary<string, string> mapWithUndeclaredPropertiesString = default;
|
||||
Object anytype1 = default;
|
||||
Object? emptyMap = default;
|
||||
Dictionary<string, Dictionary<string, string>>? mapOfMapProperty = default;
|
||||
Dictionary<string, string>? mapProperty = default;
|
||||
Object? mapWithUndeclaredPropertiesAnytype1 = default;
|
||||
Object? mapWithUndeclaredPropertiesAnytype2 = default;
|
||||
Dictionary<string, Object>? mapWithUndeclaredPropertiesAnytype3 = default;
|
||||
Dictionary<string, string>? mapWithUndeclaredPropertiesString = default;
|
||||
Object? anytype1 = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -121,8 +121,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string className = default;
|
||||
string color = default;
|
||||
string? className = default;
|
||||
string? color = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -120,9 +120,9 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
int code = default;
|
||||
string message = default;
|
||||
string type = default;
|
||||
int? code = default;
|
||||
string? message = default;
|
||||
string? type = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -170,7 +170,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new ApiResponse(code, message, type);
|
||||
return new ApiResponse(code.Value, message, type);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -125,8 +125,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string cultivar = default;
|
||||
string origin = default;
|
||||
string? cultivar = default;
|
||||
string? origin = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -104,8 +104,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string cultivar = default;
|
||||
bool mealy = default;
|
||||
string? cultivar = default;
|
||||
bool? mealy = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -147,7 +147,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new AppleReq(cultivar, mealy);
|
||||
return new AppleReq(cultivar, mealy.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
List<List<decimal>> arrayArrayNumber = default;
|
||||
List<List<decimal>>? arrayArrayNumber = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
List<decimal> arrayNumber = default;
|
||||
List<decimal>? arrayNumber = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -120,9 +120,9 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
List<List<long>> arrayArrayOfInteger = default;
|
||||
List<List<ReadOnlyFirst>> arrayArrayOfModel = default;
|
||||
List<string> arrayOfString = default;
|
||||
List<List<long>>? arrayArrayOfInteger = default;
|
||||
List<List<ReadOnlyFirst>>? arrayArrayOfModel = default;
|
||||
List<string>? arrayOfString = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
decimal lengthCm = default;
|
||||
decimal? lengthCm = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -138,7 +138,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Banana(lengthCm);
|
||||
return new Banana(lengthCm.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -104,8 +104,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
decimal lengthCm = default;
|
||||
bool sweet = default;
|
||||
decimal? lengthCm = default;
|
||||
bool? sweet = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -148,7 +148,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new BananaReq(lengthCm, sweet);
|
||||
return new BananaReq(lengthCm.Value, sweet.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string className = default;
|
||||
string? className = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -148,12 +148,12 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string aTTNAME = default;
|
||||
string capitalCamel = default;
|
||||
string capitalSnake = default;
|
||||
string sCAETHFlowPoints = default;
|
||||
string smallCamel = default;
|
||||
string smallSnake = default;
|
||||
string? aTTNAME = default;
|
||||
string? capitalCamel = default;
|
||||
string? capitalSnake = default;
|
||||
string? sCAETHFlowPoints = default;
|
||||
string? smallCamel = default;
|
||||
string? smallSnake = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -99,8 +99,8 @@ namespace Org.OpenAPITools.Model
|
||||
Utf8JsonReader catAllOfReader = utf8JsonReader;
|
||||
bool catAllOfDeserialized = Client.ClientUtils.TryDeserialize<CatAllOf>(ref utf8JsonReader, jsonSerializerOptions, out CatAllOf? catAllOf);
|
||||
|
||||
string className = default;
|
||||
string color = default;
|
||||
string? className = default;
|
||||
string? color = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
bool declawed = default;
|
||||
bool? declawed = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -138,7 +138,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new CatAllOf(declawed);
|
||||
return new CatAllOf(declawed.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -111,8 +111,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
long id = default;
|
||||
string name = default;
|
||||
long? id = default;
|
||||
string? name = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Category(id, name);
|
||||
return new Category(id.Value, name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -88,7 +88,7 @@ namespace Org.OpenAPITools.Model
|
||||
Utf8JsonReader childCatAllOfReader = utf8JsonReader;
|
||||
bool childCatAllOfDeserialized = Client.ClientUtils.TryDeserialize<ChildCatAllOf>(ref utf8JsonReader, jsonSerializerOptions, out ChildCatAllOf? childCatAllOf);
|
||||
|
||||
string petType = default;
|
||||
string? petType = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -149,8 +149,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string name = default;
|
||||
ChildCatAllOf.PetTypeEnum petType = default;
|
||||
string? name = default;
|
||||
ChildCatAllOf.PetTypeEnum? petType = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -192,7 +192,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new ChildCatAllOf(name, petType);
|
||||
return new ChildCatAllOf(name, petType.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string classProperty = default;
|
||||
string? classProperty = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string className = default;
|
||||
string? className = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -108,7 +108,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
DateTime dateOnlyProperty = default;
|
||||
DateTime? dateOnlyProperty = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -144,7 +144,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new DateOnlyClass(dateOnlyProperty);
|
||||
return new DateOnlyClass(dateOnlyProperty.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string name = default;
|
||||
string? name = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -89,8 +89,8 @@ namespace Org.OpenAPITools.Model
|
||||
Utf8JsonReader dogAllOfReader = utf8JsonReader;
|
||||
bool dogAllOfDeserialized = Client.ClientUtils.TryDeserialize<DogAllOf>(ref utf8JsonReader, jsonSerializerOptions, out DogAllOf? dogAllOf);
|
||||
|
||||
string className = default;
|
||||
string color = default;
|
||||
string? className = default;
|
||||
string? color = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string breed = default;
|
||||
string? breed = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -123,10 +123,10 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
Shape mainShape = default;
|
||||
ShapeOrNull shapeOrNull = default;
|
||||
List<Shape> shapes = default;
|
||||
NullableShape nullableShape = default;
|
||||
Shape? mainShape = default;
|
||||
ShapeOrNull? shapeOrNull = default;
|
||||
List<Shape>? shapes = default;
|
||||
NullableShape? nullableShape = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -209,8 +209,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
List<EnumArrays.ArrayEnumEnum> arrayEnum = default;
|
||||
EnumArrays.JustSymbolEnum justSymbol = default;
|
||||
List<EnumArrays.ArrayEnumEnum>? arrayEnum = default;
|
||||
EnumArrays.JustSymbolEnum? justSymbol = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -253,7 +253,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new EnumArrays(arrayEnum, justSymbol);
|
||||
return new EnumArrays(arrayEnum, justSymbol.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -429,14 +429,14 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
EnumTest.EnumIntegerEnum enumInteger = default;
|
||||
EnumTest.EnumIntegerOnlyEnum enumIntegerOnly = default;
|
||||
EnumTest.EnumNumberEnum enumNumber = default;
|
||||
EnumTest.EnumStringEnum enumString = default;
|
||||
EnumTest.EnumStringRequiredEnum enumStringRequired = default;
|
||||
OuterEnumDefaultValue outerEnumDefaultValue = default;
|
||||
OuterEnumInteger outerEnumInteger = default;
|
||||
OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = default;
|
||||
EnumTest.EnumIntegerEnum? enumInteger = default;
|
||||
EnumTest.EnumIntegerOnlyEnum? enumIntegerOnly = default;
|
||||
EnumTest.EnumNumberEnum? enumNumber = default;
|
||||
EnumTest.EnumStringEnum? enumString = default;
|
||||
EnumTest.EnumStringRequiredEnum? enumStringRequired = default;
|
||||
OuterEnumDefaultValue? outerEnumDefaultValue = default;
|
||||
OuterEnumInteger? outerEnumInteger = default;
|
||||
OuterEnumIntegerDefaultValue? outerEnumIntegerDefaultValue = default;
|
||||
OuterEnum? outerEnum = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
@ -526,7 +526,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new EnumTest(enumInteger, enumIntegerOnly, enumNumber, enumString, enumStringRequired, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue, outerEnum);
|
||||
return new EnumTest(enumInteger.Value, enumIntegerOnly.Value, enumNumber.Value, enumString.Value, enumStringRequired.Value, outerEnumDefaultValue.Value, outerEnumInteger.Value, outerEnumIntegerDefaultValue.Value, outerEnum.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -103,7 +103,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string sourceURI = default;
|
||||
string? sourceURI = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -111,8 +111,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
File file = default;
|
||||
List<File> files = default;
|
||||
File? file = default;
|
||||
List<File>? files = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string bar = default;
|
||||
string? bar = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
Foo stringProperty = default;
|
||||
Foo? stringProperty = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -392,25 +392,25 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
System.IO.Stream binary = default;
|
||||
byte[] byteProperty = default;
|
||||
DateTime date = default;
|
||||
DateTime dateTime = default;
|
||||
decimal decimalProperty = default;
|
||||
double doubleProperty = default;
|
||||
float floatProperty = default;
|
||||
int int32 = default;
|
||||
long int64 = default;
|
||||
int integer = default;
|
||||
decimal number = default;
|
||||
string password = default;
|
||||
string patternWithBackslash = default;
|
||||
string patternWithDigits = default;
|
||||
string patternWithDigitsAndDelimiter = default;
|
||||
string stringProperty = default;
|
||||
uint unsignedInteger = default;
|
||||
ulong unsignedLong = default;
|
||||
Guid uuid = default;
|
||||
System.IO.Stream? binary = default;
|
||||
byte[]? byteProperty = default;
|
||||
DateTime? date = default;
|
||||
DateTime? dateTime = default;
|
||||
decimal? decimalProperty = default;
|
||||
double? doubleProperty = default;
|
||||
float? floatProperty = default;
|
||||
int? int32 = default;
|
||||
long? int64 = default;
|
||||
int? integer = default;
|
||||
decimal? number = default;
|
||||
string? password = default;
|
||||
string? patternWithBackslash = default;
|
||||
string? patternWithDigits = default;
|
||||
string? patternWithDigitsAndDelimiter = default;
|
||||
string? stringProperty = default;
|
||||
uint? unsignedInteger = default;
|
||||
ulong? unsignedLong = default;
|
||||
Guid? uuid = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -567,7 +567,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new FormatTest(binary, byteProperty, date, dateTime, decimalProperty, doubleProperty, floatProperty, int32, int64, integer, number, password, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger, unsignedLong, uuid);
|
||||
return new FormatTest(binary, byteProperty, date.Value, dateTime.Value, decimalProperty.Value, doubleProperty.Value, floatProperty.Value, int32.Value, int64.Value, integer.Value, number.Value, password, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger.Value, unsignedLong.Value, uuid.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -126,7 +126,7 @@ namespace Org.OpenAPITools.Model
|
||||
Utf8JsonReader bananaReader = utf8JsonReader;
|
||||
bool bananaDeserialized = Client.ClientUtils.TryDeserialize<Banana>(ref bananaReader, jsonSerializerOptions, out Banana? banana);
|
||||
|
||||
string color = default;
|
||||
string? color = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -115,7 +115,7 @@ namespace Org.OpenAPITools.Model
|
||||
Utf8JsonReader bananaReader = utf8JsonReader;
|
||||
bool bananaDeserialized = Client.ClientUtils.TryDeserialize<Banana>(ref bananaReader, jsonSerializerOptions, out Banana? banana);
|
||||
|
||||
string color = default;
|
||||
string? color = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -112,7 +112,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string petType = default;
|
||||
string? petType = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -148,8 +148,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string bar = default;
|
||||
string foo = default;
|
||||
string? bar = default;
|
||||
string? foo = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string nullableMessage = default;
|
||||
string? nullableMessage = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string _123list = default;
|
||||
string? _123list = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -111,8 +111,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string escapedLiteralString = default;
|
||||
string unescapedLiteralString = default;
|
||||
string? escapedLiteralString = default;
|
||||
string? unescapedLiteralString = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -178,10 +178,10 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
Dictionary<string, bool> directMap = default;
|
||||
Dictionary<string, bool> indirectMap = default;
|
||||
Dictionary<string, Dictionary<string, string>> mapMapOfString = default;
|
||||
Dictionary<string, MapTest.InnerEnum> mapOfEnumString = default;
|
||||
Dictionary<string, bool>? directMap = default;
|
||||
Dictionary<string, bool>? indirectMap = default;
|
||||
Dictionary<string, Dictionary<string, string>>? mapMapOfString = default;
|
||||
Dictionary<string, MapTest.InnerEnum>? mapOfEnumString = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -141,10 +141,10 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
DateTime dateTime = default;
|
||||
Dictionary<string, Animal> map = default;
|
||||
Guid uuid = default;
|
||||
Guid uuidWithPattern = default;
|
||||
DateTime? dateTime = default;
|
||||
Dictionary<string, Animal>? map = default;
|
||||
Guid? uuid = default;
|
||||
Guid? uuidWithPattern = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -201,7 +201,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern);
|
||||
return new MixedPropertiesAndAdditionalPropertiesClass(dateTime.Value, map, uuid.Value, uuidWithPattern.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -111,8 +111,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string classProperty = default;
|
||||
int name = default;
|
||||
string? classProperty = default;
|
||||
int? name = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Model200Response(classProperty, name);
|
||||
return new Model200Response(classProperty, name.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string clientProperty = default;
|
||||
string? clientProperty = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -166,10 +166,10 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
int nameProperty = default;
|
||||
string property = default;
|
||||
int snakeCase = default;
|
||||
int _123number = default;
|
||||
int? nameProperty = default;
|
||||
string? property = default;
|
||||
int? snakeCase = default;
|
||||
int? _123number = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -225,7 +225,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Name(nameProperty, property, snakeCase, _123number);
|
||||
return new Name(nameProperty.Value, property, snakeCase.Value, _123number.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -205,18 +205,18 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
List<Object> arrayItemsNullable = default;
|
||||
Dictionary<string, Object> objectItemsNullable = default;
|
||||
List<Object> arrayAndItemsNullableProp = default;
|
||||
List<Object> arrayNullableProp = default;
|
||||
List<Object>? arrayItemsNullable = default;
|
||||
Dictionary<string, Object>? objectItemsNullable = default;
|
||||
List<Object>? arrayAndItemsNullableProp = default;
|
||||
List<Object>? arrayNullableProp = default;
|
||||
bool? booleanProp = default;
|
||||
DateTime? dateProp = default;
|
||||
DateTime? datetimeProp = default;
|
||||
int? integerProp = default;
|
||||
decimal? numberProp = default;
|
||||
Dictionary<string, Object> objectAndItemsNullableProp = default;
|
||||
Dictionary<string, Object> objectNullableProp = default;
|
||||
string stringProp = default;
|
||||
Dictionary<string, Object>? objectAndItemsNullableProp = default;
|
||||
Dictionary<string, Object>? objectNullableProp = default;
|
||||
string? stringProp = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
decimal justNumber = default;
|
||||
decimal? justNumber = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -138,7 +138,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new NumberOnly(justNumber);
|
||||
return new NumberOnly(justNumber.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -132,10 +132,10 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
List<string> bars = default;
|
||||
DeprecatedObject deprecatedRef = default;
|
||||
decimal id = default;
|
||||
string uuid = default;
|
||||
List<string>? bars = default;
|
||||
DeprecatedObject? deprecatedRef = default;
|
||||
decimal? id = default;
|
||||
string? uuid = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -191,7 +191,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid);
|
||||
return new ObjectWithDeprecatedFields(bars, deprecatedRef, id.Value, uuid);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -215,12 +215,12 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
long id = default;
|
||||
long petId = default;
|
||||
int quantity = default;
|
||||
DateTime shipDate = default;
|
||||
Order.StatusEnum status = default;
|
||||
bool complete = default;
|
||||
long? id = default;
|
||||
long? petId = default;
|
||||
int? quantity = default;
|
||||
DateTime? shipDate = default;
|
||||
Order.StatusEnum? status = default;
|
||||
bool? complete = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -291,7 +291,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Order(id, petId, quantity, shipDate, status, complete);
|
||||
return new Order(id.Value, petId.Value, quantity.Value, shipDate.Value, status.Value, complete.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -120,9 +120,9 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
bool myBoolean = default;
|
||||
decimal myNumber = default;
|
||||
string myString = default;
|
||||
bool? myBoolean = default;
|
||||
decimal? myNumber = default;
|
||||
string? myString = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -171,7 +171,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new OuterComposite(myBoolean, myNumber, myString);
|
||||
return new OuterComposite(myBoolean.Value, myNumber.Value, myString);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -78,7 +78,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string petType = default;
|
||||
string? petType = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -210,12 +210,12 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
Category category = default;
|
||||
long id = default;
|
||||
string name = default;
|
||||
List<string> photoUrls = default;
|
||||
Pet.StatusEnum status = default;
|
||||
List<Tag> tags = default;
|
||||
Category? category = default;
|
||||
long? id = default;
|
||||
string? name = default;
|
||||
List<string>? photoUrls = default;
|
||||
Pet.StatusEnum? status = default;
|
||||
List<Tag>? tags = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -285,7 +285,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Pet(category, id, name, photoUrls, status, tags);
|
||||
return new Pet(category, id.Value, name, photoUrls, status.Value, tags);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string quadrilateralType = default;
|
||||
string? quadrilateralType = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -147,8 +147,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string bar = default;
|
||||
string baz = default;
|
||||
string? bar = default;
|
||||
string? baz = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
int returnProperty = default;
|
||||
int? returnProperty = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -138,7 +138,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Return(returnProperty);
|
||||
return new Return(returnProperty.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model
|
||||
Utf8JsonReader quadrilateralReader = utf8JsonReader;
|
||||
bool quadrilateralDeserialized = Client.ClientUtils.TryDeserialize<Quadrilateral>(ref quadrilateralReader, jsonSerializerOptions, out Quadrilateral? quadrilateral);
|
||||
|
||||
string quadrilateralType = default;
|
||||
string? quadrilateralType = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string shapeType = default;
|
||||
string? shapeType = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -143,7 +143,7 @@ namespace Org.OpenAPITools.Model
|
||||
Utf8JsonReader quadrilateralReader = utf8JsonReader;
|
||||
bool quadrilateralDeserialized = Client.ClientUtils.TryDeserialize<Quadrilateral>(ref quadrilateralReader, jsonSerializerOptions, out Quadrilateral? quadrilateral);
|
||||
|
||||
string quadrilateralType = default;
|
||||
string? quadrilateralType = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -111,8 +111,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string specialModelNameProperty = default;
|
||||
long specialPropertyName = default;
|
||||
string? specialModelNameProperty = default;
|
||||
long? specialPropertyName = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new SpecialModelName(specialModelNameProperty, specialPropertyName);
|
||||
return new SpecialModelName(specialModelNameProperty, specialPropertyName.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -111,8 +111,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
long id = default;
|
||||
string name = default;
|
||||
long? id = default;
|
||||
string? name = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -154,7 +154,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Tag(id, name);
|
||||
return new Tag(id.Value, name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string value = default;
|
||||
string? value = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
List<TestCollectionEndingWithWordList> testCollectionEndingWithWordList = default;
|
||||
List<TestCollectionEndingWithWordList>? testCollectionEndingWithWordList = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -177,8 +177,8 @@ namespace Org.OpenAPITools.Model
|
||||
Utf8JsonReader scaleneTriangleReader = utf8JsonReader;
|
||||
bool scaleneTriangleDeserialized = Client.ClientUtils.TryDeserialize<ScaleneTriangle>(ref scaleneTriangleReader, jsonSerializerOptions, out ScaleneTriangle? scaleneTriangle);
|
||||
|
||||
string shapeType = default;
|
||||
string triangleType = default;
|
||||
string? shapeType = default;
|
||||
string? triangleType = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string triangleType = default;
|
||||
string? triangleType = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -206,18 +206,18 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string email = default;
|
||||
string firstName = default;
|
||||
long id = default;
|
||||
string lastName = default;
|
||||
Object objectWithNoDeclaredProps = default;
|
||||
string password = default;
|
||||
string phone = default;
|
||||
int userStatus = default;
|
||||
string username = default;
|
||||
Object anyTypeProp = default;
|
||||
Object anyTypePropNullable = default;
|
||||
Object objectWithNoDeclaredPropsNullable = default;
|
||||
string? email = default;
|
||||
string? firstName = default;
|
||||
long? id = default;
|
||||
string? lastName = default;
|
||||
Object? objectWithNoDeclaredProps = default;
|
||||
string? password = default;
|
||||
string? phone = default;
|
||||
int? userStatus = default;
|
||||
string? username = default;
|
||||
Object? anyTypeProp = default;
|
||||
Object? anyTypePropNullable = default;
|
||||
Object? objectWithNoDeclaredPropsNullable = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -315,7 +315,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new User(email, firstName, id, lastName, objectWithNoDeclaredProps, password, phone, userStatus, username, anyTypeProp, anyTypePropNullable, objectWithNoDeclaredPropsNullable);
|
||||
return new User(email, firstName, id.Value, lastName, objectWithNoDeclaredProps, password, phone, userStatus.Value, username, anyTypeProp, anyTypePropNullable, objectWithNoDeclaredPropsNullable);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -120,9 +120,9 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string className = default;
|
||||
bool hasBaleen = default;
|
||||
bool hasTeeth = default;
|
||||
string? className = default;
|
||||
bool? hasBaleen = default;
|
||||
bool? hasTeeth = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -171,7 +171,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Whale(className, hasBaleen, hasTeeth);
|
||||
return new Whale(className, hasBaleen.Value, hasTeeth.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -172,8 +172,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string className = default;
|
||||
Zebra.TypeEnum type = default;
|
||||
string? className = default;
|
||||
Zebra.TypeEnum? type = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -215,7 +215,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Zebra(className, type);
|
||||
return new Zebra(className, type.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -151,7 +151,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
ZeroBasedEnumClass.ZeroBasedEnumEnum zeroBasedEnum = default;
|
||||
ZeroBasedEnumClass.ZeroBasedEnumEnum? zeroBasedEnum = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -187,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new ZeroBasedEnumClass(zeroBasedEnum);
|
||||
return new ZeroBasedEnumClass(zeroBasedEnum.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -118,7 +118,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
int code = default;
|
||||
int? code = default;
|
||||
string message = default;
|
||||
string type = default;
|
||||
|
||||
@ -168,7 +168,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new ApiResponse(code, message, type);
|
||||
return new ApiResponse(code.Value, message, type);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -103,7 +103,7 @@ namespace Org.OpenAPITools.Model
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string cultivar = default;
|
||||
bool mealy = default;
|
||||
bool? mealy = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -145,7 +145,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new AppleReq(cultivar, mealy);
|
||||
return new AppleReq(cultivar, mealy.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
decimal lengthCm = default;
|
||||
decimal? lengthCm = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -136,7 +136,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Banana(lengthCm);
|
||||
return new Banana(lengthCm.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -102,8 +102,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
decimal lengthCm = default;
|
||||
bool sweet = default;
|
||||
decimal? lengthCm = default;
|
||||
bool? sweet = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -146,7 +146,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new BananaReq(lengthCm, sweet);
|
||||
return new BananaReq(lengthCm.Value, sweet.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
bool declawed = default;
|
||||
bool? declawed = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -136,7 +136,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new CatAllOf(declawed);
|
||||
return new CatAllOf(declawed.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
long id = default;
|
||||
long? id = default;
|
||||
string name = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
@ -152,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Category(id, name);
|
||||
return new Category(id.Value, name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -148,7 +148,7 @@ namespace Org.OpenAPITools.Model
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string name = default;
|
||||
ChildCatAllOf.PetTypeEnum petType = default;
|
||||
ChildCatAllOf.PetTypeEnum? petType = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -190,7 +190,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new ChildCatAllOf(name, petType);
|
||||
return new ChildCatAllOf(name, petType.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -106,7 +106,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
DateTime dateOnlyProperty = default;
|
||||
DateTime? dateOnlyProperty = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -142,7 +142,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new DateOnlyClass(dateOnlyProperty);
|
||||
return new DateOnlyClass(dateOnlyProperty.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -208,7 +208,7 @@ namespace Org.OpenAPITools.Model
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
List<EnumArrays.ArrayEnumEnum> arrayEnum = default;
|
||||
EnumArrays.JustSymbolEnum justSymbol = default;
|
||||
EnumArrays.JustSymbolEnum? justSymbol = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -251,7 +251,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new EnumArrays(arrayEnum, justSymbol);
|
||||
return new EnumArrays(arrayEnum, justSymbol.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -427,14 +427,14 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
EnumTest.EnumIntegerEnum enumInteger = default;
|
||||
EnumTest.EnumIntegerOnlyEnum enumIntegerOnly = default;
|
||||
EnumTest.EnumNumberEnum enumNumber = default;
|
||||
EnumTest.EnumStringEnum enumString = default;
|
||||
EnumTest.EnumStringRequiredEnum enumStringRequired = default;
|
||||
OuterEnumDefaultValue outerEnumDefaultValue = default;
|
||||
OuterEnumInteger outerEnumInteger = default;
|
||||
OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = default;
|
||||
EnumTest.EnumIntegerEnum? enumInteger = default;
|
||||
EnumTest.EnumIntegerOnlyEnum? enumIntegerOnly = default;
|
||||
EnumTest.EnumNumberEnum? enumNumber = default;
|
||||
EnumTest.EnumStringEnum? enumString = default;
|
||||
EnumTest.EnumStringRequiredEnum? enumStringRequired = default;
|
||||
OuterEnumDefaultValue? outerEnumDefaultValue = default;
|
||||
OuterEnumInteger? outerEnumInteger = default;
|
||||
OuterEnumIntegerDefaultValue? outerEnumIntegerDefaultValue = default;
|
||||
OuterEnum? outerEnum = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
@ -524,7 +524,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new EnumTest(enumInteger, enumIntegerOnly, enumNumber, enumString, enumStringRequired, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue, outerEnum);
|
||||
return new EnumTest(enumInteger.Value, enumIntegerOnly.Value, enumNumber.Value, enumString.Value, enumStringRequired.Value, outerEnumDefaultValue.Value, outerEnumInteger.Value, outerEnumIntegerDefaultValue.Value, outerEnum.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -392,23 +392,23 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
System.IO.Stream binary = default;
|
||||
byte[] byteProperty = default;
|
||||
DateTime date = default;
|
||||
DateTime dateTime = default;
|
||||
decimal decimalProperty = default;
|
||||
double doubleProperty = default;
|
||||
float floatProperty = default;
|
||||
int int32 = default;
|
||||
long int64 = default;
|
||||
int integer = default;
|
||||
decimal number = default;
|
||||
DateTime? date = default;
|
||||
DateTime? dateTime = default;
|
||||
decimal? decimalProperty = default;
|
||||
double? doubleProperty = default;
|
||||
float? floatProperty = default;
|
||||
int? int32 = default;
|
||||
long? int64 = default;
|
||||
int? integer = default;
|
||||
decimal? number = default;
|
||||
string password = default;
|
||||
string patternWithBackslash = default;
|
||||
string patternWithDigits = default;
|
||||
string patternWithDigitsAndDelimiter = default;
|
||||
string stringProperty = default;
|
||||
uint unsignedInteger = default;
|
||||
ulong unsignedLong = default;
|
||||
Guid uuid = default;
|
||||
uint? unsignedInteger = default;
|
||||
ulong? unsignedLong = default;
|
||||
Guid? uuid = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -565,7 +565,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new FormatTest(binary, byteProperty, date, dateTime, decimalProperty, doubleProperty, floatProperty, int32, int64, integer, number, password, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger, unsignedLong, uuid);
|
||||
return new FormatTest(binary, byteProperty, date.Value, dateTime.Value, decimalProperty.Value, doubleProperty.Value, floatProperty.Value, int32.Value, int64.Value, integer.Value, number.Value, password, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger.Value, unsignedLong.Value, uuid.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -139,10 +139,10 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
DateTime dateTime = default;
|
||||
DateTime? dateTime = default;
|
||||
Dictionary<string, Animal> map = default;
|
||||
Guid uuid = default;
|
||||
Guid uuidWithPattern = default;
|
||||
Guid? uuid = default;
|
||||
Guid? uuidWithPattern = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -199,7 +199,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern);
|
||||
return new MixedPropertiesAndAdditionalPropertiesClass(dateTime.Value, map, uuid.Value, uuidWithPattern.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -110,7 +110,7 @@ namespace Org.OpenAPITools.Model
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string classProperty = default;
|
||||
int name = default;
|
||||
int? name = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -152,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Model200Response(classProperty, name);
|
||||
return new Model200Response(classProperty, name.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -164,10 +164,10 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
int nameProperty = default;
|
||||
int? nameProperty = default;
|
||||
string property = default;
|
||||
int snakeCase = default;
|
||||
int _123number = default;
|
||||
int? snakeCase = default;
|
||||
int? _123number = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -223,7 +223,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Name(nameProperty, property, snakeCase, _123number);
|
||||
return new Name(nameProperty.Value, property, snakeCase.Value, _123number.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
decimal justNumber = default;
|
||||
decimal? justNumber = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -136,7 +136,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new NumberOnly(justNumber);
|
||||
return new NumberOnly(justNumber.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -132,7 +132,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
List<string> bars = default;
|
||||
DeprecatedObject deprecatedRef = default;
|
||||
decimal id = default;
|
||||
decimal? id = default;
|
||||
string uuid = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
@ -189,7 +189,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid);
|
||||
return new ObjectWithDeprecatedFields(bars, deprecatedRef, id.Value, uuid);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -213,12 +213,12 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
long id = default;
|
||||
long petId = default;
|
||||
int quantity = default;
|
||||
DateTime shipDate = default;
|
||||
Order.StatusEnum status = default;
|
||||
bool complete = default;
|
||||
long? id = default;
|
||||
long? petId = default;
|
||||
int? quantity = default;
|
||||
DateTime? shipDate = default;
|
||||
Order.StatusEnum? status = default;
|
||||
bool? complete = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -289,7 +289,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Order(id, petId, quantity, shipDate, status, complete);
|
||||
return new Order(id.Value, petId.Value, quantity.Value, shipDate.Value, status.Value, complete.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -118,8 +118,8 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
bool myBoolean = default;
|
||||
decimal myNumber = default;
|
||||
bool? myBoolean = default;
|
||||
decimal? myNumber = default;
|
||||
string myString = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
@ -169,7 +169,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new OuterComposite(myBoolean, myNumber, myString);
|
||||
return new OuterComposite(myBoolean.Value, myNumber.Value, myString);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -209,10 +209,10 @@ namespace Org.OpenAPITools.Model
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
Category category = default;
|
||||
long id = default;
|
||||
long? id = default;
|
||||
string name = default;
|
||||
List<string> photoUrls = default;
|
||||
Pet.StatusEnum status = default;
|
||||
Pet.StatusEnum? status = default;
|
||||
List<Tag> tags = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
@ -283,7 +283,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Pet(category, id, name, photoUrls, status, tags);
|
||||
return new Pet(category, id.Value, name, photoUrls, status.Value, tags);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -100,7 +100,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
int returnProperty = default;
|
||||
int? returnProperty = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -136,7 +136,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Return(returnProperty);
|
||||
return new Return(returnProperty.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -110,7 +110,7 @@ namespace Org.OpenAPITools.Model
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string specialModelNameProperty = default;
|
||||
long specialPropertyName = default;
|
||||
long? specialPropertyName = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -152,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new SpecialModelName(specialModelNameProperty, specialPropertyName);
|
||||
return new SpecialModelName(specialModelNameProperty, specialPropertyName.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -109,7 +109,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
long id = default;
|
||||
long? id = default;
|
||||
string name = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
@ -152,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Tag(id, name);
|
||||
return new Tag(id.Value, name);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -206,12 +206,12 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
string email = default;
|
||||
string firstName = default;
|
||||
long id = default;
|
||||
long? id = default;
|
||||
string lastName = default;
|
||||
Object objectWithNoDeclaredProps = default;
|
||||
string password = default;
|
||||
string phone = default;
|
||||
int userStatus = default;
|
||||
int? userStatus = default;
|
||||
string username = default;
|
||||
Object anyTypeProp = default;
|
||||
Object anyTypePropNullable = default;
|
||||
@ -313,7 +313,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new User(email, firstName, id, lastName, objectWithNoDeclaredProps, password, phone, userStatus, username, anyTypeProp, anyTypePropNullable, objectWithNoDeclaredPropsNullable);
|
||||
return new User(email, firstName, id.Value, lastName, objectWithNoDeclaredProps, password, phone, userStatus.Value, username, anyTypeProp, anyTypePropNullable, objectWithNoDeclaredPropsNullable);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -119,8 +119,8 @@ namespace Org.OpenAPITools.Model
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string className = default;
|
||||
bool hasBaleen = default;
|
||||
bool hasTeeth = default;
|
||||
bool? hasBaleen = default;
|
||||
bool? hasTeeth = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -169,7 +169,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Whale(className, hasBaleen, hasTeeth);
|
||||
return new Whale(className, hasBaleen.Value, hasTeeth.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -171,7 +171,7 @@ namespace Org.OpenAPITools.Model
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string className = default;
|
||||
Zebra.TypeEnum type = default;
|
||||
Zebra.TypeEnum? type = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -213,7 +213,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Zebra(className, type);
|
||||
return new Zebra(className, type.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -149,7 +149,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
ZeroBasedEnumClass.ZeroBasedEnumEnum zeroBasedEnum = default;
|
||||
ZeroBasedEnumClass.ZeroBasedEnumEnum? zeroBasedEnum = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -185,7 +185,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new ZeroBasedEnumClass(zeroBasedEnum);
|
||||
return new ZeroBasedEnumClass(zeroBasedEnum.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -90,9 +90,9 @@ namespace Org.OpenAPITools.Model
|
||||
Utf8JsonReader adultAllOfReader = utf8JsonReader;
|
||||
bool adultAllOfDeserialized = Client.ClientUtils.TryDeserialize<AdultAllOf>(ref utf8JsonReader, jsonSerializerOptions, out AdultAllOf? adultAllOf);
|
||||
|
||||
string firstName = default;
|
||||
string lastName = default;
|
||||
string type = default;
|
||||
string? firstName = default;
|
||||
string? lastName = default;
|
||||
string? type = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
List<Child> children = default;
|
||||
List<Child>? children = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
@ -99,10 +99,10 @@ namespace Org.OpenAPITools.Model
|
||||
Utf8JsonReader childAllOfReader = utf8JsonReader;
|
||||
bool childAllOfDeserialized = Client.ClientUtils.TryDeserialize<ChildAllOf>(ref utf8JsonReader, jsonSerializerOptions, out ChildAllOf? childAllOf);
|
||||
|
||||
bool boosterSeat = default;
|
||||
string firstName = default;
|
||||
string lastName = default;
|
||||
string type = default;
|
||||
bool? boosterSeat = default;
|
||||
string? firstName = default;
|
||||
string? lastName = default;
|
||||
string? type = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -147,7 +147,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new Child(childAllOf, boosterSeat, firstName, lastName, type);
|
||||
return new Child(childAllOf, boosterSeat.Value, firstName, lastName, type);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -102,7 +102,7 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
int age = default;
|
||||
int? age = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
@ -138,7 +138,7 @@ namespace Org.OpenAPITools.Model
|
||||
#pragma warning restore CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
return new ChildAllOf(age);
|
||||
return new ChildAllOf(age.Value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -130,9 +130,9 @@ namespace Org.OpenAPITools.Model
|
||||
|
||||
JsonTokenType startingTokenType = utf8JsonReader.TokenType;
|
||||
|
||||
string firstName = default;
|
||||
string lastName = default;
|
||||
string type = default;
|
||||
string? firstName = default;
|
||||
string? lastName = default;
|
||||
string? type = default;
|
||||
|
||||
while (utf8JsonReader.Read())
|
||||
{
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user