forked from loafle/openapi-generator-original
moved null checks (#14980)
This commit is contained in:
parent
3d4f7b3ce0
commit
02b6248510
@ -170,6 +170,21 @@
|
||||
}
|
||||
}
|
||||
|
||||
{{#nonNullableVars}}
|
||||
{{#-first}}
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
{{/-first}}
|
||||
if ({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} == null)
|
||||
throw new ArgumentNullException(nameof({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}), "Property is required for class {{classname}}.");
|
||||
|
||||
{{#-last}}
|
||||
#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'
|
||||
|
||||
{{/-last}}
|
||||
{{/nonNullableVars}}
|
||||
{{#composedSchemas.oneOf}}
|
||||
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}});
|
||||
|
@ -22,21 +22,6 @@
|
||||
[JsonConstructor]
|
||||
{{#readWriteVars}}{{#-first}}public{{/-first}}{{/readWriteVars}}{{^readWriteVars}}internal{{/readWriteVars}} {{classname}}({{#lambda.joinWithComma}}{{{dataType}}}{{#isNullable}}{{nrt?}}{{/isNullable}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{#model.composedSchemas.allOf}}{{^isInherited}}{{{dataType}}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{/isInherited}}{{/model.composedSchemas.allOf}}{{#model.composedSchemas.anyOf}}{{{dataType}}}{{#isNullable}}{{nrt?}}{{/isNullable}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{/model.composedSchemas.anyOf}}{{>ModelSignature}}{{/lambda.joinWithComma}}){{#parent}} : base({{#lambda.joinWithComma}}{{#parentModel.composedSchemas.oneOf}}{{#lambda.camelcase_param}}{{parent}}{{/lambda.camelcase_param}}.{{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} {{/parentModel.composedSchemas.oneOf}}{{>ModelBaseSignature}}{{/lambda.joinWithComma}}){{/parent}}
|
||||
{
|
||||
{{#nonNullableVars}}
|
||||
{{#-first}}
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
{{/-first}}
|
||||
if ({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} == null)
|
||||
throw new ArgumentNullException(nameof({{name}}));
|
||||
|
||||
{{#-last}}
|
||||
#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'
|
||||
|
||||
{{/-last}}
|
||||
{{/nonNullableVars}}
|
||||
{{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} = {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}};
|
||||
{{#composedSchemas.allOf}}
|
||||
{{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} = {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}};
|
||||
@ -70,21 +55,6 @@
|
||||
[JsonConstructor]
|
||||
{{#readWriteVars}}{{#-first}}public{{/-first}}{{/readWriteVars}}{{^readWriteVars}}internal{{/readWriteVars}} {{classname}}({{#lambda.joinWithComma}}{{#composedSchemas.allOf}}{{^isInherited}}{{{dataType}}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{/isInherited}}{{/composedSchemas.allOf}}{{#composedSchemas.anyOf}}{{{dataType}}}{{#isNullable}}{{nrt?}}{{/isNullable}} {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}} {{/composedSchemas.anyOf}}{{>ModelSignature}}{{/lambda.joinWithComma}}){{#parent}} : base({{#lambda.joinWithComma}}{{>ModelBaseSignature}}{{/lambda.joinWithComma}}){{/parent}}
|
||||
{
|
||||
{{#nonNullableVars}}
|
||||
{{#-first}}
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
{{/-first}}
|
||||
if ({{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} == null)
|
||||
throw new ArgumentNullException("{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} is a required property for {{classname}} and cannot be null.");
|
||||
|
||||
{{#-last}}
|
||||
#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'
|
||||
|
||||
{{/-last}}
|
||||
{{/nonNullableVars}}
|
||||
{{#composedSchemas.allOf}}
|
||||
{{^isInherited}}
|
||||
{{#lambda.titlecase}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.titlecase}} = {{#lambda.camelcase_param}}{{baseType}}{{#isArray}}{{{dataFormat}}}{{/isArray}}{{/lambda.camelcase_param}};
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Activity(Dictionary<string, List<ActivityOutputElementRepresentation>> activityOutputs)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (activityOutputs == null)
|
||||
throw new ArgumentNullException("activityOutputs is a required property for Activity and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ActivityOutputs = activityOutputs;
|
||||
}
|
||||
|
||||
@ -134,6 +125,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (activityOutputs == null)
|
||||
throw new ArgumentNullException(nameof(activityOutputs), "Property is required for class Activity.");
|
||||
|
||||
#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 Activity(activityOutputs);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ActivityOutputElementRepresentation(string prop1, Object prop2)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (prop1 == null)
|
||||
throw new ArgumentNullException("prop1 is a required property for ActivityOutputElementRepresentation and cannot be null.");
|
||||
|
||||
if (prop2 == null)
|
||||
throw new ArgumentNullException("prop2 is a required property for ActivityOutputElementRepresentation and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Prop1 = prop1;
|
||||
Prop2 = prop2;
|
||||
}
|
||||
@ -150,6 +138,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (prop1 == null)
|
||||
throw new ArgumentNullException(nameof(prop1), "Property is required for class ActivityOutputElementRepresentation.");
|
||||
|
||||
if (prop2 == null)
|
||||
throw new ArgumentNullException(nameof(prop2), "Property is required for class ActivityOutputElementRepresentation.");
|
||||
|
||||
#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 ActivityOutputElementRepresentation(prop1, prop2);
|
||||
}
|
||||
|
||||
|
@ -44,33 +44,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public AdditionalPropertiesClass(Object emptyMap, Dictionary<string, Dictionary<string, string>> mapOfMapProperty, Dictionary<string, string> mapProperty, Object mapWithUndeclaredPropertiesAnytype1, Object mapWithUndeclaredPropertiesAnytype2, Dictionary<string, Object> mapWithUndeclaredPropertiesAnytype3, Dictionary<string, string> mapWithUndeclaredPropertiesString, Object? anytype1 = default)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mapProperty == null)
|
||||
throw new ArgumentNullException("mapProperty is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (mapOfMapProperty == null)
|
||||
throw new ArgumentNullException("mapOfMapProperty is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype1 == null)
|
||||
throw new ArgumentNullException("mapWithUndeclaredPropertiesAnytype1 is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype2 == null)
|
||||
throw new ArgumentNullException("mapWithUndeclaredPropertiesAnytype2 is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype3 == null)
|
||||
throw new ArgumentNullException("mapWithUndeclaredPropertiesAnytype3 is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (emptyMap == null)
|
||||
throw new ArgumentNullException("emptyMap is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesString == null)
|
||||
throw new ArgumentNullException("mapWithUndeclaredPropertiesString is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
EmptyMap = emptyMap;
|
||||
MapOfMapProperty = mapOfMapProperty;
|
||||
MapProperty = mapProperty;
|
||||
@ -251,6 +224,33 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mapProperty == null)
|
||||
throw new ArgumentNullException(nameof(mapProperty), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (mapOfMapProperty == null)
|
||||
throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype1 == null)
|
||||
throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype2 == null)
|
||||
throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype3 == null)
|
||||
throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (emptyMap == null)
|
||||
throw new ArgumentNullException(nameof(emptyMap), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesString == null)
|
||||
throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
#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 AdditionalPropertiesClass(emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString, anytype1);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Animal(string className, string color = "red")
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException("className is a required property for Animal and cannot be null.");
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException("color is a required property for Animal and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassName = className;
|
||||
Color = color;
|
||||
}
|
||||
@ -159,6 +147,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException(nameof(className), "Property is required for class Animal.");
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException(nameof(color), "Property is required for class Animal.");
|
||||
|
||||
#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 Animal(className, color);
|
||||
}
|
||||
|
||||
|
@ -39,21 +39,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ApiResponse(int code, string message, string type)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (code == null)
|
||||
throw new ArgumentNullException("code is a required property for ApiResponse and cannot be null.");
|
||||
|
||||
if (type == null)
|
||||
throw new ArgumentNullException("type is a required property for ApiResponse and cannot be null.");
|
||||
|
||||
if (message == null)
|
||||
throw new ArgumentNullException("message is a required property for ApiResponse and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Code = code;
|
||||
Message = message;
|
||||
Type = type;
|
||||
@ -166,6 +151,21 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (code == null)
|
||||
throw new ArgumentNullException(nameof(code), "Property is required for class ApiResponse.");
|
||||
|
||||
if (type == null)
|
||||
throw new ArgumentNullException(nameof(type), "Property is required for class ApiResponse.");
|
||||
|
||||
if (message == null)
|
||||
throw new ArgumentNullException(nameof(message), "Property is required for class ApiResponse.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Apple(string cultivar, string origin)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (cultivar == null)
|
||||
throw new ArgumentNullException("cultivar is a required property for Apple and cannot be null.");
|
||||
|
||||
if (origin == null)
|
||||
throw new ArgumentNullException("origin is a required property for Apple and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Cultivar = cultivar;
|
||||
Origin = origin;
|
||||
}
|
||||
@ -163,6 +151,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (cultivar == null)
|
||||
throw new ArgumentNullException(nameof(cultivar), "Property is required for class Apple.");
|
||||
|
||||
if (origin == null)
|
||||
throw new ArgumentNullException(nameof(origin), "Property is required for class Apple.");
|
||||
|
||||
#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 Apple(cultivar, origin);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public AppleReq(string cultivar, bool mealy)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (cultivar == null)
|
||||
throw new ArgumentNullException("cultivar is a required property for AppleReq and cannot be null.");
|
||||
|
||||
if (mealy == null)
|
||||
throw new ArgumentNullException("mealy is a required property for AppleReq and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Cultivar = cultivar;
|
||||
Mealy = mealy;
|
||||
}
|
||||
@ -143,6 +131,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (cultivar == null)
|
||||
throw new ArgumentNullException(nameof(cultivar), "Property is required for class AppleReq.");
|
||||
|
||||
if (mealy == null)
|
||||
throw new ArgumentNullException(nameof(mealy), "Property is required for class AppleReq.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal>> arrayArrayNumber)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayArrayNumber == null)
|
||||
throw new ArgumentNullException("arrayArrayNumber is a required property for ArrayOfArrayOfNumberOnly and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ArrayArrayNumber = arrayArrayNumber;
|
||||
}
|
||||
|
||||
@ -134,6 +125,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayArrayNumber == null)
|
||||
throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is required for class ArrayOfArrayOfNumberOnly.");
|
||||
|
||||
#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 ArrayOfArrayOfNumberOnly(arrayArrayNumber);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ArrayOfNumberOnly(List<decimal> arrayNumber)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayNumber == null)
|
||||
throw new ArgumentNullException("arrayNumber is a required property for ArrayOfNumberOnly and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ArrayNumber = arrayNumber;
|
||||
}
|
||||
|
||||
@ -134,6 +125,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayNumber == null)
|
||||
throw new ArgumentNullException(nameof(arrayNumber), "Property is required for class ArrayOfNumberOnly.");
|
||||
|
||||
#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 ArrayOfNumberOnly(arrayNumber);
|
||||
}
|
||||
|
||||
|
@ -39,21 +39,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ArrayTest(List<List<long>> arrayArrayOfInteger, List<List<ReadOnlyFirst>> arrayArrayOfModel, List<string> arrayOfString)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayOfString == null)
|
||||
throw new ArgumentNullException("arrayOfString is a required property for ArrayTest and cannot be null.");
|
||||
|
||||
if (arrayArrayOfInteger == null)
|
||||
throw new ArgumentNullException("arrayArrayOfInteger is a required property for ArrayTest and cannot be null.");
|
||||
|
||||
if (arrayArrayOfModel == null)
|
||||
throw new ArgumentNullException("arrayArrayOfModel is a required property for ArrayTest and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ArrayArrayOfInteger = arrayArrayOfInteger;
|
||||
ArrayArrayOfModel = arrayArrayOfModel;
|
||||
ArrayOfString = arrayOfString;
|
||||
@ -168,6 +153,21 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayOfString == null)
|
||||
throw new ArgumentNullException(nameof(arrayOfString), "Property is required for class ArrayTest.");
|
||||
|
||||
if (arrayArrayOfInteger == null)
|
||||
throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is required for class ArrayTest.");
|
||||
|
||||
if (arrayArrayOfModel == null)
|
||||
throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is required for class ArrayTest.");
|
||||
|
||||
#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 ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Banana(decimal lengthCm)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (lengthCm == null)
|
||||
throw new ArgumentNullException("lengthCm is a required property for Banana and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
LengthCm = lengthCm;
|
||||
}
|
||||
|
||||
@ -134,6 +125,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (lengthCm == null)
|
||||
throw new ArgumentNullException(nameof(lengthCm), "Property is required for class Banana.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public BananaReq(decimal lengthCm, bool sweet)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (lengthCm == null)
|
||||
throw new ArgumentNullException("lengthCm is a required property for BananaReq and cannot be null.");
|
||||
|
||||
if (sweet == null)
|
||||
throw new ArgumentNullException("sweet is a required property for BananaReq and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
LengthCm = lengthCm;
|
||||
Sweet = sweet;
|
||||
}
|
||||
@ -144,6 +132,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (lengthCm == null)
|
||||
throw new ArgumentNullException(nameof(lengthCm), "Property is required for class BananaReq.");
|
||||
|
||||
if (sweet == null)
|
||||
throw new ArgumentNullException(nameof(sweet), "Property is required for class BananaReq.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public BasquePig(string className)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException("className is a required property for BasquePig and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassName = className;
|
||||
}
|
||||
|
||||
@ -133,6 +124,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException(nameof(className), "Property is required for class BasquePig.");
|
||||
|
||||
#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 BasquePig(className);
|
||||
}
|
||||
|
||||
|
@ -42,30 +42,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Capitalization(string aTTNAME, string capitalCamel, string capitalSnake, string sCAETHFlowPoints, string smallCamel, string smallSnake)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (smallCamel == null)
|
||||
throw new ArgumentNullException("smallCamel is a required property for Capitalization and cannot be null.");
|
||||
|
||||
if (capitalCamel == null)
|
||||
throw new ArgumentNullException("capitalCamel is a required property for Capitalization and cannot be null.");
|
||||
|
||||
if (smallSnake == null)
|
||||
throw new ArgumentNullException("smallSnake is a required property for Capitalization and cannot be null.");
|
||||
|
||||
if (capitalSnake == null)
|
||||
throw new ArgumentNullException("capitalSnake is a required property for Capitalization and cannot be null.");
|
||||
|
||||
if (sCAETHFlowPoints == null)
|
||||
throw new ArgumentNullException("sCAETHFlowPoints is a required property for Capitalization and cannot be null.");
|
||||
|
||||
if (aTTNAME == null)
|
||||
throw new ArgumentNullException("aTTNAME is a required property for Capitalization and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ATT_NAME = aTTNAME;
|
||||
CapitalCamel = capitalCamel;
|
||||
CapitalSnake = capitalSnake;
|
||||
@ -214,6 +190,30 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (smallCamel == null)
|
||||
throw new ArgumentNullException(nameof(smallCamel), "Property is required for class Capitalization.");
|
||||
|
||||
if (capitalCamel == null)
|
||||
throw new ArgumentNullException(nameof(capitalCamel), "Property is required for class Capitalization.");
|
||||
|
||||
if (smallSnake == null)
|
||||
throw new ArgumentNullException(nameof(smallSnake), "Property is required for class Capitalization.");
|
||||
|
||||
if (capitalSnake == null)
|
||||
throw new ArgumentNullException(nameof(capitalSnake), "Property is required for class Capitalization.");
|
||||
|
||||
if (sCAETHFlowPoints == null)
|
||||
throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is required for class Capitalization.");
|
||||
|
||||
if (aTTNAME == null)
|
||||
throw new ArgumentNullException(nameof(aTTNAME), "Property is required for class Capitalization.");
|
||||
|
||||
#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 Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public CatAllOf(bool declawed)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (declawed == null)
|
||||
throw new ArgumentNullException("declawed is a required property for CatAllOf and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Declawed = declawed;
|
||||
}
|
||||
|
||||
@ -134,6 +125,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (declawed == null)
|
||||
throw new ArgumentNullException(nameof(declawed), "Property is required for class CatAllOf.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Category(long id, string name = "default-name")
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException("id is a required property for Category and cannot be null.");
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException("name is a required property for Category and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Id = id;
|
||||
Name = name;
|
||||
}
|
||||
@ -150,6 +138,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException(nameof(id), "Property is required for class Category.");
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException(nameof(name), "Property is required for class Category.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ChildCatAllOf(string name, PetTypeEnum petType = PetTypeEnum.ChildCat)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException("name is a required property for ChildCatAllOf and cannot be null.");
|
||||
|
||||
if (petType == null)
|
||||
throw new ArgumentNullException("petType is a required property for ChildCatAllOf and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Name = name;
|
||||
PetType = petType;
|
||||
}
|
||||
@ -189,6 +177,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException(nameof(name), "Property is required for class ChildCatAllOf.");
|
||||
|
||||
if (petType == null)
|
||||
throw new ArgumentNullException(nameof(petType), "Property is required for class ChildCatAllOf.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ClassModel(string classProperty)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (classProperty == null)
|
||||
throw new ArgumentNullException("classProperty is a required property for ClassModel and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassProperty = classProperty;
|
||||
}
|
||||
|
||||
@ -133,6 +124,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (classProperty == null)
|
||||
throw new ArgumentNullException(nameof(classProperty), "Property is required for class ClassModel.");
|
||||
|
||||
#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 ClassModel(classProperty);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public DanishPig(string className)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException("className is a required property for DanishPig and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassName = className;
|
||||
}
|
||||
|
||||
@ -133,6 +124,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException(nameof(className), "Property is required for class DanishPig.");
|
||||
|
||||
#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 DanishPig(className);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public DateOnlyClass(DateTime dateOnlyProperty)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (dateOnlyProperty == null)
|
||||
throw new ArgumentNullException("dateOnlyProperty is a required property for DateOnlyClass and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
DateOnlyProperty = dateOnlyProperty;
|
||||
}
|
||||
|
||||
@ -140,6 +131,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (dateOnlyProperty == null)
|
||||
throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is required for class DateOnlyClass.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public DeprecatedObject(string name)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException("name is a required property for DeprecatedObject and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Name = name;
|
||||
}
|
||||
|
||||
@ -133,6 +124,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException(nameof(name), "Property is required for class DeprecatedObject.");
|
||||
|
||||
#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 DeprecatedObject(name);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public DogAllOf(string breed)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (breed == null)
|
||||
throw new ArgumentNullException("breed is a required property for DogAllOf and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Breed = breed;
|
||||
}
|
||||
|
||||
@ -133,6 +124,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (breed == null)
|
||||
throw new ArgumentNullException(nameof(breed), "Property is required for class DogAllOf.");
|
||||
|
||||
#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 DogAllOf(breed);
|
||||
}
|
||||
|
||||
|
@ -40,21 +40,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Drawing(Shape mainShape, ShapeOrNull shapeOrNull, List<Shape> shapes, NullableShape? nullableShape = default) : base()
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mainShape == null)
|
||||
throw new ArgumentNullException("mainShape is a required property for Drawing and cannot be null.");
|
||||
|
||||
if (shapeOrNull == null)
|
||||
throw new ArgumentNullException("shapeOrNull is a required property for Drawing and cannot be null.");
|
||||
|
||||
if (shapes == null)
|
||||
throw new ArgumentNullException("shapes is a required property for Drawing and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
MainShape = mainShape;
|
||||
ShapeOrNull = shapeOrNull;
|
||||
Shapes = shapes;
|
||||
@ -176,6 +161,21 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mainShape == null)
|
||||
throw new ArgumentNullException(nameof(mainShape), "Property is required for class Drawing.");
|
||||
|
||||
if (shapeOrNull == null)
|
||||
throw new ArgumentNullException(nameof(shapeOrNull), "Property is required for class Drawing.");
|
||||
|
||||
if (shapes == null)
|
||||
throw new ArgumentNullException(nameof(shapes), "Property is required for class Drawing.");
|
||||
|
||||
#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 Drawing(mainShape, shapeOrNull, shapes, nullableShape);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public EnumArrays(List<EnumArrays.ArrayEnumEnum> arrayEnum, JustSymbolEnum justSymbol)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (justSymbol == null)
|
||||
throw new ArgumentNullException("justSymbol is a required property for EnumArrays and cannot be null.");
|
||||
|
||||
if (arrayEnum == null)
|
||||
throw new ArgumentNullException("arrayEnum is a required property for EnumArrays and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ArrayEnum = arrayEnum;
|
||||
JustSymbol = justSymbol;
|
||||
}
|
||||
@ -251,6 +239,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (justSymbol == null)
|
||||
throw new ArgumentNullException(nameof(justSymbol), "Property is required for class EnumArrays.");
|
||||
|
||||
if (arrayEnum == null)
|
||||
throw new ArgumentNullException(nameof(arrayEnum), "Property is required for class EnumArrays.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -45,36 +45,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public EnumTest(EnumIntegerEnum enumInteger, EnumIntegerOnlyEnum enumIntegerOnly, EnumNumberEnum enumNumber, EnumStringEnum enumString, EnumStringRequiredEnum enumStringRequired, OuterEnumDefaultValue outerEnumDefaultValue, OuterEnumInteger outerEnumInteger, OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue, OuterEnum? outerEnum = default)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (enumString == null)
|
||||
throw new ArgumentNullException("enumString is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (enumStringRequired == null)
|
||||
throw new ArgumentNullException("enumStringRequired is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (enumInteger == null)
|
||||
throw new ArgumentNullException("enumInteger is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (enumIntegerOnly == null)
|
||||
throw new ArgumentNullException("enumIntegerOnly is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (enumNumber == null)
|
||||
throw new ArgumentNullException("enumNumber is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (outerEnumInteger == null)
|
||||
throw new ArgumentNullException("outerEnumInteger is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (outerEnumDefaultValue == null)
|
||||
throw new ArgumentNullException("outerEnumDefaultValue is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (outerEnumIntegerDefaultValue == null)
|
||||
throw new ArgumentNullException("outerEnumIntegerDefaultValue is a required property for EnumTest and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
EnumInteger = enumInteger;
|
||||
EnumIntegerOnly = enumIntegerOnly;
|
||||
EnumNumber = enumNumber;
|
||||
@ -527,6 +497,36 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (enumString == null)
|
||||
throw new ArgumentNullException(nameof(enumString), "Property is required for class EnumTest.");
|
||||
|
||||
if (enumStringRequired == null)
|
||||
throw new ArgumentNullException(nameof(enumStringRequired), "Property is required for class EnumTest.");
|
||||
|
||||
if (enumInteger == null)
|
||||
throw new ArgumentNullException(nameof(enumInteger), "Property is required for class EnumTest.");
|
||||
|
||||
if (enumIntegerOnly == null)
|
||||
throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is required for class EnumTest.");
|
||||
|
||||
if (enumNumber == null)
|
||||
throw new ArgumentNullException(nameof(enumNumber), "Property is required for class EnumTest.");
|
||||
|
||||
if (outerEnumInteger == null)
|
||||
throw new ArgumentNullException(nameof(outerEnumInteger), "Property is required for class EnumTest.");
|
||||
|
||||
if (outerEnumDefaultValue == null)
|
||||
throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is required for class EnumTest.");
|
||||
|
||||
if (outerEnumIntegerDefaultValue == null)
|
||||
throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is required for class EnumTest.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public File(string sourceURI)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (sourceURI == null)
|
||||
throw new ArgumentNullException("sourceURI is a required property for File and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
SourceURI = sourceURI;
|
||||
}
|
||||
|
||||
@ -134,6 +125,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (sourceURI == null)
|
||||
throw new ArgumentNullException(nameof(sourceURI), "Property is required for class File.");
|
||||
|
||||
#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 File(sourceURI);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public FileSchemaTestClass(File file, List<File> files)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (file == null)
|
||||
throw new ArgumentNullException("file is a required property for FileSchemaTestClass and cannot be null.");
|
||||
|
||||
if (files == null)
|
||||
throw new ArgumentNullException("files is a required property for FileSchemaTestClass and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
File = file;
|
||||
Files = files;
|
||||
}
|
||||
@ -151,6 +139,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (file == null)
|
||||
throw new ArgumentNullException(nameof(file), "Property is required for class FileSchemaTestClass.");
|
||||
|
||||
if (files == null)
|
||||
throw new ArgumentNullException(nameof(files), "Property is required for class FileSchemaTestClass.");
|
||||
|
||||
#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 FileSchemaTestClass(file, files);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Foo(string bar = "bar")
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (bar == null)
|
||||
throw new ArgumentNullException("bar is a required property for Foo and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Bar = bar;
|
||||
}
|
||||
|
||||
@ -133,6 +124,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (bar == null)
|
||||
throw new ArgumentNullException(nameof(bar), "Property is required for class Foo.");
|
||||
|
||||
#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 Foo(bar);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public FooGetDefaultResponse(Foo stringProperty)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (stringProperty == null)
|
||||
throw new ArgumentNullException("stringProperty is a required property for FooGetDefaultResponse and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
StringProperty = stringProperty;
|
||||
}
|
||||
|
||||
@ -134,6 +125,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (stringProperty == null)
|
||||
throw new ArgumentNullException(nameof(stringProperty), "Property is required for class FooGetDefaultResponse.");
|
||||
|
||||
#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 FooGetDefaultResponse(stringProperty);
|
||||
}
|
||||
|
||||
|
@ -54,66 +54,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public FormatTest(System.IO.Stream binary, byte[] byteProperty, DateTime date, DateTime dateTime, decimal decimalProperty, double doubleProperty, float floatProperty, int int32, long int64, int integer, decimal number, string password, string patternWithDigits, string patternWithDigitsAndDelimiter, string stringProperty, uint unsignedInteger, ulong unsignedLong, Guid uuid)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (integer == null)
|
||||
throw new ArgumentNullException("integer is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (int32 == null)
|
||||
throw new ArgumentNullException("int32 is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (unsignedInteger == null)
|
||||
throw new ArgumentNullException("unsignedInteger is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (int64 == null)
|
||||
throw new ArgumentNullException("int64 is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (unsignedLong == null)
|
||||
throw new ArgumentNullException("unsignedLong is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (number == null)
|
||||
throw new ArgumentNullException("number is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (floatProperty == null)
|
||||
throw new ArgumentNullException("floatProperty is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (doubleProperty == null)
|
||||
throw new ArgumentNullException("doubleProperty is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (decimalProperty == null)
|
||||
throw new ArgumentNullException("decimalProperty is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (stringProperty == null)
|
||||
throw new ArgumentNullException("stringProperty is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (byteProperty == null)
|
||||
throw new ArgumentNullException("byteProperty is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (binary == null)
|
||||
throw new ArgumentNullException("binary is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (date == null)
|
||||
throw new ArgumentNullException("date is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (dateTime == null)
|
||||
throw new ArgumentNullException("dateTime is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (uuid == null)
|
||||
throw new ArgumentNullException("uuid is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (password == null)
|
||||
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (patternWithDigits == null)
|
||||
throw new ArgumentNullException("patternWithDigits is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (patternWithDigitsAndDelimiter == null)
|
||||
throw new ArgumentNullException("patternWithDigitsAndDelimiter is a required property for FormatTest and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Binary = binary;
|
||||
ByteProperty = byteProperty;
|
||||
Date = date;
|
||||
@ -539,6 +479,66 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (integer == null)
|
||||
throw new ArgumentNullException(nameof(integer), "Property is required for class FormatTest.");
|
||||
|
||||
if (int32 == null)
|
||||
throw new ArgumentNullException(nameof(int32), "Property is required for class FormatTest.");
|
||||
|
||||
if (unsignedInteger == null)
|
||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is required for class FormatTest.");
|
||||
|
||||
if (int64 == null)
|
||||
throw new ArgumentNullException(nameof(int64), "Property is required for class FormatTest.");
|
||||
|
||||
if (unsignedLong == null)
|
||||
throw new ArgumentNullException(nameof(unsignedLong), "Property is required for class FormatTest.");
|
||||
|
||||
if (number == null)
|
||||
throw new ArgumentNullException(nameof(number), "Property is required for class FormatTest.");
|
||||
|
||||
if (floatProperty == null)
|
||||
throw new ArgumentNullException(nameof(floatProperty), "Property is required for class FormatTest.");
|
||||
|
||||
if (doubleProperty == null)
|
||||
throw new ArgumentNullException(nameof(doubleProperty), "Property is required for class FormatTest.");
|
||||
|
||||
if (decimalProperty == null)
|
||||
throw new ArgumentNullException(nameof(decimalProperty), "Property is required for class FormatTest.");
|
||||
|
||||
if (stringProperty == null)
|
||||
throw new ArgumentNullException(nameof(stringProperty), "Property is required for class FormatTest.");
|
||||
|
||||
if (byteProperty == null)
|
||||
throw new ArgumentNullException(nameof(byteProperty), "Property is required for class FormatTest.");
|
||||
|
||||
if (binary == null)
|
||||
throw new ArgumentNullException(nameof(binary), "Property is required for class FormatTest.");
|
||||
|
||||
if (date == null)
|
||||
throw new ArgumentNullException(nameof(date), "Property is required for class FormatTest.");
|
||||
|
||||
if (dateTime == null)
|
||||
throw new ArgumentNullException(nameof(dateTime), "Property is required for class FormatTest.");
|
||||
|
||||
if (uuid == null)
|
||||
throw new ArgumentNullException(nameof(uuid), "Property is required for class FormatTest.");
|
||||
|
||||
if (password == null)
|
||||
throw new ArgumentNullException(nameof(password), "Property is required for class FormatTest.");
|
||||
|
||||
if (patternWithDigits == null)
|
||||
throw new ArgumentNullException(nameof(patternWithDigits), "Property is required for class FormatTest.");
|
||||
|
||||
if (patternWithDigitsAndDelimiter == null)
|
||||
throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is required for class FormatTest.");
|
||||
|
||||
#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, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger, unsignedLong, uuid);
|
||||
}
|
||||
|
||||
|
@ -38,15 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Fruit(Apple? apple, string color)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException(nameof(Color));
|
||||
|
||||
#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'
|
||||
|
||||
Apple = apple;
|
||||
Color = color;
|
||||
}
|
||||
@ -59,15 +50,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Fruit(Banana banana, string color)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException(nameof(Color));
|
||||
|
||||
#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'
|
||||
|
||||
Banana = banana;
|
||||
Color = color;
|
||||
}
|
||||
@ -165,6 +147,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException(nameof(color), "Property is required for class Fruit.");
|
||||
|
||||
#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'
|
||||
|
||||
if (appleDeserialized)
|
||||
return new Fruit(apple, color);
|
||||
|
||||
|
@ -39,15 +39,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public GmFruit(Apple? apple, Banana banana, string color)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException("color is a required property for GmFruit and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Apple = Apple;
|
||||
Banana = Banana;
|
||||
Color = color;
|
||||
@ -146,6 +137,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException(nameof(color), "Property is required for class GmFruit.");
|
||||
|
||||
#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 GmFruit(apple, banana, color);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public GrandparentAnimal(string petType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (petType == null)
|
||||
throw new ArgumentNullException("petType is a required property for GrandparentAnimal and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
PetType = petType;
|
||||
}
|
||||
|
||||
@ -143,6 +134,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (petType == null)
|
||||
throw new ArgumentNullException(nameof(petType), "Property is required for class GrandparentAnimal.");
|
||||
|
||||
#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 GrandparentAnimal(petType);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
internal HasOnlyReadOnly(string bar, string foo)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (bar == null)
|
||||
throw new ArgumentNullException("bar is a required property for HasOnlyReadOnly and cannot be null.");
|
||||
|
||||
if (foo == null)
|
||||
throw new ArgumentNullException("foo is a required property for HasOnlyReadOnly and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Bar = bar;
|
||||
Foo = foo;
|
||||
}
|
||||
@ -186,6 +174,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (bar == null)
|
||||
throw new ArgumentNullException(nameof(bar), "Property is required for class HasOnlyReadOnly.");
|
||||
|
||||
if (foo == null)
|
||||
throw new ArgumentNullException(nameof(foo), "Property is required for class HasOnlyReadOnly.");
|
||||
|
||||
#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 HasOnlyReadOnly(bar, foo);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public List(string _123list)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (_123list == null)
|
||||
throw new ArgumentNullException("_123list is a required property for List and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
_123List = _123list;
|
||||
}
|
||||
|
||||
@ -133,6 +124,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (_123list == null)
|
||||
throw new ArgumentNullException(nameof(_123list), "Property is required for class List.");
|
||||
|
||||
#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 List(_123list);
|
||||
}
|
||||
|
||||
|
@ -40,24 +40,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public MapTest(Dictionary<string, bool> directMap, Dictionary<string, bool> indirectMap, Dictionary<string, Dictionary<string, string>> mapMapOfString, Dictionary<string, MapTest.InnerEnum> mapOfEnumString)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mapMapOfString == null)
|
||||
throw new ArgumentNullException("mapMapOfString is a required property for MapTest and cannot be null.");
|
||||
|
||||
if (mapOfEnumString == null)
|
||||
throw new ArgumentNullException("mapOfEnumString is a required property for MapTest and cannot be null.");
|
||||
|
||||
if (directMap == null)
|
||||
throw new ArgumentNullException("directMap is a required property for MapTest and cannot be null.");
|
||||
|
||||
if (indirectMap == null)
|
||||
throw new ArgumentNullException("indirectMap is a required property for MapTest and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
DirectMap = directMap;
|
||||
IndirectMap = indirectMap;
|
||||
MapMapOfString = mapMapOfString;
|
||||
@ -235,6 +217,24 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mapMapOfString == null)
|
||||
throw new ArgumentNullException(nameof(mapMapOfString), "Property is required for class MapTest.");
|
||||
|
||||
if (mapOfEnumString == null)
|
||||
throw new ArgumentNullException(nameof(mapOfEnumString), "Property is required for class MapTest.");
|
||||
|
||||
if (directMap == null)
|
||||
throw new ArgumentNullException(nameof(directMap), "Property is required for class MapTest.");
|
||||
|
||||
if (indirectMap == null)
|
||||
throw new ArgumentNullException(nameof(indirectMap), "Property is required for class MapTest.");
|
||||
|
||||
#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 MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString);
|
||||
}
|
||||
|
||||
|
@ -40,24 +40,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(DateTime dateTime, Dictionary<string, Animal> map, Guid uuid, Guid uuidWithPattern)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (uuidWithPattern == null)
|
||||
throw new ArgumentNullException("uuidWithPattern is a required property for MixedPropertiesAndAdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (uuid == null)
|
||||
throw new ArgumentNullException("uuid is a required property for MixedPropertiesAndAdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (dateTime == null)
|
||||
throw new ArgumentNullException("dateTime is a required property for MixedPropertiesAndAdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (map == null)
|
||||
throw new ArgumentNullException("map is a required property for MixedPropertiesAndAdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
DateTime = dateTime;
|
||||
Map = map;
|
||||
Uuid = uuid;
|
||||
@ -197,6 +179,24 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (uuidWithPattern == null)
|
||||
throw new ArgumentNullException(nameof(uuidWithPattern), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass.");
|
||||
|
||||
if (uuid == null)
|
||||
throw new ArgumentNullException(nameof(uuid), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass.");
|
||||
|
||||
if (dateTime == null)
|
||||
throw new ArgumentNullException(nameof(dateTime), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass.");
|
||||
|
||||
if (map == null)
|
||||
throw new ArgumentNullException(nameof(map), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Model200Response(string classProperty, int name)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException("name is a required property for Model200Response and cannot be null.");
|
||||
|
||||
if (classProperty == null)
|
||||
throw new ArgumentNullException("classProperty is a required property for Model200Response and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassProperty = classProperty;
|
||||
Name = name;
|
||||
}
|
||||
@ -150,6 +138,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException(nameof(name), "Property is required for class Model200Response.");
|
||||
|
||||
if (classProperty == null)
|
||||
throw new ArgumentNullException(nameof(classProperty), "Property is required for class Model200Response.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ModelClient(string clientProperty)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (clientProperty == null)
|
||||
throw new ArgumentNullException("clientProperty is a required property for ModelClient and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
_ClientProperty = clientProperty;
|
||||
}
|
||||
|
||||
@ -133,6 +124,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (clientProperty == null)
|
||||
throw new ArgumentNullException(nameof(clientProperty), "Property is required for class ModelClient.");
|
||||
|
||||
#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 ModelClient(clientProperty);
|
||||
}
|
||||
|
||||
|
@ -40,24 +40,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Name(int nameProperty, string property, int snakeCase, int _123number)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (nameProperty == null)
|
||||
throw new ArgumentNullException("nameProperty is a required property for Name and cannot be null.");
|
||||
|
||||
if (snakeCase == null)
|
||||
throw new ArgumentNullException("snakeCase is a required property for Name and cannot be null.");
|
||||
|
||||
if (property == null)
|
||||
throw new ArgumentNullException("property is a required property for Name and cannot be null.");
|
||||
|
||||
if (_123number == null)
|
||||
throw new ArgumentNullException("_123number is a required property for Name and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
NameProperty = nameProperty;
|
||||
Property = property;
|
||||
SnakeCase = snakeCase;
|
||||
@ -221,6 +203,24 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (nameProperty == null)
|
||||
throw new ArgumentNullException(nameof(nameProperty), "Property is required for class Name.");
|
||||
|
||||
if (snakeCase == null)
|
||||
throw new ArgumentNullException(nameof(snakeCase), "Property is required for class Name.");
|
||||
|
||||
if (property == null)
|
||||
throw new ArgumentNullException(nameof(property), "Property is required for class Name.");
|
||||
|
||||
if (_123number == null)
|
||||
throw new ArgumentNullException(nameof(_123number), "Property is required for class Name.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -48,18 +48,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public NullableClass(List<Object> arrayItemsNullable, Dictionary<string, Object> objectItemsNullable, 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) : base()
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayItemsNullable == null)
|
||||
throw new ArgumentNullException("arrayItemsNullable is a required property for NullableClass and cannot be null.");
|
||||
|
||||
if (objectItemsNullable == null)
|
||||
throw new ArgumentNullException("objectItemsNullable is a required property for NullableClass and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ArrayItemsNullable = arrayItemsNullable;
|
||||
ObjectItemsNullable = objectItemsNullable;
|
||||
ArrayAndItemsNullableProp = arrayAndItemsNullableProp;
|
||||
@ -294,6 +282,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayItemsNullable == null)
|
||||
throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is required for class NullableClass.");
|
||||
|
||||
if (objectItemsNullable == null)
|
||||
throw new ArgumentNullException(nameof(objectItemsNullable), "Property is required for class NullableClass.");
|
||||
|
||||
#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 NullableClass(arrayItemsNullable, objectItemsNullable, arrayAndItemsNullableProp, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectNullableProp, stringProp);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public NumberOnly(decimal justNumber)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (justNumber == null)
|
||||
throw new ArgumentNullException("justNumber is a required property for NumberOnly and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
JustNumber = justNumber;
|
||||
}
|
||||
|
||||
@ -134,6 +125,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (justNumber == null)
|
||||
throw new ArgumentNullException(nameof(justNumber), "Property is required for class NumberOnly.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -40,24 +40,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ObjectWithDeprecatedFields(List<string> bars, DeprecatedObject deprecatedRef, decimal id, string uuid)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (uuid == null)
|
||||
throw new ArgumentNullException("uuid is a required property for ObjectWithDeprecatedFields and cannot be null.");
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException("id is a required property for ObjectWithDeprecatedFields and cannot be null.");
|
||||
|
||||
if (deprecatedRef == null)
|
||||
throw new ArgumentNullException("deprecatedRef is a required property for ObjectWithDeprecatedFields and cannot be null.");
|
||||
|
||||
if (bars == null)
|
||||
throw new ArgumentNullException("bars is a required property for ObjectWithDeprecatedFields and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Bars = bars;
|
||||
DeprecatedRef = deprecatedRef;
|
||||
Id = id;
|
||||
@ -187,6 +169,24 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (uuid == null)
|
||||
throw new ArgumentNullException(nameof(uuid), "Property is required for class ObjectWithDeprecatedFields.");
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException(nameof(id), "Property is required for class ObjectWithDeprecatedFields.");
|
||||
|
||||
if (deprecatedRef == null)
|
||||
throw new ArgumentNullException(nameof(deprecatedRef), "Property is required for class ObjectWithDeprecatedFields.");
|
||||
|
||||
if (bars == null)
|
||||
throw new ArgumentNullException(nameof(bars), "Property is required for class ObjectWithDeprecatedFields.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -42,30 +42,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Order(long id, long petId, int quantity, DateTime shipDate, StatusEnum status, bool complete = false)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException("id is a required property for Order and cannot be null.");
|
||||
|
||||
if (petId == null)
|
||||
throw new ArgumentNullException("petId is a required property for Order and cannot be null.");
|
||||
|
||||
if (quantity == null)
|
||||
throw new ArgumentNullException("quantity is a required property for Order and cannot be null.");
|
||||
|
||||
if (shipDate == null)
|
||||
throw new ArgumentNullException("shipDate is a required property for Order and cannot be null.");
|
||||
|
||||
if (status == null)
|
||||
throw new ArgumentNullException("status is a required property for Order and cannot be null.");
|
||||
|
||||
if (complete == null)
|
||||
throw new ArgumentNullException("complete is a required property for Order and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Id = id;
|
||||
PetId = petId;
|
||||
Quantity = quantity;
|
||||
@ -288,6 +264,30 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException(nameof(id), "Property is required for class Order.");
|
||||
|
||||
if (petId == null)
|
||||
throw new ArgumentNullException(nameof(petId), "Property is required for class Order.");
|
||||
|
||||
if (quantity == null)
|
||||
throw new ArgumentNullException(nameof(quantity), "Property is required for class Order.");
|
||||
|
||||
if (shipDate == null)
|
||||
throw new ArgumentNullException(nameof(shipDate), "Property is required for class Order.");
|
||||
|
||||
if (status == null)
|
||||
throw new ArgumentNullException(nameof(status), "Property is required for class Order.");
|
||||
|
||||
if (complete == null)
|
||||
throw new ArgumentNullException(nameof(complete), "Property is required for class Order.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -39,21 +39,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public OuterComposite(bool myBoolean, decimal myNumber, string myString)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (myNumber == null)
|
||||
throw new ArgumentNullException("myNumber is a required property for OuterComposite and cannot be null.");
|
||||
|
||||
if (myString == null)
|
||||
throw new ArgumentNullException("myString is a required property for OuterComposite and cannot be null.");
|
||||
|
||||
if (myBoolean == null)
|
||||
throw new ArgumentNullException("myBoolean is a required property for OuterComposite and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
MyBoolean = myBoolean;
|
||||
MyNumber = myNumber;
|
||||
MyString = myString;
|
||||
@ -167,6 +152,21 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (myNumber == null)
|
||||
throw new ArgumentNullException(nameof(myNumber), "Property is required for class OuterComposite.");
|
||||
|
||||
if (myString == null)
|
||||
throw new ArgumentNullException(nameof(myString), "Property is required for class OuterComposite.");
|
||||
|
||||
if (myBoolean == null)
|
||||
throw new ArgumentNullException(nameof(myBoolean), "Property is required for class OuterComposite.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -42,30 +42,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Pet(Category category, long id, string name, List<string> photoUrls, StatusEnum status, List<Tag> tags)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException("id is a required property for Pet and cannot be null.");
|
||||
|
||||
if (category == null)
|
||||
throw new ArgumentNullException("category is a required property for Pet and cannot be null.");
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException("name is a required property for Pet and cannot be null.");
|
||||
|
||||
if (photoUrls == null)
|
||||
throw new ArgumentNullException("photoUrls is a required property for Pet and cannot be null.");
|
||||
|
||||
if (tags == null)
|
||||
throw new ArgumentNullException("tags is a required property for Pet and cannot be null.");
|
||||
|
||||
if (status == null)
|
||||
throw new ArgumentNullException("status is a required property for Pet and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Category = category;
|
||||
Id = id;
|
||||
Name = name;
|
||||
@ -282,6 +258,30 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException(nameof(id), "Property is required for class Pet.");
|
||||
|
||||
if (category == null)
|
||||
throw new ArgumentNullException(nameof(category), "Property is required for class Pet.");
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException(nameof(name), "Property is required for class Pet.");
|
||||
|
||||
if (photoUrls == null)
|
||||
throw new ArgumentNullException(nameof(photoUrls), "Property is required for class Pet.");
|
||||
|
||||
if (tags == null)
|
||||
throw new ArgumentNullException(nameof(tags), "Property is required for class Pet.");
|
||||
|
||||
if (status == null)
|
||||
throw new ArgumentNullException(nameof(status), "Property is required for class Pet.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public QuadrilateralInterface(string quadrilateralType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (quadrilateralType == null)
|
||||
throw new ArgumentNullException("quadrilateralType is a required property for QuadrilateralInterface and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
QuadrilateralType = quadrilateralType;
|
||||
}
|
||||
|
||||
@ -133,6 +124,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (quadrilateralType == null)
|
||||
throw new ArgumentNullException(nameof(quadrilateralType), "Property is required for class QuadrilateralInterface.");
|
||||
|
||||
#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 QuadrilateralInterface(quadrilateralType);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ReadOnlyFirst(string bar, string baz)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (bar == null)
|
||||
throw new ArgumentNullException("bar is a required property for ReadOnlyFirst and cannot be null.");
|
||||
|
||||
if (baz == null)
|
||||
throw new ArgumentNullException("baz is a required property for ReadOnlyFirst and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Bar = bar;
|
||||
Baz = baz;
|
||||
}
|
||||
@ -185,6 +173,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (bar == null)
|
||||
throw new ArgumentNullException(nameof(bar), "Property is required for class ReadOnlyFirst.");
|
||||
|
||||
if (baz == null)
|
||||
throw new ArgumentNullException(nameof(baz), "Property is required for class ReadOnlyFirst.");
|
||||
|
||||
#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 ReadOnlyFirst(bar, baz);
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Return(int returnProperty)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (returnProperty == null)
|
||||
throw new ArgumentNullException("returnProperty is a required property for Return and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ReturnProperty = returnProperty;
|
||||
}
|
||||
|
||||
@ -134,6 +125,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (returnProperty == null)
|
||||
throw new ArgumentNullException(nameof(returnProperty), "Property is required for class Return.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -38,15 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Shape(Triangle triangle, string quadrilateralType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (quadrilateralType == null)
|
||||
throw new ArgumentNullException(nameof(QuadrilateralType));
|
||||
|
||||
#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'
|
||||
|
||||
Triangle = triangle;
|
||||
QuadrilateralType = quadrilateralType;
|
||||
}
|
||||
@ -59,15 +50,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Shape(Quadrilateral quadrilateral, string quadrilateralType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (quadrilateralType == null)
|
||||
throw new ArgumentNullException(nameof(QuadrilateralType));
|
||||
|
||||
#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'
|
||||
|
||||
Quadrilateral = quadrilateral;
|
||||
QuadrilateralType = quadrilateralType;
|
||||
}
|
||||
@ -182,6 +164,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (quadrilateralType == null)
|
||||
throw new ArgumentNullException(nameof(quadrilateralType), "Property is required for class Shape.");
|
||||
|
||||
#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'
|
||||
|
||||
if (triangleDeserialized)
|
||||
return new Shape(triangle, quadrilateralType);
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ShapeInterface(string shapeType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (shapeType == null)
|
||||
throw new ArgumentNullException("shapeType is a required property for ShapeInterface and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ShapeType = shapeType;
|
||||
}
|
||||
|
||||
@ -133,6 +124,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (shapeType == null)
|
||||
throw new ArgumentNullException(nameof(shapeType), "Property is required for class ShapeInterface.");
|
||||
|
||||
#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 ShapeInterface(shapeType);
|
||||
}
|
||||
|
||||
|
@ -38,15 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ShapeOrNull(Triangle triangle, string quadrilateralType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (quadrilateralType == null)
|
||||
throw new ArgumentNullException(nameof(QuadrilateralType));
|
||||
|
||||
#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'
|
||||
|
||||
Triangle = triangle;
|
||||
QuadrilateralType = quadrilateralType;
|
||||
}
|
||||
@ -59,15 +50,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ShapeOrNull(Quadrilateral quadrilateral, string quadrilateralType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (quadrilateralType == null)
|
||||
throw new ArgumentNullException(nameof(QuadrilateralType));
|
||||
|
||||
#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'
|
||||
|
||||
Quadrilateral = quadrilateral;
|
||||
QuadrilateralType = quadrilateralType;
|
||||
}
|
||||
@ -182,6 +164,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (quadrilateralType == null)
|
||||
throw new ArgumentNullException(nameof(quadrilateralType), "Property is required for class ShapeOrNull.");
|
||||
|
||||
#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'
|
||||
|
||||
if (triangleDeserialized)
|
||||
return new ShapeOrNull(triangle, quadrilateralType);
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public SpecialModelName(string specialModelNameProperty, long specialPropertyName)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (specialPropertyName == null)
|
||||
throw new ArgumentNullException("specialPropertyName is a required property for SpecialModelName and cannot be null.");
|
||||
|
||||
if (specialModelNameProperty == null)
|
||||
throw new ArgumentNullException("specialModelNameProperty is a required property for SpecialModelName and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
SpecialModelNameProperty = specialModelNameProperty;
|
||||
SpecialPropertyName = specialPropertyName;
|
||||
}
|
||||
@ -150,6 +138,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (specialPropertyName == null)
|
||||
throw new ArgumentNullException(nameof(specialPropertyName), "Property is required for class SpecialModelName.");
|
||||
|
||||
if (specialModelNameProperty == null)
|
||||
throw new ArgumentNullException(nameof(specialModelNameProperty), "Property is required for class SpecialModelName.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Tag(long id, string name)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException("id is a required property for Tag and cannot be null.");
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException("name is a required property for Tag and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Id = id;
|
||||
Name = name;
|
||||
}
|
||||
@ -150,6 +138,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException(nameof(id), "Property is required for class Tag.");
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException(nameof(name), "Property is required for class Tag.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -39,18 +39,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Triangle(EquilateralTriangle equilateralTriangle, string shapeType, string triangleType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (shapeType == null)
|
||||
throw new ArgumentNullException(nameof(ShapeType));
|
||||
|
||||
if (triangleType == null)
|
||||
throw new ArgumentNullException(nameof(TriangleType));
|
||||
|
||||
#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'
|
||||
|
||||
EquilateralTriangle = equilateralTriangle;
|
||||
ShapeType = shapeType;
|
||||
TriangleType = triangleType;
|
||||
@ -65,18 +53,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Triangle(IsoscelesTriangle isoscelesTriangle, string shapeType, string triangleType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (shapeType == null)
|
||||
throw new ArgumentNullException(nameof(ShapeType));
|
||||
|
||||
if (triangleType == null)
|
||||
throw new ArgumentNullException(nameof(TriangleType));
|
||||
|
||||
#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'
|
||||
|
||||
IsoscelesTriangle = isoscelesTriangle;
|
||||
ShapeType = shapeType;
|
||||
TriangleType = triangleType;
|
||||
@ -91,18 +67,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Triangle(ScaleneTriangle scaleneTriangle, string shapeType, string triangleType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (shapeType == null)
|
||||
throw new ArgumentNullException(nameof(ShapeType));
|
||||
|
||||
if (triangleType == null)
|
||||
throw new ArgumentNullException(nameof(TriangleType));
|
||||
|
||||
#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'
|
||||
|
||||
ScaleneTriangle = scaleneTriangle;
|
||||
ShapeType = shapeType;
|
||||
TriangleType = triangleType;
|
||||
@ -237,6 +201,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (shapeType == null)
|
||||
throw new ArgumentNullException(nameof(shapeType), "Property is required for class Triangle.");
|
||||
|
||||
if (triangleType == null)
|
||||
throw new ArgumentNullException(nameof(triangleType), "Property is required for class Triangle.");
|
||||
|
||||
#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'
|
||||
|
||||
if (equilateralTriangleDeserialized)
|
||||
return new Triangle(equilateralTriangle, shapeType, triangleType);
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public TriangleInterface(string triangleType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (triangleType == null)
|
||||
throw new ArgumentNullException("triangleType is a required property for TriangleInterface and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
TriangleType = triangleType;
|
||||
}
|
||||
|
||||
@ -133,6 +124,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (triangleType == null)
|
||||
throw new ArgumentNullException(nameof(triangleType), "Property is required for class TriangleInterface.");
|
||||
|
||||
#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 TriangleInterface(triangleType);
|
||||
}
|
||||
|
||||
|
@ -48,39 +48,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public User(string email, string firstName, long id, string lastName, Object objectWithNoDeclaredProps, string password, string phone, int userStatus, string username, Object? anyTypeProp = default, Object? anyTypePropNullable = default, Object? objectWithNoDeclaredPropsNullable = default)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException("id is a required property for User and cannot be null.");
|
||||
|
||||
if (username == null)
|
||||
throw new ArgumentNullException("username is a required property for User and cannot be null.");
|
||||
|
||||
if (firstName == null)
|
||||
throw new ArgumentNullException("firstName is a required property for User and cannot be null.");
|
||||
|
||||
if (lastName == null)
|
||||
throw new ArgumentNullException("lastName is a required property for User and cannot be null.");
|
||||
|
||||
if (email == null)
|
||||
throw new ArgumentNullException("email is a required property for User and cannot be null.");
|
||||
|
||||
if (password == null)
|
||||
throw new ArgumentNullException("password is a required property for User and cannot be null.");
|
||||
|
||||
if (phone == null)
|
||||
throw new ArgumentNullException("phone is a required property for User and cannot be null.");
|
||||
|
||||
if (userStatus == null)
|
||||
throw new ArgumentNullException("userStatus is a required property for User and cannot be null.");
|
||||
|
||||
if (objectWithNoDeclaredProps == null)
|
||||
throw new ArgumentNullException("objectWithNoDeclaredProps is a required property for User and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Email = email;
|
||||
FirstName = firstName;
|
||||
Id = id;
|
||||
@ -311,6 +278,39 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException(nameof(id), "Property is required for class User.");
|
||||
|
||||
if (username == null)
|
||||
throw new ArgumentNullException(nameof(username), "Property is required for class User.");
|
||||
|
||||
if (firstName == null)
|
||||
throw new ArgumentNullException(nameof(firstName), "Property is required for class User.");
|
||||
|
||||
if (lastName == null)
|
||||
throw new ArgumentNullException(nameof(lastName), "Property is required for class User.");
|
||||
|
||||
if (email == null)
|
||||
throw new ArgumentNullException(nameof(email), "Property is required for class User.");
|
||||
|
||||
if (password == null)
|
||||
throw new ArgumentNullException(nameof(password), "Property is required for class User.");
|
||||
|
||||
if (phone == null)
|
||||
throw new ArgumentNullException(nameof(phone), "Property is required for class User.");
|
||||
|
||||
if (userStatus == null)
|
||||
throw new ArgumentNullException(nameof(userStatus), "Property is required for class User.");
|
||||
|
||||
if (objectWithNoDeclaredProps == null)
|
||||
throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is required for class User.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -39,21 +39,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Whale(string className, bool hasBaleen, bool hasTeeth)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (hasBaleen == null)
|
||||
throw new ArgumentNullException("hasBaleen is a required property for Whale and cannot be null.");
|
||||
|
||||
if (hasTeeth == null)
|
||||
throw new ArgumentNullException("hasTeeth is a required property for Whale and cannot be null.");
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException("className is a required property for Whale and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassName = className;
|
||||
HasBaleen = hasBaleen;
|
||||
HasTeeth = hasTeeth;
|
||||
@ -167,6 +152,21 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (hasBaleen == null)
|
||||
throw new ArgumentNullException(nameof(hasBaleen), "Property is required for class Whale.");
|
||||
|
||||
if (hasTeeth == null)
|
||||
throw new ArgumentNullException(nameof(hasTeeth), "Property is required for class Whale.");
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException(nameof(className), "Property is required for class Whale.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Zebra(string className, TypeEnum type) : base()
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (type == null)
|
||||
throw new ArgumentNullException("type is a required property for Zebra and cannot be null.");
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException("className is a required property for Zebra and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassName = className;
|
||||
Type = type;
|
||||
}
|
||||
@ -212,6 +200,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (type == null)
|
||||
throw new ArgumentNullException(nameof(type), "Property is required for class Zebra.");
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException(nameof(className), "Property is required for class Zebra.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Activity(Dictionary<string, List<ActivityOutputElementRepresentation>> activityOutputs)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (activityOutputs == null)
|
||||
throw new ArgumentNullException("activityOutputs is a required property for Activity and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ActivityOutputs = activityOutputs;
|
||||
}
|
||||
|
||||
@ -132,6 +123,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (activityOutputs == null)
|
||||
throw new ArgumentNullException(nameof(activityOutputs), "Property is required for class Activity.");
|
||||
|
||||
#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 Activity(activityOutputs);
|
||||
}
|
||||
|
||||
|
@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ActivityOutputElementRepresentation(string prop1, Object prop2)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (prop1 == null)
|
||||
throw new ArgumentNullException("prop1 is a required property for ActivityOutputElementRepresentation and cannot be null.");
|
||||
|
||||
if (prop2 == null)
|
||||
throw new ArgumentNullException("prop2 is a required property for ActivityOutputElementRepresentation and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Prop1 = prop1;
|
||||
Prop2 = prop2;
|
||||
}
|
||||
@ -148,6 +136,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (prop1 == null)
|
||||
throw new ArgumentNullException(nameof(prop1), "Property is required for class ActivityOutputElementRepresentation.");
|
||||
|
||||
if (prop2 == null)
|
||||
throw new ArgumentNullException(nameof(prop2), "Property is required for class ActivityOutputElementRepresentation.");
|
||||
|
||||
#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 ActivityOutputElementRepresentation(prop1, prop2);
|
||||
}
|
||||
|
||||
|
@ -42,33 +42,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public AdditionalPropertiesClass(Object emptyMap, Dictionary<string, Dictionary<string, string>> mapOfMapProperty, Dictionary<string, string> mapProperty, Object mapWithUndeclaredPropertiesAnytype1, Object mapWithUndeclaredPropertiesAnytype2, Dictionary<string, Object> mapWithUndeclaredPropertiesAnytype3, Dictionary<string, string> mapWithUndeclaredPropertiesString, Object anytype1 = default)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mapProperty == null)
|
||||
throw new ArgumentNullException("mapProperty is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (mapOfMapProperty == null)
|
||||
throw new ArgumentNullException("mapOfMapProperty is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype1 == null)
|
||||
throw new ArgumentNullException("mapWithUndeclaredPropertiesAnytype1 is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype2 == null)
|
||||
throw new ArgumentNullException("mapWithUndeclaredPropertiesAnytype2 is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype3 == null)
|
||||
throw new ArgumentNullException("mapWithUndeclaredPropertiesAnytype3 is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (emptyMap == null)
|
||||
throw new ArgumentNullException("emptyMap is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesString == null)
|
||||
throw new ArgumentNullException("mapWithUndeclaredPropertiesString is a required property for AdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
EmptyMap = emptyMap;
|
||||
MapOfMapProperty = mapOfMapProperty;
|
||||
MapProperty = mapProperty;
|
||||
@ -249,6 +222,33 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mapProperty == null)
|
||||
throw new ArgumentNullException(nameof(mapProperty), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (mapOfMapProperty == null)
|
||||
throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype1 == null)
|
||||
throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype2 == null)
|
||||
throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesAnytype3 == null)
|
||||
throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (emptyMap == null)
|
||||
throw new ArgumentNullException(nameof(emptyMap), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
if (mapWithUndeclaredPropertiesString == null)
|
||||
throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is required for class AdditionalPropertiesClass.");
|
||||
|
||||
#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 AdditionalPropertiesClass(emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString, anytype1);
|
||||
}
|
||||
|
||||
|
@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Animal(string className, string color = "red")
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException("className is a required property for Animal and cannot be null.");
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException("color is a required property for Animal and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassName = className;
|
||||
Color = color;
|
||||
}
|
||||
@ -157,6 +145,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException(nameof(className), "Property is required for class Animal.");
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException(nameof(color), "Property is required for class Animal.");
|
||||
|
||||
#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 Animal(className, color);
|
||||
}
|
||||
|
||||
|
@ -37,21 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ApiResponse(int code, string message, string type)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (code == null)
|
||||
throw new ArgumentNullException("code is a required property for ApiResponse and cannot be null.");
|
||||
|
||||
if (type == null)
|
||||
throw new ArgumentNullException("type is a required property for ApiResponse and cannot be null.");
|
||||
|
||||
if (message == null)
|
||||
throw new ArgumentNullException("message is a required property for ApiResponse and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Code = code;
|
||||
Message = message;
|
||||
Type = type;
|
||||
@ -164,6 +149,21 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (code == null)
|
||||
throw new ArgumentNullException(nameof(code), "Property is required for class ApiResponse.");
|
||||
|
||||
if (type == null)
|
||||
throw new ArgumentNullException(nameof(type), "Property is required for class ApiResponse.");
|
||||
|
||||
if (message == null)
|
||||
throw new ArgumentNullException(nameof(message), "Property is required for class ApiResponse.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Apple(string cultivar, string origin)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (cultivar == null)
|
||||
throw new ArgumentNullException("cultivar is a required property for Apple and cannot be null.");
|
||||
|
||||
if (origin == null)
|
||||
throw new ArgumentNullException("origin is a required property for Apple and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Cultivar = cultivar;
|
||||
Origin = origin;
|
||||
}
|
||||
@ -161,6 +149,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (cultivar == null)
|
||||
throw new ArgumentNullException(nameof(cultivar), "Property is required for class Apple.");
|
||||
|
||||
if (origin == null)
|
||||
throw new ArgumentNullException(nameof(origin), "Property is required for class Apple.");
|
||||
|
||||
#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 Apple(cultivar, origin);
|
||||
}
|
||||
|
||||
|
@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public AppleReq(string cultivar, bool mealy)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (cultivar == null)
|
||||
throw new ArgumentNullException("cultivar is a required property for AppleReq and cannot be null.");
|
||||
|
||||
if (mealy == null)
|
||||
throw new ArgumentNullException("mealy is a required property for AppleReq and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Cultivar = cultivar;
|
||||
Mealy = mealy;
|
||||
}
|
||||
@ -141,6 +129,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (cultivar == null)
|
||||
throw new ArgumentNullException(nameof(cultivar), "Property is required for class AppleReq.");
|
||||
|
||||
if (mealy == null)
|
||||
throw new ArgumentNullException(nameof(mealy), "Property is required for class AppleReq.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal>> arrayArrayNumber)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayArrayNumber == null)
|
||||
throw new ArgumentNullException("arrayArrayNumber is a required property for ArrayOfArrayOfNumberOnly and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ArrayArrayNumber = arrayArrayNumber;
|
||||
}
|
||||
|
||||
@ -132,6 +123,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayArrayNumber == null)
|
||||
throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is required for class ArrayOfArrayOfNumberOnly.");
|
||||
|
||||
#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 ArrayOfArrayOfNumberOnly(arrayArrayNumber);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ArrayOfNumberOnly(List<decimal> arrayNumber)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayNumber == null)
|
||||
throw new ArgumentNullException("arrayNumber is a required property for ArrayOfNumberOnly and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ArrayNumber = arrayNumber;
|
||||
}
|
||||
|
||||
@ -132,6 +123,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayNumber == null)
|
||||
throw new ArgumentNullException(nameof(arrayNumber), "Property is required for class ArrayOfNumberOnly.");
|
||||
|
||||
#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 ArrayOfNumberOnly(arrayNumber);
|
||||
}
|
||||
|
||||
|
@ -37,21 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ArrayTest(List<List<long>> arrayArrayOfInteger, List<List<ReadOnlyFirst>> arrayArrayOfModel, List<string> arrayOfString)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayOfString == null)
|
||||
throw new ArgumentNullException("arrayOfString is a required property for ArrayTest and cannot be null.");
|
||||
|
||||
if (arrayArrayOfInteger == null)
|
||||
throw new ArgumentNullException("arrayArrayOfInteger is a required property for ArrayTest and cannot be null.");
|
||||
|
||||
if (arrayArrayOfModel == null)
|
||||
throw new ArgumentNullException("arrayArrayOfModel is a required property for ArrayTest and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ArrayArrayOfInteger = arrayArrayOfInteger;
|
||||
ArrayArrayOfModel = arrayArrayOfModel;
|
||||
ArrayOfString = arrayOfString;
|
||||
@ -166,6 +151,21 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (arrayOfString == null)
|
||||
throw new ArgumentNullException(nameof(arrayOfString), "Property is required for class ArrayTest.");
|
||||
|
||||
if (arrayArrayOfInteger == null)
|
||||
throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is required for class ArrayTest.");
|
||||
|
||||
if (arrayArrayOfModel == null)
|
||||
throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is required for class ArrayTest.");
|
||||
|
||||
#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 ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Banana(decimal lengthCm)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (lengthCm == null)
|
||||
throw new ArgumentNullException("lengthCm is a required property for Banana and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
LengthCm = lengthCm;
|
||||
}
|
||||
|
||||
@ -132,6 +123,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (lengthCm == null)
|
||||
throw new ArgumentNullException(nameof(lengthCm), "Property is required for class Banana.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public BananaReq(decimal lengthCm, bool sweet)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (lengthCm == null)
|
||||
throw new ArgumentNullException("lengthCm is a required property for BananaReq and cannot be null.");
|
||||
|
||||
if (sweet == null)
|
||||
throw new ArgumentNullException("sweet is a required property for BananaReq and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
LengthCm = lengthCm;
|
||||
Sweet = sweet;
|
||||
}
|
||||
@ -142,6 +130,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (lengthCm == null)
|
||||
throw new ArgumentNullException(nameof(lengthCm), "Property is required for class BananaReq.");
|
||||
|
||||
if (sweet == null)
|
||||
throw new ArgumentNullException(nameof(sweet), "Property is required for class BananaReq.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public BasquePig(string className)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException("className is a required property for BasquePig and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassName = className;
|
||||
}
|
||||
|
||||
@ -131,6 +122,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException(nameof(className), "Property is required for class BasquePig.");
|
||||
|
||||
#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 BasquePig(className);
|
||||
}
|
||||
|
||||
|
@ -40,30 +40,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Capitalization(string aTTNAME, string capitalCamel, string capitalSnake, string sCAETHFlowPoints, string smallCamel, string smallSnake)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (smallCamel == null)
|
||||
throw new ArgumentNullException("smallCamel is a required property for Capitalization and cannot be null.");
|
||||
|
||||
if (capitalCamel == null)
|
||||
throw new ArgumentNullException("capitalCamel is a required property for Capitalization and cannot be null.");
|
||||
|
||||
if (smallSnake == null)
|
||||
throw new ArgumentNullException("smallSnake is a required property for Capitalization and cannot be null.");
|
||||
|
||||
if (capitalSnake == null)
|
||||
throw new ArgumentNullException("capitalSnake is a required property for Capitalization and cannot be null.");
|
||||
|
||||
if (sCAETHFlowPoints == null)
|
||||
throw new ArgumentNullException("sCAETHFlowPoints is a required property for Capitalization and cannot be null.");
|
||||
|
||||
if (aTTNAME == null)
|
||||
throw new ArgumentNullException("aTTNAME is a required property for Capitalization and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ATT_NAME = aTTNAME;
|
||||
CapitalCamel = capitalCamel;
|
||||
CapitalSnake = capitalSnake;
|
||||
@ -212,6 +188,30 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (smallCamel == null)
|
||||
throw new ArgumentNullException(nameof(smallCamel), "Property is required for class Capitalization.");
|
||||
|
||||
if (capitalCamel == null)
|
||||
throw new ArgumentNullException(nameof(capitalCamel), "Property is required for class Capitalization.");
|
||||
|
||||
if (smallSnake == null)
|
||||
throw new ArgumentNullException(nameof(smallSnake), "Property is required for class Capitalization.");
|
||||
|
||||
if (capitalSnake == null)
|
||||
throw new ArgumentNullException(nameof(capitalSnake), "Property is required for class Capitalization.");
|
||||
|
||||
if (sCAETHFlowPoints == null)
|
||||
throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is required for class Capitalization.");
|
||||
|
||||
if (aTTNAME == null)
|
||||
throw new ArgumentNullException(nameof(aTTNAME), "Property is required for class Capitalization.");
|
||||
|
||||
#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 Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public CatAllOf(bool declawed)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (declawed == null)
|
||||
throw new ArgumentNullException("declawed is a required property for CatAllOf and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Declawed = declawed;
|
||||
}
|
||||
|
||||
@ -132,6 +123,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (declawed == null)
|
||||
throw new ArgumentNullException(nameof(declawed), "Property is required for class CatAllOf.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Category(long id, string name = "default-name")
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException("id is a required property for Category and cannot be null.");
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException("name is a required property for Category and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Id = id;
|
||||
Name = name;
|
||||
}
|
||||
@ -148,6 +136,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (id == null)
|
||||
throw new ArgumentNullException(nameof(id), "Property is required for class Category.");
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException(nameof(name), "Property is required for class Category.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ChildCatAllOf(string name, PetTypeEnum petType = PetTypeEnum.ChildCat)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException("name is a required property for ChildCatAllOf and cannot be null.");
|
||||
|
||||
if (petType == null)
|
||||
throw new ArgumentNullException("petType is a required property for ChildCatAllOf and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Name = name;
|
||||
PetType = petType;
|
||||
}
|
||||
@ -187,6 +175,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException(nameof(name), "Property is required for class ChildCatAllOf.");
|
||||
|
||||
if (petType == null)
|
||||
throw new ArgumentNullException(nameof(petType), "Property is required for class ChildCatAllOf.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ClassModel(string classProperty)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (classProperty == null)
|
||||
throw new ArgumentNullException("classProperty is a required property for ClassModel and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassProperty = classProperty;
|
||||
}
|
||||
|
||||
@ -131,6 +122,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (classProperty == null)
|
||||
throw new ArgumentNullException(nameof(classProperty), "Property is required for class ClassModel.");
|
||||
|
||||
#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 ClassModel(classProperty);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public DanishPig(string className)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException("className is a required property for DanishPig and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassName = className;
|
||||
}
|
||||
|
||||
@ -131,6 +122,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (className == null)
|
||||
throw new ArgumentNullException(nameof(className), "Property is required for class DanishPig.");
|
||||
|
||||
#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 DanishPig(className);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public DateOnlyClass(DateTime dateOnlyProperty)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (dateOnlyProperty == null)
|
||||
throw new ArgumentNullException("dateOnlyProperty is a required property for DateOnlyClass and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
DateOnlyProperty = dateOnlyProperty;
|
||||
}
|
||||
|
||||
@ -138,6 +129,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (dateOnlyProperty == null)
|
||||
throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is required for class DateOnlyClass.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public DeprecatedObject(string name)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException("name is a required property for DeprecatedObject and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Name = name;
|
||||
}
|
||||
|
||||
@ -131,6 +122,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException(nameof(name), "Property is required for class DeprecatedObject.");
|
||||
|
||||
#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 DeprecatedObject(name);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public DogAllOf(string breed)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (breed == null)
|
||||
throw new ArgumentNullException("breed is a required property for DogAllOf and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Breed = breed;
|
||||
}
|
||||
|
||||
@ -131,6 +122,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (breed == null)
|
||||
throw new ArgumentNullException(nameof(breed), "Property is required for class DogAllOf.");
|
||||
|
||||
#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 DogAllOf(breed);
|
||||
}
|
||||
|
||||
|
@ -38,21 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Drawing(Shape mainShape, ShapeOrNull shapeOrNull, List<Shape> shapes, NullableShape nullableShape = default) : base()
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mainShape == null)
|
||||
throw new ArgumentNullException("mainShape is a required property for Drawing and cannot be null.");
|
||||
|
||||
if (shapeOrNull == null)
|
||||
throw new ArgumentNullException("shapeOrNull is a required property for Drawing and cannot be null.");
|
||||
|
||||
if (shapes == null)
|
||||
throw new ArgumentNullException("shapes is a required property for Drawing and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
MainShape = mainShape;
|
||||
ShapeOrNull = shapeOrNull;
|
||||
Shapes = shapes;
|
||||
@ -174,6 +159,21 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mainShape == null)
|
||||
throw new ArgumentNullException(nameof(mainShape), "Property is required for class Drawing.");
|
||||
|
||||
if (shapeOrNull == null)
|
||||
throw new ArgumentNullException(nameof(shapeOrNull), "Property is required for class Drawing.");
|
||||
|
||||
if (shapes == null)
|
||||
throw new ArgumentNullException(nameof(shapes), "Property is required for class Drawing.");
|
||||
|
||||
#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 Drawing(mainShape, shapeOrNull, shapes, nullableShape);
|
||||
}
|
||||
|
||||
|
@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public EnumArrays(List<EnumArrays.ArrayEnumEnum> arrayEnum, JustSymbolEnum justSymbol)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (justSymbol == null)
|
||||
throw new ArgumentNullException("justSymbol is a required property for EnumArrays and cannot be null.");
|
||||
|
||||
if (arrayEnum == null)
|
||||
throw new ArgumentNullException("arrayEnum is a required property for EnumArrays and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ArrayEnum = arrayEnum;
|
||||
JustSymbol = justSymbol;
|
||||
}
|
||||
@ -249,6 +237,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (justSymbol == null)
|
||||
throw new ArgumentNullException(nameof(justSymbol), "Property is required for class EnumArrays.");
|
||||
|
||||
if (arrayEnum == null)
|
||||
throw new ArgumentNullException(nameof(arrayEnum), "Property is required for class EnumArrays.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -43,36 +43,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public EnumTest(EnumIntegerEnum enumInteger, EnumIntegerOnlyEnum enumIntegerOnly, EnumNumberEnum enumNumber, EnumStringEnum enumString, EnumStringRequiredEnum enumStringRequired, OuterEnumDefaultValue outerEnumDefaultValue, OuterEnumInteger outerEnumInteger, OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue, OuterEnum? outerEnum = default)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (enumString == null)
|
||||
throw new ArgumentNullException("enumString is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (enumStringRequired == null)
|
||||
throw new ArgumentNullException("enumStringRequired is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (enumInteger == null)
|
||||
throw new ArgumentNullException("enumInteger is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (enumIntegerOnly == null)
|
||||
throw new ArgumentNullException("enumIntegerOnly is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (enumNumber == null)
|
||||
throw new ArgumentNullException("enumNumber is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (outerEnumInteger == null)
|
||||
throw new ArgumentNullException("outerEnumInteger is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (outerEnumDefaultValue == null)
|
||||
throw new ArgumentNullException("outerEnumDefaultValue is a required property for EnumTest and cannot be null.");
|
||||
|
||||
if (outerEnumIntegerDefaultValue == null)
|
||||
throw new ArgumentNullException("outerEnumIntegerDefaultValue is a required property for EnumTest and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
EnumInteger = enumInteger;
|
||||
EnumIntegerOnly = enumIntegerOnly;
|
||||
EnumNumber = enumNumber;
|
||||
@ -525,6 +495,36 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (enumString == null)
|
||||
throw new ArgumentNullException(nameof(enumString), "Property is required for class EnumTest.");
|
||||
|
||||
if (enumStringRequired == null)
|
||||
throw new ArgumentNullException(nameof(enumStringRequired), "Property is required for class EnumTest.");
|
||||
|
||||
if (enumInteger == null)
|
||||
throw new ArgumentNullException(nameof(enumInteger), "Property is required for class EnumTest.");
|
||||
|
||||
if (enumIntegerOnly == null)
|
||||
throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is required for class EnumTest.");
|
||||
|
||||
if (enumNumber == null)
|
||||
throw new ArgumentNullException(nameof(enumNumber), "Property is required for class EnumTest.");
|
||||
|
||||
if (outerEnumInteger == null)
|
||||
throw new ArgumentNullException(nameof(outerEnumInteger), "Property is required for class EnumTest.");
|
||||
|
||||
if (outerEnumDefaultValue == null)
|
||||
throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is required for class EnumTest.");
|
||||
|
||||
if (outerEnumIntegerDefaultValue == null)
|
||||
throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is required for class EnumTest.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public File(string sourceURI)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (sourceURI == null)
|
||||
throw new ArgumentNullException("sourceURI is a required property for File and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
SourceURI = sourceURI;
|
||||
}
|
||||
|
||||
@ -132,6 +123,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (sourceURI == null)
|
||||
throw new ArgumentNullException(nameof(sourceURI), "Property is required for class File.");
|
||||
|
||||
#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 File(sourceURI);
|
||||
}
|
||||
|
||||
|
@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public FileSchemaTestClass(File file, List<File> files)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (file == null)
|
||||
throw new ArgumentNullException("file is a required property for FileSchemaTestClass and cannot be null.");
|
||||
|
||||
if (files == null)
|
||||
throw new ArgumentNullException("files is a required property for FileSchemaTestClass and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
File = file;
|
||||
Files = files;
|
||||
}
|
||||
@ -149,6 +137,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (file == null)
|
||||
throw new ArgumentNullException(nameof(file), "Property is required for class FileSchemaTestClass.");
|
||||
|
||||
if (files == null)
|
||||
throw new ArgumentNullException(nameof(files), "Property is required for class FileSchemaTestClass.");
|
||||
|
||||
#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 FileSchemaTestClass(file, files);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Foo(string bar = "bar")
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (bar == null)
|
||||
throw new ArgumentNullException("bar is a required property for Foo and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Bar = bar;
|
||||
}
|
||||
|
||||
@ -131,6 +122,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (bar == null)
|
||||
throw new ArgumentNullException(nameof(bar), "Property is required for class Foo.");
|
||||
|
||||
#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 Foo(bar);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public FooGetDefaultResponse(Foo stringProperty)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (stringProperty == null)
|
||||
throw new ArgumentNullException("stringProperty is a required property for FooGetDefaultResponse and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
StringProperty = stringProperty;
|
||||
}
|
||||
|
||||
@ -132,6 +123,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (stringProperty == null)
|
||||
throw new ArgumentNullException(nameof(stringProperty), "Property is required for class FooGetDefaultResponse.");
|
||||
|
||||
#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 FooGetDefaultResponse(stringProperty);
|
||||
}
|
||||
|
||||
|
@ -52,66 +52,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public FormatTest(System.IO.Stream binary, byte[] byteProperty, DateTime date, DateTime dateTime, decimal decimalProperty, double doubleProperty, float floatProperty, int int32, long int64, int integer, decimal number, string password, string patternWithDigits, string patternWithDigitsAndDelimiter, string stringProperty, uint unsignedInteger, ulong unsignedLong, Guid uuid)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (integer == null)
|
||||
throw new ArgumentNullException("integer is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (int32 == null)
|
||||
throw new ArgumentNullException("int32 is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (unsignedInteger == null)
|
||||
throw new ArgumentNullException("unsignedInteger is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (int64 == null)
|
||||
throw new ArgumentNullException("int64 is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (unsignedLong == null)
|
||||
throw new ArgumentNullException("unsignedLong is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (number == null)
|
||||
throw new ArgumentNullException("number is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (floatProperty == null)
|
||||
throw new ArgumentNullException("floatProperty is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (doubleProperty == null)
|
||||
throw new ArgumentNullException("doubleProperty is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (decimalProperty == null)
|
||||
throw new ArgumentNullException("decimalProperty is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (stringProperty == null)
|
||||
throw new ArgumentNullException("stringProperty is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (byteProperty == null)
|
||||
throw new ArgumentNullException("byteProperty is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (binary == null)
|
||||
throw new ArgumentNullException("binary is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (date == null)
|
||||
throw new ArgumentNullException("date is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (dateTime == null)
|
||||
throw new ArgumentNullException("dateTime is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (uuid == null)
|
||||
throw new ArgumentNullException("uuid is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (password == null)
|
||||
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (patternWithDigits == null)
|
||||
throw new ArgumentNullException("patternWithDigits is a required property for FormatTest and cannot be null.");
|
||||
|
||||
if (patternWithDigitsAndDelimiter == null)
|
||||
throw new ArgumentNullException("patternWithDigitsAndDelimiter is a required property for FormatTest and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Binary = binary;
|
||||
ByteProperty = byteProperty;
|
||||
Date = date;
|
||||
@ -537,6 +477,66 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (integer == null)
|
||||
throw new ArgumentNullException(nameof(integer), "Property is required for class FormatTest.");
|
||||
|
||||
if (int32 == null)
|
||||
throw new ArgumentNullException(nameof(int32), "Property is required for class FormatTest.");
|
||||
|
||||
if (unsignedInteger == null)
|
||||
throw new ArgumentNullException(nameof(unsignedInteger), "Property is required for class FormatTest.");
|
||||
|
||||
if (int64 == null)
|
||||
throw new ArgumentNullException(nameof(int64), "Property is required for class FormatTest.");
|
||||
|
||||
if (unsignedLong == null)
|
||||
throw new ArgumentNullException(nameof(unsignedLong), "Property is required for class FormatTest.");
|
||||
|
||||
if (number == null)
|
||||
throw new ArgumentNullException(nameof(number), "Property is required for class FormatTest.");
|
||||
|
||||
if (floatProperty == null)
|
||||
throw new ArgumentNullException(nameof(floatProperty), "Property is required for class FormatTest.");
|
||||
|
||||
if (doubleProperty == null)
|
||||
throw new ArgumentNullException(nameof(doubleProperty), "Property is required for class FormatTest.");
|
||||
|
||||
if (decimalProperty == null)
|
||||
throw new ArgumentNullException(nameof(decimalProperty), "Property is required for class FormatTest.");
|
||||
|
||||
if (stringProperty == null)
|
||||
throw new ArgumentNullException(nameof(stringProperty), "Property is required for class FormatTest.");
|
||||
|
||||
if (byteProperty == null)
|
||||
throw new ArgumentNullException(nameof(byteProperty), "Property is required for class FormatTest.");
|
||||
|
||||
if (binary == null)
|
||||
throw new ArgumentNullException(nameof(binary), "Property is required for class FormatTest.");
|
||||
|
||||
if (date == null)
|
||||
throw new ArgumentNullException(nameof(date), "Property is required for class FormatTest.");
|
||||
|
||||
if (dateTime == null)
|
||||
throw new ArgumentNullException(nameof(dateTime), "Property is required for class FormatTest.");
|
||||
|
||||
if (uuid == null)
|
||||
throw new ArgumentNullException(nameof(uuid), "Property is required for class FormatTest.");
|
||||
|
||||
if (password == null)
|
||||
throw new ArgumentNullException(nameof(password), "Property is required for class FormatTest.");
|
||||
|
||||
if (patternWithDigits == null)
|
||||
throw new ArgumentNullException(nameof(patternWithDigits), "Property is required for class FormatTest.");
|
||||
|
||||
if (patternWithDigitsAndDelimiter == null)
|
||||
throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is required for class FormatTest.");
|
||||
|
||||
#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, patternWithDigits, patternWithDigitsAndDelimiter, stringProperty, unsignedInteger, unsignedLong, uuid);
|
||||
}
|
||||
|
||||
|
@ -36,15 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Fruit(Apple apple, string color)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException(nameof(Color));
|
||||
|
||||
#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'
|
||||
|
||||
Apple = apple;
|
||||
Color = color;
|
||||
}
|
||||
@ -57,15 +48,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Fruit(Banana banana, string color)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException(nameof(Color));
|
||||
|
||||
#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'
|
||||
|
||||
Banana = banana;
|
||||
Color = color;
|
||||
}
|
||||
@ -163,6 +145,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException(nameof(color), "Property is required for class Fruit.");
|
||||
|
||||
#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'
|
||||
|
||||
if (appleDeserialized)
|
||||
return new Fruit(apple, color);
|
||||
|
||||
|
@ -37,15 +37,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public GmFruit(Apple apple, Banana banana, string color)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException("color is a required property for GmFruit and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Apple = Apple;
|
||||
Banana = Banana;
|
||||
Color = color;
|
||||
@ -144,6 +135,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (color == null)
|
||||
throw new ArgumentNullException(nameof(color), "Property is required for class GmFruit.");
|
||||
|
||||
#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 GmFruit(apple, banana, color);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public GrandparentAnimal(string petType)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (petType == null)
|
||||
throw new ArgumentNullException("petType is a required property for GrandparentAnimal and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
PetType = petType;
|
||||
}
|
||||
|
||||
@ -141,6 +132,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (petType == null)
|
||||
throw new ArgumentNullException(nameof(petType), "Property is required for class GrandparentAnimal.");
|
||||
|
||||
#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 GrandparentAnimal(petType);
|
||||
}
|
||||
|
||||
|
@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
internal HasOnlyReadOnly(string bar, string foo)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (bar == null)
|
||||
throw new ArgumentNullException("bar is a required property for HasOnlyReadOnly and cannot be null.");
|
||||
|
||||
if (foo == null)
|
||||
throw new ArgumentNullException("foo is a required property for HasOnlyReadOnly and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
Bar = bar;
|
||||
Foo = foo;
|
||||
}
|
||||
@ -184,6 +172,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (bar == null)
|
||||
throw new ArgumentNullException(nameof(bar), "Property is required for class HasOnlyReadOnly.");
|
||||
|
||||
if (foo == null)
|
||||
throw new ArgumentNullException(nameof(foo), "Property is required for class HasOnlyReadOnly.");
|
||||
|
||||
#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 HasOnlyReadOnly(bar, foo);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public List(string _123list)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (_123list == null)
|
||||
throw new ArgumentNullException("_123list is a required property for List and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
_123List = _123list;
|
||||
}
|
||||
|
||||
@ -131,6 +122,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (_123list == null)
|
||||
throw new ArgumentNullException(nameof(_123list), "Property is required for class List.");
|
||||
|
||||
#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 List(_123list);
|
||||
}
|
||||
|
||||
|
@ -38,24 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public MapTest(Dictionary<string, bool> directMap, Dictionary<string, bool> indirectMap, Dictionary<string, Dictionary<string, string>> mapMapOfString, Dictionary<string, MapTest.InnerEnum> mapOfEnumString)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mapMapOfString == null)
|
||||
throw new ArgumentNullException("mapMapOfString is a required property for MapTest and cannot be null.");
|
||||
|
||||
if (mapOfEnumString == null)
|
||||
throw new ArgumentNullException("mapOfEnumString is a required property for MapTest and cannot be null.");
|
||||
|
||||
if (directMap == null)
|
||||
throw new ArgumentNullException("directMap is a required property for MapTest and cannot be null.");
|
||||
|
||||
if (indirectMap == null)
|
||||
throw new ArgumentNullException("indirectMap is a required property for MapTest and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
DirectMap = directMap;
|
||||
IndirectMap = indirectMap;
|
||||
MapMapOfString = mapMapOfString;
|
||||
@ -233,6 +215,24 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (mapMapOfString == null)
|
||||
throw new ArgumentNullException(nameof(mapMapOfString), "Property is required for class MapTest.");
|
||||
|
||||
if (mapOfEnumString == null)
|
||||
throw new ArgumentNullException(nameof(mapOfEnumString), "Property is required for class MapTest.");
|
||||
|
||||
if (directMap == null)
|
||||
throw new ArgumentNullException(nameof(directMap), "Property is required for class MapTest.");
|
||||
|
||||
if (indirectMap == null)
|
||||
throw new ArgumentNullException(nameof(indirectMap), "Property is required for class MapTest.");
|
||||
|
||||
#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 MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString);
|
||||
}
|
||||
|
||||
|
@ -38,24 +38,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(DateTime dateTime, Dictionary<string, Animal> map, Guid uuid, Guid uuidWithPattern)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (uuidWithPattern == null)
|
||||
throw new ArgumentNullException("uuidWithPattern is a required property for MixedPropertiesAndAdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (uuid == null)
|
||||
throw new ArgumentNullException("uuid is a required property for MixedPropertiesAndAdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (dateTime == null)
|
||||
throw new ArgumentNullException("dateTime is a required property for MixedPropertiesAndAdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
if (map == null)
|
||||
throw new ArgumentNullException("map is a required property for MixedPropertiesAndAdditionalPropertiesClass and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
DateTime = dateTime;
|
||||
Map = map;
|
||||
Uuid = uuid;
|
||||
@ -195,6 +177,24 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (uuidWithPattern == null)
|
||||
throw new ArgumentNullException(nameof(uuidWithPattern), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass.");
|
||||
|
||||
if (uuid == null)
|
||||
throw new ArgumentNullException(nameof(uuid), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass.");
|
||||
|
||||
if (dateTime == null)
|
||||
throw new ArgumentNullException(nameof(dateTime), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass.");
|
||||
|
||||
if (map == null)
|
||||
throw new ArgumentNullException(nameof(map), "Property is required for class MixedPropertiesAndAdditionalPropertiesClass.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -36,18 +36,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public Model200Response(string classProperty, int name)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException("name is a required property for Model200Response and cannot be null.");
|
||||
|
||||
if (classProperty == null)
|
||||
throw new ArgumentNullException("classProperty is a required property for Model200Response and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
ClassProperty = classProperty;
|
||||
Name = name;
|
||||
}
|
||||
@ -148,6 +136,18 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (name == null)
|
||||
throw new ArgumentNullException(nameof(name), "Property is required for class Model200Response.");
|
||||
|
||||
if (classProperty == null)
|
||||
throw new ArgumentNullException(nameof(classProperty), "Property is required for class Model200Response.");
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
|
@ -35,15 +35,6 @@ namespace Org.OpenAPITools.Model
|
||||
[JsonConstructor]
|
||||
public ModelClient(string clientProperty)
|
||||
{
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (clientProperty == null)
|
||||
throw new ArgumentNullException("clientProperty is a required property for ModelClient and cannot be null.");
|
||||
|
||||
#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'
|
||||
|
||||
_ClientProperty = clientProperty;
|
||||
}
|
||||
|
||||
@ -131,6 +122,15 @@ namespace Org.OpenAPITools.Model
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS0472 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
|
||||
if (clientProperty == null)
|
||||
throw new ArgumentNullException(nameof(clientProperty), "Property is required for class ModelClient.");
|
||||
|
||||
#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 ModelClient(clientProperty);
|
||||
}
|
||||
|
||||
|
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