forked from loafle/openapi-generator-original
Merge branch 'master' of https://github.com/OpenAPITools/openapi-generator
This commit is contained in:
@@ -48,5 +48,38 @@ namespace Org.OpenAPITools.Test.Model
|
||||
string expectedJson = "{\r\n \"cultivar\": \"Kashmiri\",\r\n \"origin\": \"India\"\r\n}";
|
||||
Assert.Equal(expectedJson, apple.ToJson());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Apple has two properties, here we serialize only cultivar property using the constructor
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void SerializeAppleCultivateWithConstructor()
|
||||
{
|
||||
Apple apple = new Apple(cultivar: "Kashmiri");
|
||||
string expectedJson = "{\r\n \"cultivar\": \"Kashmiri\"\r\n}";
|
||||
Assert.Equal(expectedJson, apple.ToJson());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Apple has two properties, here we serialize only origin property using the constructor
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void SerializeAppleOriginWithConstructor()
|
||||
{
|
||||
Apple apple = new Apple(origin: "India");
|
||||
string expectedJson = "{\r\n \"origin\": \"India\"\r\n}";
|
||||
Assert.Equal(expectedJson, apple.ToJson());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Here we serialze all the properties of Apple with constructor.
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void SerializeAppleWithConstructor()
|
||||
{
|
||||
Apple apple = new Apple(origin: "India", cultivar: "Kashmiri");
|
||||
string expectedJson = "{\r\n \"cultivar\": \"Kashmiri\",\r\n \"origin\": \"India\"\r\n}";
|
||||
Assert.Equal(expectedJson, apple.ToJson());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,21 +46,45 @@ namespace Org.OpenAPITools.Model
|
||||
public AdditionalPropertiesClass(Dictionary<string, string> mapProperty = default(Dictionary<string, string>), Dictionary<string, Dictionary<string, string>> mapOfMapProperty = default(Dictionary<string, Dictionary<string, string>>), Object anytype1 = default(Object), Object mapWithUndeclaredPropertiesAnytype1 = default(Object), Object mapWithUndeclaredPropertiesAnytype2 = default(Object), Dictionary<string, Object> mapWithUndeclaredPropertiesAnytype3 = default(Dictionary<string, Object>), Object emptyMap = default(Object), Dictionary<string, string> mapWithUndeclaredPropertiesString = default(Dictionary<string, string>))
|
||||
{
|
||||
this._MapProperty = mapProperty;
|
||||
if (this.MapProperty != null) this._flagMapProperty = true;
|
||||
if (this.MapProperty != null)
|
||||
{
|
||||
this._flagMapProperty = true;
|
||||
}
|
||||
this._MapOfMapProperty = mapOfMapProperty;
|
||||
if (this.MapOfMapProperty != null) this._flagMapOfMapProperty = true;
|
||||
if (this.MapOfMapProperty != null)
|
||||
{
|
||||
this._flagMapOfMapProperty = true;
|
||||
}
|
||||
this._Anytype1 = anytype1;
|
||||
if (this.Anytype1 != null) this._flagAnytype1 = true;
|
||||
if (this.Anytype1 != null)
|
||||
{
|
||||
this._flagAnytype1 = true;
|
||||
}
|
||||
this._MapWithUndeclaredPropertiesAnytype1 = mapWithUndeclaredPropertiesAnytype1;
|
||||
if (this.MapWithUndeclaredPropertiesAnytype1 != null) this._flagMapWithUndeclaredPropertiesAnytype1 = true;
|
||||
if (this.MapWithUndeclaredPropertiesAnytype1 != null)
|
||||
{
|
||||
this._flagMapWithUndeclaredPropertiesAnytype1 = true;
|
||||
}
|
||||
this._MapWithUndeclaredPropertiesAnytype2 = mapWithUndeclaredPropertiesAnytype2;
|
||||
if (this.MapWithUndeclaredPropertiesAnytype2 != null) this._flagMapWithUndeclaredPropertiesAnytype2 = true;
|
||||
if (this.MapWithUndeclaredPropertiesAnytype2 != null)
|
||||
{
|
||||
this._flagMapWithUndeclaredPropertiesAnytype2 = true;
|
||||
}
|
||||
this._MapWithUndeclaredPropertiesAnytype3 = mapWithUndeclaredPropertiesAnytype3;
|
||||
if (this.MapWithUndeclaredPropertiesAnytype3 != null) this._flagMapWithUndeclaredPropertiesAnytype3 = true;
|
||||
if (this.MapWithUndeclaredPropertiesAnytype3 != null)
|
||||
{
|
||||
this._flagMapWithUndeclaredPropertiesAnytype3 = true;
|
||||
}
|
||||
this._EmptyMap = emptyMap;
|
||||
if (this.EmptyMap != null) this._flagEmptyMap = true;
|
||||
if (this.EmptyMap != null)
|
||||
{
|
||||
this._flagEmptyMap = true;
|
||||
}
|
||||
this._MapWithUndeclaredPropertiesString = mapWithUndeclaredPropertiesString;
|
||||
if (this.MapWithUndeclaredPropertiesString != null) this._flagMapWithUndeclaredPropertiesString = true;
|
||||
if (this.MapWithUndeclaredPropertiesString != null)
|
||||
{
|
||||
this._flagMapWithUndeclaredPropertiesString = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,8 @@ namespace Org.OpenAPITools.Model
|
||||
public Animal(string className = default(string), string color = "red")
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for Animal and cannot be null");
|
||||
}
|
||||
this._ClassName = className;
|
||||
|
||||
@@ -41,11 +41,20 @@ namespace Org.OpenAPITools.Model
|
||||
public ApiResponse(int code = default(int), string type = default(string), string message = default(string))
|
||||
{
|
||||
this._Code = code;
|
||||
if (this.Code != null) this._flagCode = true;
|
||||
if (this.Code != null)
|
||||
{
|
||||
this._flagCode = true;
|
||||
}
|
||||
this._Type = type;
|
||||
if (this.Type != null) this._flagType = true;
|
||||
if (this.Type != null)
|
||||
{
|
||||
this._flagType = true;
|
||||
}
|
||||
this._Message = message;
|
||||
if (this.Message != null) this._flagMessage = true;
|
||||
if (this.Message != null)
|
||||
{
|
||||
this._flagMessage = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,9 +40,15 @@ namespace Org.OpenAPITools.Model
|
||||
public Apple(string cultivar = default(string), string origin = default(string))
|
||||
{
|
||||
this._Cultivar = cultivar;
|
||||
if (this.Cultivar != null) this._flagCultivar = true;
|
||||
if (this.Cultivar != null)
|
||||
{
|
||||
this._flagCultivar = true;
|
||||
}
|
||||
this._Origin = origin;
|
||||
if (this.Origin != null) this._flagOrigin = true;
|
||||
if (this.Origin != null)
|
||||
{
|
||||
this._flagOrigin = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -45,12 +45,16 @@ namespace Org.OpenAPITools.Model
|
||||
public AppleReq(string cultivar = default(string), bool mealy = default(bool))
|
||||
{
|
||||
// to ensure "cultivar" is required (not null)
|
||||
if (cultivar == null) {
|
||||
if (cultivar == null)
|
||||
{
|
||||
throw new ArgumentNullException("cultivar is a required property for AppleReq and cannot be null");
|
||||
}
|
||||
this._Cultivar = cultivar;
|
||||
this._Mealy = mealy;
|
||||
if (this.Mealy != null) this._flagMealy = true;
|
||||
if (this.Mealy != null)
|
||||
{
|
||||
this._flagMealy = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public ArrayOfArrayOfNumberOnly(List<List<decimal>> arrayArrayNumber = default(List<List<decimal>>))
|
||||
{
|
||||
this._ArrayArrayNumber = arrayArrayNumber;
|
||||
if (this.ArrayArrayNumber != null) this._flagArrayArrayNumber = true;
|
||||
if (this.ArrayArrayNumber != null)
|
||||
{
|
||||
this._flagArrayArrayNumber = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public ArrayOfNumberOnly(List<decimal> arrayNumber = default(List<decimal>))
|
||||
{
|
||||
this._ArrayNumber = arrayNumber;
|
||||
if (this.ArrayNumber != null) this._flagArrayNumber = true;
|
||||
if (this.ArrayNumber != null)
|
||||
{
|
||||
this._flagArrayNumber = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -41,11 +41,20 @@ namespace Org.OpenAPITools.Model
|
||||
public ArrayTest(List<string> arrayOfString = default(List<string>), List<List<long>> arrayArrayOfInteger = default(List<List<long>>), List<List<ReadOnlyFirst>> arrayArrayOfModel = default(List<List<ReadOnlyFirst>>))
|
||||
{
|
||||
this._ArrayOfString = arrayOfString;
|
||||
if (this.ArrayOfString != null) this._flagArrayOfString = true;
|
||||
if (this.ArrayOfString != null)
|
||||
{
|
||||
this._flagArrayOfString = true;
|
||||
}
|
||||
this._ArrayArrayOfInteger = arrayArrayOfInteger;
|
||||
if (this.ArrayArrayOfInteger != null) this._flagArrayArrayOfInteger = true;
|
||||
if (this.ArrayArrayOfInteger != null)
|
||||
{
|
||||
this._flagArrayArrayOfInteger = true;
|
||||
}
|
||||
this._ArrayArrayOfModel = arrayArrayOfModel;
|
||||
if (this.ArrayArrayOfModel != null) this._flagArrayArrayOfModel = true;
|
||||
if (this.ArrayArrayOfModel != null)
|
||||
{
|
||||
this._flagArrayArrayOfModel = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public Banana(decimal lengthCm = default(decimal))
|
||||
{
|
||||
this._LengthCm = lengthCm;
|
||||
if (this.LengthCm != null) this._flagLengthCm = true;
|
||||
if (this.LengthCm != null)
|
||||
{
|
||||
this._flagLengthCm = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
this._LengthCm = lengthCm;
|
||||
this._Sweet = sweet;
|
||||
if (this.Sweet != null) this._flagSweet = true;
|
||||
if (this.Sweet != null)
|
||||
{
|
||||
this._flagSweet = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -47,7 +47,8 @@ namespace Org.OpenAPITools.Model
|
||||
public BasquePig(string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for BasquePig and cannot be null");
|
||||
}
|
||||
this._ClassName = className;
|
||||
|
||||
@@ -44,17 +44,35 @@ namespace Org.OpenAPITools.Model
|
||||
public Capitalization(string smallCamel = default(string), string capitalCamel = default(string), string smallSnake = default(string), string capitalSnake = default(string), string sCAETHFlowPoints = default(string), string aTTNAME = default(string))
|
||||
{
|
||||
this._SmallCamel = smallCamel;
|
||||
if (this.SmallCamel != null) this._flagSmallCamel = true;
|
||||
if (this.SmallCamel != null)
|
||||
{
|
||||
this._flagSmallCamel = true;
|
||||
}
|
||||
this._CapitalCamel = capitalCamel;
|
||||
if (this.CapitalCamel != null) this._flagCapitalCamel = true;
|
||||
if (this.CapitalCamel != null)
|
||||
{
|
||||
this._flagCapitalCamel = true;
|
||||
}
|
||||
this._SmallSnake = smallSnake;
|
||||
if (this.SmallSnake != null) this._flagSmallSnake = true;
|
||||
if (this.SmallSnake != null)
|
||||
{
|
||||
this._flagSmallSnake = true;
|
||||
}
|
||||
this._CapitalSnake = capitalSnake;
|
||||
if (this.CapitalSnake != null) this._flagCapitalSnake = true;
|
||||
if (this.CapitalSnake != null)
|
||||
{
|
||||
this._flagCapitalSnake = true;
|
||||
}
|
||||
this._SCAETHFlowPoints = sCAETHFlowPoints;
|
||||
if (this.SCAETHFlowPoints != null) this._flagSCAETHFlowPoints = true;
|
||||
if (this.SCAETHFlowPoints != null)
|
||||
{
|
||||
this._flagSCAETHFlowPoints = true;
|
||||
}
|
||||
this._ATT_NAME = aTTNAME;
|
||||
if (this.ATT_NAME != null) this._flagATT_NAME = true;
|
||||
if (this.ATT_NAME != null)
|
||||
{
|
||||
this._flagATT_NAME = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,10 @@ namespace Org.OpenAPITools.Model
|
||||
public Cat(bool declawed = default(bool), string className = "Cat", string color = "red") : base(className, color)
|
||||
{
|
||||
this._Declawed = declawed;
|
||||
if (this.Declawed != null) this._flagDeclawed = true;
|
||||
if (this.Declawed != null)
|
||||
{
|
||||
this._flagDeclawed = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public CatAllOf(bool declawed = default(bool))
|
||||
{
|
||||
this._Declawed = declawed;
|
||||
if (this.Declawed != null) this._flagDeclawed = true;
|
||||
if (this.Declawed != null)
|
||||
{
|
||||
this._flagDeclawed = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -48,12 +48,16 @@ namespace Org.OpenAPITools.Model
|
||||
public Category(long id = default(long), string name = "default-name")
|
||||
{
|
||||
// to ensure "name" is required (not null)
|
||||
if (name == null) {
|
||||
if (name == null)
|
||||
{
|
||||
throw new ArgumentNullException("name is a required property for Category and cannot be null");
|
||||
}
|
||||
this._Name = name;
|
||||
this._Id = id;
|
||||
if (this.Id != null) this._flagId = true;
|
||||
if (this.Id != null)
|
||||
{
|
||||
this._flagId = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
this._PetType = petType;
|
||||
this._Name = name;
|
||||
if (this.Name != null) this._flagName = true;
|
||||
if (this.Name != null)
|
||||
{
|
||||
this._flagName = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,10 @@ namespace Org.OpenAPITools.Model
|
||||
public ChildCatAllOf(string name = default(string), PetTypeEnum? petType = PetTypeEnum.ChildCat)
|
||||
{
|
||||
this._Name = name;
|
||||
if (this.Name != null) this._flagName = true;
|
||||
if (this.Name != null)
|
||||
{
|
||||
this._flagName = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public ClassModel(string _class = default(string))
|
||||
{
|
||||
this._Class = _class;
|
||||
if (this.Class != null) this._flagClass = true;
|
||||
if (this.Class != null)
|
||||
{
|
||||
this._flagClass = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -48,12 +48,14 @@ namespace Org.OpenAPITools.Model
|
||||
public ComplexQuadrilateral(string shapeType = default(string), string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for ComplexQuadrilateral and cannot be null");
|
||||
}
|
||||
this._ShapeType = shapeType;
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
if (quadrilateralType == null) {
|
||||
if (quadrilateralType == null)
|
||||
{
|
||||
throw new ArgumentNullException("quadrilateralType is a required property for ComplexQuadrilateral and cannot be null");
|
||||
}
|
||||
this._QuadrilateralType = quadrilateralType;
|
||||
|
||||
@@ -47,7 +47,8 @@ namespace Org.OpenAPITools.Model
|
||||
public DanishPig(string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for DanishPig and cannot be null");
|
||||
}
|
||||
this._ClassName = className;
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public DeprecatedObject(string name = default(string))
|
||||
{
|
||||
this._Name = name;
|
||||
if (this.Name != null) this._flagName = true;
|
||||
if (this.Name != null)
|
||||
{
|
||||
this._flagName = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,10 @@ namespace Org.OpenAPITools.Model
|
||||
public Dog(string breed = default(string), string className = "Dog", string color = "red") : base(className, color)
|
||||
{
|
||||
this._Breed = breed;
|
||||
if (this.Breed != null) this._flagBreed = true;
|
||||
if (this.Breed != null)
|
||||
{
|
||||
this._flagBreed = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public DogAllOf(string breed = default(string))
|
||||
{
|
||||
this._Breed = breed;
|
||||
if (this.Breed != null) this._flagBreed = true;
|
||||
if (this.Breed != null)
|
||||
{
|
||||
this._flagBreed = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -42,13 +42,25 @@ namespace Org.OpenAPITools.Model
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>)) : base()
|
||||
{
|
||||
this._MainShape = mainShape;
|
||||
if (this.MainShape != null) this._flagMainShape = true;
|
||||
if (this.MainShape != null)
|
||||
{
|
||||
this._flagMainShape = true;
|
||||
}
|
||||
this._ShapeOrNull = shapeOrNull;
|
||||
if (this.ShapeOrNull != null) this._flagShapeOrNull = true;
|
||||
if (this.ShapeOrNull != null)
|
||||
{
|
||||
this._flagShapeOrNull = true;
|
||||
}
|
||||
this._NullableShape = nullableShape;
|
||||
if (this.NullableShape != null) this._flagNullableShape = true;
|
||||
if (this.NullableShape != null)
|
||||
{
|
||||
this._flagNullableShape = true;
|
||||
}
|
||||
this._Shapes = shapes;
|
||||
if (this.Shapes != null) this._flagShapes = true;
|
||||
if (this.Shapes != null)
|
||||
{
|
||||
this._flagShapes = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -133,9 +133,15 @@ namespace Org.OpenAPITools.Model
|
||||
public EnumArrays(JustSymbolEnum? justSymbol = default(JustSymbolEnum?), List<ArrayEnumEnum> arrayEnum = default(List<ArrayEnumEnum>))
|
||||
{
|
||||
this._JustSymbol = justSymbol;
|
||||
if (this.JustSymbol != null) this._flagJustSymbol = true;
|
||||
if (this.JustSymbol != null)
|
||||
{
|
||||
this._flagJustSymbol = true;
|
||||
}
|
||||
this._ArrayEnum = arrayEnum;
|
||||
if (this.ArrayEnum != null) this._flagArrayEnum = true;
|
||||
if (this.ArrayEnum != null)
|
||||
{
|
||||
this._flagArrayEnum = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -396,21 +396,45 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
this._EnumStringRequired = enumStringRequired;
|
||||
this._EnumString = enumString;
|
||||
if (this.EnumString != null) this._flagEnumString = true;
|
||||
if (this.EnumString != null)
|
||||
{
|
||||
this._flagEnumString = true;
|
||||
}
|
||||
this._EnumInteger = enumInteger;
|
||||
if (this.EnumInteger != null) this._flagEnumInteger = true;
|
||||
if (this.EnumInteger != null)
|
||||
{
|
||||
this._flagEnumInteger = true;
|
||||
}
|
||||
this._EnumIntegerOnly = enumIntegerOnly;
|
||||
if (this.EnumIntegerOnly != null) this._flagEnumIntegerOnly = true;
|
||||
if (this.EnumIntegerOnly != null)
|
||||
{
|
||||
this._flagEnumIntegerOnly = true;
|
||||
}
|
||||
this._EnumNumber = enumNumber;
|
||||
if (this.EnumNumber != null) this._flagEnumNumber = true;
|
||||
if (this.EnumNumber != null)
|
||||
{
|
||||
this._flagEnumNumber = true;
|
||||
}
|
||||
this._OuterEnum = outerEnum;
|
||||
if (this.OuterEnum != null) this._flagOuterEnum = true;
|
||||
if (this.OuterEnum != null)
|
||||
{
|
||||
this._flagOuterEnum = true;
|
||||
}
|
||||
this._OuterEnumInteger = outerEnumInteger;
|
||||
if (this.OuterEnumInteger != null) this._flagOuterEnumInteger = true;
|
||||
if (this.OuterEnumInteger != null)
|
||||
{
|
||||
this._flagOuterEnumInteger = true;
|
||||
}
|
||||
this._OuterEnumDefaultValue = outerEnumDefaultValue;
|
||||
if (this.OuterEnumDefaultValue != null) this._flagOuterEnumDefaultValue = true;
|
||||
if (this.OuterEnumDefaultValue != null)
|
||||
{
|
||||
this._flagOuterEnumDefaultValue = true;
|
||||
}
|
||||
this._OuterEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
|
||||
if (this.OuterEnumIntegerDefaultValue != null) this._flagOuterEnumIntegerDefaultValue = true;
|
||||
if (this.OuterEnumIntegerDefaultValue != null)
|
||||
{
|
||||
this._flagOuterEnumIntegerDefaultValue = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -48,12 +48,14 @@ namespace Org.OpenAPITools.Model
|
||||
public EquilateralTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for EquilateralTriangle and cannot be null");
|
||||
}
|
||||
this._ShapeType = shapeType;
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for EquilateralTriangle and cannot be null");
|
||||
}
|
||||
this._TriangleType = triangleType;
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public File(string sourceURI = default(string))
|
||||
{
|
||||
this._SourceURI = sourceURI;
|
||||
if (this.SourceURI != null) this._flagSourceURI = true;
|
||||
if (this.SourceURI != null)
|
||||
{
|
||||
this._flagSourceURI = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,9 +40,15 @@ namespace Org.OpenAPITools.Model
|
||||
public FileSchemaTestClass(File file = default(File), List<File> files = default(List<File>))
|
||||
{
|
||||
this._File = file;
|
||||
if (this.File != null) this._flagFile = true;
|
||||
if (this.File != null)
|
||||
{
|
||||
this._flagFile = true;
|
||||
}
|
||||
this._Files = files;
|
||||
if (this.Files != null) this._flagFiles = true;
|
||||
if (this.Files != null)
|
||||
{
|
||||
this._flagFiles = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -63,40 +63,78 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
this._Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
if (_byte == null) {
|
||||
if (_byte == null)
|
||||
{
|
||||
throw new ArgumentNullException("_byte is a required property for FormatTest and cannot be null");
|
||||
}
|
||||
this._Byte = _byte;
|
||||
this._Date = date;
|
||||
// to ensure "password" is required (not null)
|
||||
if (password == null) {
|
||||
if (password == null)
|
||||
{
|
||||
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
||||
}
|
||||
this._Password = password;
|
||||
this._Integer = integer;
|
||||
if (this.Integer != null) this._flagInteger = true;
|
||||
if (this.Integer != null)
|
||||
{
|
||||
this._flagInteger = true;
|
||||
}
|
||||
this._Int32 = int32;
|
||||
if (this.Int32 != null) this._flagInt32 = true;
|
||||
if (this.Int32 != null)
|
||||
{
|
||||
this._flagInt32 = true;
|
||||
}
|
||||
this._Int64 = int64;
|
||||
if (this.Int64 != null) this._flagInt64 = true;
|
||||
if (this.Int64 != null)
|
||||
{
|
||||
this._flagInt64 = true;
|
||||
}
|
||||
this._Float = _float;
|
||||
if (this.Float != null) this._flagFloat = true;
|
||||
if (this.Float != null)
|
||||
{
|
||||
this._flagFloat = true;
|
||||
}
|
||||
this._Double = _double;
|
||||
if (this.Double != null) this._flagDouble = true;
|
||||
if (this.Double != null)
|
||||
{
|
||||
this._flagDouble = true;
|
||||
}
|
||||
this._Decimal = _decimal;
|
||||
if (this.Decimal != null) this._flagDecimal = true;
|
||||
if (this.Decimal != null)
|
||||
{
|
||||
this._flagDecimal = true;
|
||||
}
|
||||
this._String = _string;
|
||||
if (this.String != null) this._flagString = true;
|
||||
if (this.String != null)
|
||||
{
|
||||
this._flagString = true;
|
||||
}
|
||||
this._Binary = binary;
|
||||
if (this.Binary != null) this._flagBinary = true;
|
||||
if (this.Binary != null)
|
||||
{
|
||||
this._flagBinary = true;
|
||||
}
|
||||
this._DateTime = dateTime;
|
||||
if (this.DateTime != null) this._flagDateTime = true;
|
||||
if (this.DateTime != null)
|
||||
{
|
||||
this._flagDateTime = true;
|
||||
}
|
||||
this._Uuid = uuid;
|
||||
if (this.Uuid != null) this._flagUuid = true;
|
||||
if (this.Uuid != null)
|
||||
{
|
||||
this._flagUuid = true;
|
||||
}
|
||||
this._PatternWithDigits = patternWithDigits;
|
||||
if (this.PatternWithDigits != null) this._flagPatternWithDigits = true;
|
||||
if (this.PatternWithDigits != null)
|
||||
{
|
||||
this._flagPatternWithDigits = true;
|
||||
}
|
||||
this._PatternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||
if (this.PatternWithDigitsAndDelimiter != null) this._flagPatternWithDigitsAndDelimiter = true;
|
||||
if (this.PatternWithDigitsAndDelimiter != null)
|
||||
{
|
||||
this._flagPatternWithDigitsAndDelimiter = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,8 @@ namespace Org.OpenAPITools.Model
|
||||
public GrandparentAnimal(string petType = default(string))
|
||||
{
|
||||
// to ensure "petType" is required (not null)
|
||||
if (petType == null) {
|
||||
if (petType == null)
|
||||
{
|
||||
throw new ArgumentNullException("petType is a required property for GrandparentAnimal and cannot be null");
|
||||
}
|
||||
this._PetType = petType;
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public HealthCheckResult(string nullableMessage = default(string))
|
||||
{
|
||||
this._NullableMessage = nullableMessage;
|
||||
if (this.NullableMessage != null) this._flagNullableMessage = true;
|
||||
if (this.NullableMessage != null)
|
||||
{
|
||||
this._flagNullableMessage = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public InlineResponseDefault(Foo _string = default(Foo))
|
||||
{
|
||||
this._String = _string;
|
||||
if (this.String != null) this._flagString = true;
|
||||
if (this.String != null)
|
||||
{
|
||||
this._flagString = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -45,12 +45,14 @@ namespace Org.OpenAPITools.Model
|
||||
public IsoscelesTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for IsoscelesTriangle and cannot be null");
|
||||
}
|
||||
this._ShapeType = shapeType;
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for IsoscelesTriangle and cannot be null");
|
||||
}
|
||||
this._TriangleType = triangleType;
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public List(string _123list = default(string))
|
||||
{
|
||||
this.__123List = _123list;
|
||||
if (this._123List != null) this._flag_123List = true;
|
||||
if (this._123List != null)
|
||||
{
|
||||
this._flag_123List = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -89,13 +89,25 @@ namespace Org.OpenAPITools.Model
|
||||
public MapTest(Dictionary<string, Dictionary<string, string>> mapMapOfString = default(Dictionary<string, Dictionary<string, string>>), Dictionary<string, InnerEnum> mapOfEnumString = default(Dictionary<string, InnerEnum>), Dictionary<string, bool> directMap = default(Dictionary<string, bool>), Dictionary<string, bool> indirectMap = default(Dictionary<string, bool>))
|
||||
{
|
||||
this._MapMapOfString = mapMapOfString;
|
||||
if (this.MapMapOfString != null) this._flagMapMapOfString = true;
|
||||
if (this.MapMapOfString != null)
|
||||
{
|
||||
this._flagMapMapOfString = true;
|
||||
}
|
||||
this._MapOfEnumString = mapOfEnumString;
|
||||
if (this.MapOfEnumString != null) this._flagMapOfEnumString = true;
|
||||
if (this.MapOfEnumString != null)
|
||||
{
|
||||
this._flagMapOfEnumString = true;
|
||||
}
|
||||
this._DirectMap = directMap;
|
||||
if (this.DirectMap != null) this._flagDirectMap = true;
|
||||
if (this.DirectMap != null)
|
||||
{
|
||||
this._flagDirectMap = true;
|
||||
}
|
||||
this._IndirectMap = indirectMap;
|
||||
if (this.IndirectMap != null) this._flagIndirectMap = true;
|
||||
if (this.IndirectMap != null)
|
||||
{
|
||||
this._flagIndirectMap = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -41,11 +41,20 @@ namespace Org.OpenAPITools.Model
|
||||
public MixedPropertiesAndAdditionalPropertiesClass(Guid uuid = default(Guid), DateTime dateTime = default(DateTime), Dictionary<string, Animal> map = default(Dictionary<string, Animal>))
|
||||
{
|
||||
this._Uuid = uuid;
|
||||
if (this.Uuid != null) this._flagUuid = true;
|
||||
if (this.Uuid != null)
|
||||
{
|
||||
this._flagUuid = true;
|
||||
}
|
||||
this._DateTime = dateTime;
|
||||
if (this.DateTime != null) this._flagDateTime = true;
|
||||
if (this.DateTime != null)
|
||||
{
|
||||
this._flagDateTime = true;
|
||||
}
|
||||
this._Map = map;
|
||||
if (this.Map != null) this._flagMap = true;
|
||||
if (this.Map != null)
|
||||
{
|
||||
this._flagMap = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,9 +40,15 @@ namespace Org.OpenAPITools.Model
|
||||
public Model200Response(int name = default(int), string _class = default(string))
|
||||
{
|
||||
this._Name = name;
|
||||
if (this.Name != null) this._flagName = true;
|
||||
if (this.Name != null)
|
||||
{
|
||||
this._flagName = true;
|
||||
}
|
||||
this._Class = _class;
|
||||
if (this.Class != null) this._flagClass = true;
|
||||
if (this.Class != null)
|
||||
{
|
||||
this._flagClass = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public ModelClient(string _client = default(string))
|
||||
{
|
||||
this.__Client = _client;
|
||||
if (this._Client != null) this._flag_Client = true;
|
||||
if (this._Client != null)
|
||||
{
|
||||
this._flag_Client = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,10 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
this.__Name = name;
|
||||
this._Property = property;
|
||||
if (this.Property != null) this._flagProperty = true;
|
||||
if (this.Property != null)
|
||||
{
|
||||
this._flagProperty = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -50,29 +50,65 @@ namespace Org.OpenAPITools.Model
|
||||
public NullableClass(int? integerProp = default(int?), decimal? numberProp = default(decimal?), bool? booleanProp = default(bool?), string stringProp = default(string), DateTime? dateProp = default(DateTime?), DateTime? datetimeProp = default(DateTime?), List<Object> arrayNullableProp = default(List<Object>), List<Object> arrayAndItemsNullableProp = default(List<Object>), List<Object> arrayItemsNullable = default(List<Object>), Dictionary<string, Object> objectNullableProp = default(Dictionary<string, Object>), Dictionary<string, Object> objectAndItemsNullableProp = default(Dictionary<string, Object>), Dictionary<string, Object> objectItemsNullable = default(Dictionary<string, Object>)) : base()
|
||||
{
|
||||
this._IntegerProp = integerProp;
|
||||
if (this.IntegerProp != null) this._flagIntegerProp = true;
|
||||
if (this.IntegerProp != null)
|
||||
{
|
||||
this._flagIntegerProp = true;
|
||||
}
|
||||
this._NumberProp = numberProp;
|
||||
if (this.NumberProp != null) this._flagNumberProp = true;
|
||||
if (this.NumberProp != null)
|
||||
{
|
||||
this._flagNumberProp = true;
|
||||
}
|
||||
this._BooleanProp = booleanProp;
|
||||
if (this.BooleanProp != null) this._flagBooleanProp = true;
|
||||
if (this.BooleanProp != null)
|
||||
{
|
||||
this._flagBooleanProp = true;
|
||||
}
|
||||
this._StringProp = stringProp;
|
||||
if (this.StringProp != null) this._flagStringProp = true;
|
||||
if (this.StringProp != null)
|
||||
{
|
||||
this._flagStringProp = true;
|
||||
}
|
||||
this._DateProp = dateProp;
|
||||
if (this.DateProp != null) this._flagDateProp = true;
|
||||
if (this.DateProp != null)
|
||||
{
|
||||
this._flagDateProp = true;
|
||||
}
|
||||
this._DatetimeProp = datetimeProp;
|
||||
if (this.DatetimeProp != null) this._flagDatetimeProp = true;
|
||||
if (this.DatetimeProp != null)
|
||||
{
|
||||
this._flagDatetimeProp = true;
|
||||
}
|
||||
this._ArrayNullableProp = arrayNullableProp;
|
||||
if (this.ArrayNullableProp != null) this._flagArrayNullableProp = true;
|
||||
if (this.ArrayNullableProp != null)
|
||||
{
|
||||
this._flagArrayNullableProp = true;
|
||||
}
|
||||
this._ArrayAndItemsNullableProp = arrayAndItemsNullableProp;
|
||||
if (this.ArrayAndItemsNullableProp != null) this._flagArrayAndItemsNullableProp = true;
|
||||
if (this.ArrayAndItemsNullableProp != null)
|
||||
{
|
||||
this._flagArrayAndItemsNullableProp = true;
|
||||
}
|
||||
this._ArrayItemsNullable = arrayItemsNullable;
|
||||
if (this.ArrayItemsNullable != null) this._flagArrayItemsNullable = true;
|
||||
if (this.ArrayItemsNullable != null)
|
||||
{
|
||||
this._flagArrayItemsNullable = true;
|
||||
}
|
||||
this._ObjectNullableProp = objectNullableProp;
|
||||
if (this.ObjectNullableProp != null) this._flagObjectNullableProp = true;
|
||||
if (this.ObjectNullableProp != null)
|
||||
{
|
||||
this._flagObjectNullableProp = true;
|
||||
}
|
||||
this._ObjectAndItemsNullableProp = objectAndItemsNullableProp;
|
||||
if (this.ObjectAndItemsNullableProp != null) this._flagObjectAndItemsNullableProp = true;
|
||||
if (this.ObjectAndItemsNullableProp != null)
|
||||
{
|
||||
this._flagObjectAndItemsNullableProp = true;
|
||||
}
|
||||
this._ObjectItemsNullable = objectItemsNullable;
|
||||
if (this.ObjectItemsNullable != null) this._flagObjectItemsNullable = true;
|
||||
if (this.ObjectItemsNullable != null)
|
||||
{
|
||||
this._flagObjectItemsNullable = true;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public NumberOnly(decimal justNumber = default(decimal))
|
||||
{
|
||||
this._JustNumber = justNumber;
|
||||
if (this.JustNumber != null) this._flagJustNumber = true;
|
||||
if (this.JustNumber != null)
|
||||
{
|
||||
this._flagJustNumber = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -42,13 +42,25 @@ namespace Org.OpenAPITools.Model
|
||||
public ObjectWithDeprecatedFields(string uuid = default(string), decimal id = default(decimal), DeprecatedObject deprecatedRef = default(DeprecatedObject), List<string> bars = default(List<string>))
|
||||
{
|
||||
this._Uuid = uuid;
|
||||
if (this.Uuid != null) this._flagUuid = true;
|
||||
if (this.Uuid != null)
|
||||
{
|
||||
this._flagUuid = true;
|
||||
}
|
||||
this._Id = id;
|
||||
if (this.Id != null) this._flagId = true;
|
||||
if (this.Id != null)
|
||||
{
|
||||
this._flagId = true;
|
||||
}
|
||||
this._DeprecatedRef = deprecatedRef;
|
||||
if (this.DeprecatedRef != null) this._flagDeprecatedRef = true;
|
||||
if (this.DeprecatedRef != null)
|
||||
{
|
||||
this._flagDeprecatedRef = true;
|
||||
}
|
||||
this._Bars = bars;
|
||||
if (this.Bars != null) this._flagBars = true;
|
||||
if (this.Bars != null)
|
||||
{
|
||||
this._flagBars = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -98,15 +98,30 @@ namespace Org.OpenAPITools.Model
|
||||
public Order(long id = default(long), long petId = default(long), int quantity = default(int), DateTime shipDate = default(DateTime), StatusEnum? status = default(StatusEnum?), bool complete = false)
|
||||
{
|
||||
this._Id = id;
|
||||
if (this.Id != null) this._flagId = true;
|
||||
if (this.Id != null)
|
||||
{
|
||||
this._flagId = true;
|
||||
}
|
||||
this._PetId = petId;
|
||||
if (this.PetId != null) this._flagPetId = true;
|
||||
if (this.PetId != null)
|
||||
{
|
||||
this._flagPetId = true;
|
||||
}
|
||||
this._Quantity = quantity;
|
||||
if (this.Quantity != null) this._flagQuantity = true;
|
||||
if (this.Quantity != null)
|
||||
{
|
||||
this._flagQuantity = true;
|
||||
}
|
||||
this._ShipDate = shipDate;
|
||||
if (this.ShipDate != null) this._flagShipDate = true;
|
||||
if (this.ShipDate != null)
|
||||
{
|
||||
this._flagShipDate = true;
|
||||
}
|
||||
this._Status = status;
|
||||
if (this.Status != null) this._flagStatus = true;
|
||||
if (this.Status != null)
|
||||
{
|
||||
this._flagStatus = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -41,11 +41,20 @@ namespace Org.OpenAPITools.Model
|
||||
public OuterComposite(decimal myNumber = default(decimal), string myString = default(string), bool myBoolean = default(bool))
|
||||
{
|
||||
this._MyNumber = myNumber;
|
||||
if (this.MyNumber != null) this._flagMyNumber = true;
|
||||
if (this.MyNumber != null)
|
||||
{
|
||||
this._flagMyNumber = true;
|
||||
}
|
||||
this._MyString = myString;
|
||||
if (this.MyString != null) this._flagMyString = true;
|
||||
if (this.MyString != null)
|
||||
{
|
||||
this._flagMyString = true;
|
||||
}
|
||||
this._MyBoolean = myBoolean;
|
||||
if (this.MyBoolean != null) this._flagMyBoolean = true;
|
||||
if (this.MyBoolean != null)
|
||||
{
|
||||
this._flagMyBoolean = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -106,23 +106,37 @@ namespace Org.OpenAPITools.Model
|
||||
public Pet(long id = default(long), Category category = default(Category), string name = default(string), List<string> photoUrls = default(List<string>), List<Tag> tags = default(List<Tag>), StatusEnum? status = default(StatusEnum?))
|
||||
{
|
||||
// to ensure "name" is required (not null)
|
||||
if (name == null) {
|
||||
if (name == null)
|
||||
{
|
||||
throw new ArgumentNullException("name is a required property for Pet and cannot be null");
|
||||
}
|
||||
this._Name = name;
|
||||
// to ensure "photoUrls" is required (not null)
|
||||
if (photoUrls == null) {
|
||||
if (photoUrls == null)
|
||||
{
|
||||
throw new ArgumentNullException("photoUrls is a required property for Pet and cannot be null");
|
||||
}
|
||||
this._PhotoUrls = photoUrls;
|
||||
this._Id = id;
|
||||
if (this.Id != null) this._flagId = true;
|
||||
if (this.Id != null)
|
||||
{
|
||||
this._flagId = true;
|
||||
}
|
||||
this._Category = category;
|
||||
if (this.Category != null) this._flagCategory = true;
|
||||
if (this.Category != null)
|
||||
{
|
||||
this._flagCategory = true;
|
||||
}
|
||||
this._Tags = tags;
|
||||
if (this.Tags != null) this._flagTags = true;
|
||||
if (this.Tags != null)
|
||||
{
|
||||
this._flagTags = true;
|
||||
}
|
||||
this._Status = status;
|
||||
if (this.Status != null) this._flagStatus = true;
|
||||
if (this.Status != null)
|
||||
{
|
||||
this._flagStatus = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,8 @@ namespace Org.OpenAPITools.Model
|
||||
public QuadrilateralInterface(string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
if (quadrilateralType == null) {
|
||||
if (quadrilateralType == null)
|
||||
{
|
||||
throw new ArgumentNullException("quadrilateralType is a required property for QuadrilateralInterface and cannot be null");
|
||||
}
|
||||
this._QuadrilateralType = quadrilateralType;
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public ReadOnlyFirst(string baz = default(string))
|
||||
{
|
||||
this._Baz = baz;
|
||||
if (this.Baz != null) this._flagBaz = true;
|
||||
if (this.Baz != null)
|
||||
{
|
||||
this._flagBaz = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -39,7 +39,10 @@ namespace Org.OpenAPITools.Model
|
||||
public Return(int _return = default(int))
|
||||
{
|
||||
this.__Return = _return;
|
||||
if (this._Return != null) this._flag_Return = true;
|
||||
if (this._Return != null)
|
||||
{
|
||||
this._flag_Return = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -48,12 +48,14 @@ namespace Org.OpenAPITools.Model
|
||||
public ScaleneTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for ScaleneTriangle and cannot be null");
|
||||
}
|
||||
this._ShapeType = shapeType;
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for ScaleneTriangle and cannot be null");
|
||||
}
|
||||
this._TriangleType = triangleType;
|
||||
|
||||
@@ -47,7 +47,8 @@ namespace Org.OpenAPITools.Model
|
||||
public ShapeInterface(string shapeType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for ShapeInterface and cannot be null");
|
||||
}
|
||||
this._ShapeType = shapeType;
|
||||
|
||||
@@ -48,12 +48,14 @@ namespace Org.OpenAPITools.Model
|
||||
public SimpleQuadrilateral(string shapeType = default(string), string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for SimpleQuadrilateral and cannot be null");
|
||||
}
|
||||
this._ShapeType = shapeType;
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
if (quadrilateralType == null) {
|
||||
if (quadrilateralType == null)
|
||||
{
|
||||
throw new ArgumentNullException("quadrilateralType is a required property for SimpleQuadrilateral and cannot be null");
|
||||
}
|
||||
this._QuadrilateralType = quadrilateralType;
|
||||
|
||||
@@ -40,9 +40,15 @@ namespace Org.OpenAPITools.Model
|
||||
public SpecialModelName(long specialPropertyName = default(long), string specialModelName = default(string))
|
||||
{
|
||||
this._SpecialPropertyName = specialPropertyName;
|
||||
if (this.SpecialPropertyName != null) this._flagSpecialPropertyName = true;
|
||||
if (this.SpecialPropertyName != null)
|
||||
{
|
||||
this._flagSpecialPropertyName = true;
|
||||
}
|
||||
this.__SpecialModelName = specialModelName;
|
||||
if (this._SpecialModelName != null) this._flag_SpecialModelName = true;
|
||||
if (this._SpecialModelName != null)
|
||||
{
|
||||
this._flag_SpecialModelName = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,9 +40,15 @@ namespace Org.OpenAPITools.Model
|
||||
public Tag(long id = default(long), string name = default(string))
|
||||
{
|
||||
this._Id = id;
|
||||
if (this.Id != null) this._flagId = true;
|
||||
if (this.Id != null)
|
||||
{
|
||||
this._flagId = true;
|
||||
}
|
||||
this._Name = name;
|
||||
if (this.Name != null) this._flagName = true;
|
||||
if (this.Name != null)
|
||||
{
|
||||
this._flagName = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,8 @@ namespace Org.OpenAPITools.Model
|
||||
public TriangleInterface(string triangleType = default(string))
|
||||
{
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for TriangleInterface and cannot be null");
|
||||
}
|
||||
this._TriangleType = triangleType;
|
||||
|
||||
@@ -50,29 +50,65 @@ namespace Org.OpenAPITools.Model
|
||||
public User(long id = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string email = default(string), string password = default(string), string phone = default(string), int userStatus = default(int), Object objectWithNoDeclaredProps = default(Object), Object objectWithNoDeclaredPropsNullable = default(Object), Object anyTypeProp = default(Object), Object anyTypePropNullable = default(Object))
|
||||
{
|
||||
this._Id = id;
|
||||
if (this.Id != null) this._flagId = true;
|
||||
if (this.Id != null)
|
||||
{
|
||||
this._flagId = true;
|
||||
}
|
||||
this._Username = username;
|
||||
if (this.Username != null) this._flagUsername = true;
|
||||
if (this.Username != null)
|
||||
{
|
||||
this._flagUsername = true;
|
||||
}
|
||||
this._FirstName = firstName;
|
||||
if (this.FirstName != null) this._flagFirstName = true;
|
||||
if (this.FirstName != null)
|
||||
{
|
||||
this._flagFirstName = true;
|
||||
}
|
||||
this._LastName = lastName;
|
||||
if (this.LastName != null) this._flagLastName = true;
|
||||
if (this.LastName != null)
|
||||
{
|
||||
this._flagLastName = true;
|
||||
}
|
||||
this._Email = email;
|
||||
if (this.Email != null) this._flagEmail = true;
|
||||
if (this.Email != null)
|
||||
{
|
||||
this._flagEmail = true;
|
||||
}
|
||||
this._Password = password;
|
||||
if (this.Password != null) this._flagPassword = true;
|
||||
if (this.Password != null)
|
||||
{
|
||||
this._flagPassword = true;
|
||||
}
|
||||
this._Phone = phone;
|
||||
if (this.Phone != null) this._flagPhone = true;
|
||||
if (this.Phone != null)
|
||||
{
|
||||
this._flagPhone = true;
|
||||
}
|
||||
this._UserStatus = userStatus;
|
||||
if (this.UserStatus != null) this._flagUserStatus = true;
|
||||
if (this.UserStatus != null)
|
||||
{
|
||||
this._flagUserStatus = true;
|
||||
}
|
||||
this._ObjectWithNoDeclaredProps = objectWithNoDeclaredProps;
|
||||
if (this.ObjectWithNoDeclaredProps != null) this._flagObjectWithNoDeclaredProps = true;
|
||||
if (this.ObjectWithNoDeclaredProps != null)
|
||||
{
|
||||
this._flagObjectWithNoDeclaredProps = true;
|
||||
}
|
||||
this._ObjectWithNoDeclaredPropsNullable = objectWithNoDeclaredPropsNullable;
|
||||
if (this.ObjectWithNoDeclaredPropsNullable != null) this._flagObjectWithNoDeclaredPropsNullable = true;
|
||||
if (this.ObjectWithNoDeclaredPropsNullable != null)
|
||||
{
|
||||
this._flagObjectWithNoDeclaredPropsNullable = true;
|
||||
}
|
||||
this._AnyTypeProp = anyTypeProp;
|
||||
if (this.AnyTypeProp != null) this._flagAnyTypeProp = true;
|
||||
if (this.AnyTypeProp != null)
|
||||
{
|
||||
this._flagAnyTypeProp = true;
|
||||
}
|
||||
this._AnyTypePropNullable = anyTypePropNullable;
|
||||
if (this.AnyTypePropNullable != null) this._flagAnyTypePropNullable = true;
|
||||
if (this.AnyTypePropNullable != null)
|
||||
{
|
||||
this._flagAnyTypePropNullable = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -49,14 +49,21 @@ namespace Org.OpenAPITools.Model
|
||||
public Whale(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for Whale and cannot be null");
|
||||
}
|
||||
this._ClassName = className;
|
||||
this._HasBaleen = hasBaleen;
|
||||
if (this.HasBaleen != null) this._flagHasBaleen = true;
|
||||
if (this.HasBaleen != null)
|
||||
{
|
||||
this._flagHasBaleen = true;
|
||||
}
|
||||
this._HasTeeth = hasTeeth;
|
||||
if (this.HasTeeth != null) this._flagHasTeeth = true;
|
||||
if (this.HasTeeth != null)
|
||||
{
|
||||
this._flagHasTeeth = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -100,12 +100,16 @@ namespace Org.OpenAPITools.Model
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string)) : base()
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for Zebra and cannot be null");
|
||||
}
|
||||
this._ClassName = className;
|
||||
this._Type = type;
|
||||
if (this.Type != null) this._flagType = true;
|
||||
if (this.Type != null)
|
||||
{
|
||||
this._flagType = true;
|
||||
}
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,8 @@ namespace Org.OpenAPITools.Model
|
||||
public Animal(string className = default(string), string color = "red")
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for Animal and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -46,7 +46,8 @@ namespace Org.OpenAPITools.Model
|
||||
public AppleReq(string cultivar = default(string), bool mealy = default(bool))
|
||||
{
|
||||
// to ensure "cultivar" is required (not null)
|
||||
if (cultivar == null) {
|
||||
if (cultivar == null)
|
||||
{
|
||||
throw new ArgumentNullException("cultivar is a required property for AppleReq and cannot be null");
|
||||
}
|
||||
this.Cultivar = cultivar;
|
||||
|
||||
@@ -48,7 +48,8 @@ namespace Org.OpenAPITools.Model
|
||||
public BasquePig(string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for BasquePig and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -49,7 +49,8 @@ namespace Org.OpenAPITools.Model
|
||||
public Category(long id = default(long), string name = "default-name")
|
||||
{
|
||||
// to ensure "name" is required (not null)
|
||||
if (name == null) {
|
||||
if (name == null)
|
||||
{
|
||||
throw new ArgumentNullException("name is a required property for Category and cannot be null");
|
||||
}
|
||||
this.Name = name;
|
||||
|
||||
@@ -49,12 +49,14 @@ namespace Org.OpenAPITools.Model
|
||||
public ComplexQuadrilateral(string shapeType = default(string), string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for ComplexQuadrilateral and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
if (quadrilateralType == null) {
|
||||
if (quadrilateralType == null)
|
||||
{
|
||||
throw new ArgumentNullException("quadrilateralType is a required property for ComplexQuadrilateral and cannot be null");
|
||||
}
|
||||
this.QuadrilateralType = quadrilateralType;
|
||||
|
||||
@@ -48,7 +48,8 @@ namespace Org.OpenAPITools.Model
|
||||
public DanishPig(string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for DanishPig and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -49,12 +49,14 @@ namespace Org.OpenAPITools.Model
|
||||
public EquilateralTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for EquilateralTriangle and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for EquilateralTriangle and cannot be null");
|
||||
}
|
||||
this.TriangleType = triangleType;
|
||||
|
||||
@@ -64,13 +64,15 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
this.Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
if (_byte == null) {
|
||||
if (_byte == null)
|
||||
{
|
||||
throw new ArgumentNullException("_byte is a required property for FormatTest and cannot be null");
|
||||
}
|
||||
this.Byte = _byte;
|
||||
this.Date = date;
|
||||
// to ensure "password" is required (not null)
|
||||
if (password == null) {
|
||||
if (password == null)
|
||||
{
|
||||
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
||||
}
|
||||
this.Password = password;
|
||||
|
||||
@@ -52,7 +52,8 @@ namespace Org.OpenAPITools.Model
|
||||
public GrandparentAnimal(string petType = default(string))
|
||||
{
|
||||
// to ensure "petType" is required (not null)
|
||||
if (petType == null) {
|
||||
if (petType == null)
|
||||
{
|
||||
throw new ArgumentNullException("petType is a required property for GrandparentAnimal and cannot be null");
|
||||
}
|
||||
this.PetType = petType;
|
||||
|
||||
@@ -46,12 +46,14 @@ namespace Org.OpenAPITools.Model
|
||||
public IsoscelesTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for IsoscelesTriangle and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for IsoscelesTriangle and cannot be null");
|
||||
}
|
||||
this.TriangleType = triangleType;
|
||||
|
||||
@@ -87,12 +87,14 @@ namespace Org.OpenAPITools.Model
|
||||
public Pet(long id = default(long), Category category = default(Category), string name = default(string), List<string> photoUrls = default(List<string>), List<Tag> tags = default(List<Tag>), StatusEnum? status = default(StatusEnum?))
|
||||
{
|
||||
// to ensure "name" is required (not null)
|
||||
if (name == null) {
|
||||
if (name == null)
|
||||
{
|
||||
throw new ArgumentNullException("name is a required property for Pet and cannot be null");
|
||||
}
|
||||
this.Name = name;
|
||||
// to ensure "photoUrls" is required (not null)
|
||||
if (photoUrls == null) {
|
||||
if (photoUrls == null)
|
||||
{
|
||||
throw new ArgumentNullException("photoUrls is a required property for Pet and cannot be null");
|
||||
}
|
||||
this.PhotoUrls = photoUrls;
|
||||
|
||||
@@ -48,7 +48,8 @@ namespace Org.OpenAPITools.Model
|
||||
public QuadrilateralInterface(string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
if (quadrilateralType == null) {
|
||||
if (quadrilateralType == null)
|
||||
{
|
||||
throw new ArgumentNullException("quadrilateralType is a required property for QuadrilateralInterface and cannot be null");
|
||||
}
|
||||
this.QuadrilateralType = quadrilateralType;
|
||||
|
||||
@@ -49,12 +49,14 @@ namespace Org.OpenAPITools.Model
|
||||
public ScaleneTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for ScaleneTriangle and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for ScaleneTriangle and cannot be null");
|
||||
}
|
||||
this.TriangleType = triangleType;
|
||||
|
||||
@@ -48,7 +48,8 @@ namespace Org.OpenAPITools.Model
|
||||
public ShapeInterface(string shapeType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for ShapeInterface and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
|
||||
@@ -49,12 +49,14 @@ namespace Org.OpenAPITools.Model
|
||||
public SimpleQuadrilateral(string shapeType = default(string), string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for SimpleQuadrilateral and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
if (quadrilateralType == null) {
|
||||
if (quadrilateralType == null)
|
||||
{
|
||||
throw new ArgumentNullException("quadrilateralType is a required property for SimpleQuadrilateral and cannot be null");
|
||||
}
|
||||
this.QuadrilateralType = quadrilateralType;
|
||||
|
||||
@@ -48,7 +48,8 @@ namespace Org.OpenAPITools.Model
|
||||
public TriangleInterface(string triangleType = default(string))
|
||||
{
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for TriangleInterface and cannot be null");
|
||||
}
|
||||
this.TriangleType = triangleType;
|
||||
|
||||
@@ -50,7 +50,8 @@ namespace Org.OpenAPITools.Model
|
||||
public Whale(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for Whale and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -81,7 +81,8 @@ namespace Org.OpenAPITools.Model
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string)) : base()
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for Zebra and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -52,7 +52,8 @@ namespace Org.OpenAPITools.Model
|
||||
public Animal(string className = default(string), string color = "red")
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for Animal and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -45,7 +45,8 @@ namespace Org.OpenAPITools.Model
|
||||
public AppleReq(string cultivar = default(string), bool mealy = default(bool))
|
||||
{
|
||||
// to ensure "cultivar" is required (not null)
|
||||
if (cultivar == null) {
|
||||
if (cultivar == null)
|
||||
{
|
||||
throw new ArgumentNullException("cultivar is a required property for AppleReq and cannot be null");
|
||||
}
|
||||
this.Cultivar = cultivar;
|
||||
|
||||
@@ -47,7 +47,8 @@ namespace Org.OpenAPITools.Model
|
||||
public BasquePig(string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for BasquePig and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -48,7 +48,8 @@ namespace Org.OpenAPITools.Model
|
||||
public Category(long id = default(long), string name = "default-name")
|
||||
{
|
||||
// to ensure "name" is required (not null)
|
||||
if (name == null) {
|
||||
if (name == null)
|
||||
{
|
||||
throw new ArgumentNullException("name is a required property for Category and cannot be null");
|
||||
}
|
||||
this.Name = name;
|
||||
|
||||
@@ -48,12 +48,14 @@ namespace Org.OpenAPITools.Model
|
||||
public ComplexQuadrilateral(string shapeType = default(string), string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for ComplexQuadrilateral and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
if (quadrilateralType == null) {
|
||||
if (quadrilateralType == null)
|
||||
{
|
||||
throw new ArgumentNullException("quadrilateralType is a required property for ComplexQuadrilateral and cannot be null");
|
||||
}
|
||||
this.QuadrilateralType = quadrilateralType;
|
||||
|
||||
@@ -47,7 +47,8 @@ namespace Org.OpenAPITools.Model
|
||||
public DanishPig(string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for DanishPig and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -48,12 +48,14 @@ namespace Org.OpenAPITools.Model
|
||||
public EquilateralTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for EquilateralTriangle and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for EquilateralTriangle and cannot be null");
|
||||
}
|
||||
this.TriangleType = triangleType;
|
||||
|
||||
@@ -63,13 +63,15 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
this.Number = number;
|
||||
// to ensure "_byte" is required (not null)
|
||||
if (_byte == null) {
|
||||
if (_byte == null)
|
||||
{
|
||||
throw new ArgumentNullException("_byte is a required property for FormatTest and cannot be null");
|
||||
}
|
||||
this.Byte = _byte;
|
||||
this.Date = date;
|
||||
// to ensure "password" is required (not null)
|
||||
if (password == null) {
|
||||
if (password == null)
|
||||
{
|
||||
throw new ArgumentNullException("password is a required property for FormatTest and cannot be null");
|
||||
}
|
||||
this.Password = password;
|
||||
|
||||
@@ -51,7 +51,8 @@ namespace Org.OpenAPITools.Model
|
||||
public GrandparentAnimal(string petType = default(string))
|
||||
{
|
||||
// to ensure "petType" is required (not null)
|
||||
if (petType == null) {
|
||||
if (petType == null)
|
||||
{
|
||||
throw new ArgumentNullException("petType is a required property for GrandparentAnimal and cannot be null");
|
||||
}
|
||||
this.PetType = petType;
|
||||
|
||||
@@ -45,12 +45,14 @@ namespace Org.OpenAPITools.Model
|
||||
public IsoscelesTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for IsoscelesTriangle and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for IsoscelesTriangle and cannot be null");
|
||||
}
|
||||
this.TriangleType = triangleType;
|
||||
|
||||
@@ -86,12 +86,14 @@ namespace Org.OpenAPITools.Model
|
||||
public Pet(long id = default(long), Category category = default(Category), string name = default(string), List<string> photoUrls = default(List<string>), List<Tag> tags = default(List<Tag>), StatusEnum? status = default(StatusEnum?))
|
||||
{
|
||||
// to ensure "name" is required (not null)
|
||||
if (name == null) {
|
||||
if (name == null)
|
||||
{
|
||||
throw new ArgumentNullException("name is a required property for Pet and cannot be null");
|
||||
}
|
||||
this.Name = name;
|
||||
// to ensure "photoUrls" is required (not null)
|
||||
if (photoUrls == null) {
|
||||
if (photoUrls == null)
|
||||
{
|
||||
throw new ArgumentNullException("photoUrls is a required property for Pet and cannot be null");
|
||||
}
|
||||
this.PhotoUrls = photoUrls;
|
||||
|
||||
@@ -47,7 +47,8 @@ namespace Org.OpenAPITools.Model
|
||||
public QuadrilateralInterface(string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
if (quadrilateralType == null) {
|
||||
if (quadrilateralType == null)
|
||||
{
|
||||
throw new ArgumentNullException("quadrilateralType is a required property for QuadrilateralInterface and cannot be null");
|
||||
}
|
||||
this.QuadrilateralType = quadrilateralType;
|
||||
|
||||
@@ -48,12 +48,14 @@ namespace Org.OpenAPITools.Model
|
||||
public ScaleneTriangle(string shapeType = default(string), string triangleType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for ScaleneTriangle and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for ScaleneTriangle and cannot be null");
|
||||
}
|
||||
this.TriangleType = triangleType;
|
||||
|
||||
@@ -47,7 +47,8 @@ namespace Org.OpenAPITools.Model
|
||||
public ShapeInterface(string shapeType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for ShapeInterface and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
|
||||
@@ -48,12 +48,14 @@ namespace Org.OpenAPITools.Model
|
||||
public SimpleQuadrilateral(string shapeType = default(string), string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for SimpleQuadrilateral and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
if (quadrilateralType == null) {
|
||||
if (quadrilateralType == null)
|
||||
{
|
||||
throw new ArgumentNullException("quadrilateralType is a required property for SimpleQuadrilateral and cannot be null");
|
||||
}
|
||||
this.QuadrilateralType = quadrilateralType;
|
||||
|
||||
@@ -47,7 +47,8 @@ namespace Org.OpenAPITools.Model
|
||||
public TriangleInterface(string triangleType = default(string))
|
||||
{
|
||||
// to ensure "triangleType" is required (not null)
|
||||
if (triangleType == null) {
|
||||
if (triangleType == null)
|
||||
{
|
||||
throw new ArgumentNullException("triangleType is a required property for TriangleInterface and cannot be null");
|
||||
}
|
||||
this.TriangleType = triangleType;
|
||||
|
||||
@@ -49,7 +49,8 @@ namespace Org.OpenAPITools.Model
|
||||
public Whale(bool hasBaleen = default(bool), bool hasTeeth = default(bool), string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for Whale and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -80,7 +80,8 @@ namespace Org.OpenAPITools.Model
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string)) : base()
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for Zebra and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -52,7 +52,8 @@ namespace Org.OpenAPITools.Model
|
||||
public Animal(string className = default(string), string color = "red")
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for Animal and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -45,7 +45,8 @@ namespace Org.OpenAPITools.Model
|
||||
public AppleReq(string cultivar = default(string), bool mealy = default(bool))
|
||||
{
|
||||
// to ensure "cultivar" is required (not null)
|
||||
if (cultivar == null) {
|
||||
if (cultivar == null)
|
||||
{
|
||||
throw new ArgumentNullException("cultivar is a required property for AppleReq and cannot be null");
|
||||
}
|
||||
this.Cultivar = cultivar;
|
||||
|
||||
@@ -47,7 +47,8 @@ namespace Org.OpenAPITools.Model
|
||||
public BasquePig(string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null) {
|
||||
if (className == null)
|
||||
{
|
||||
throw new ArgumentNullException("className is a required property for BasquePig and cannot be null");
|
||||
}
|
||||
this.ClassName = className;
|
||||
|
||||
@@ -48,7 +48,8 @@ namespace Org.OpenAPITools.Model
|
||||
public Category(long id = default(long), string name = "default-name")
|
||||
{
|
||||
// to ensure "name" is required (not null)
|
||||
if (name == null) {
|
||||
if (name == null)
|
||||
{
|
||||
throw new ArgumentNullException("name is a required property for Category and cannot be null");
|
||||
}
|
||||
this.Name = name;
|
||||
|
||||
@@ -48,12 +48,14 @@ namespace Org.OpenAPITools.Model
|
||||
public ComplexQuadrilateral(string shapeType = default(string), string quadrilateralType = default(string))
|
||||
{
|
||||
// to ensure "shapeType" is required (not null)
|
||||
if (shapeType == null) {
|
||||
if (shapeType == null)
|
||||
{
|
||||
throw new ArgumentNullException("shapeType is a required property for ComplexQuadrilateral and cannot be null");
|
||||
}
|
||||
this.ShapeType = shapeType;
|
||||
// to ensure "quadrilateralType" is required (not null)
|
||||
if (quadrilateralType == null) {
|
||||
if (quadrilateralType == null)
|
||||
{
|
||||
throw new ArgumentNullException("quadrilateralType is a required property for ComplexQuadrilateral and cannot be null");
|
||||
}
|
||||
this.QuadrilateralType = quadrilateralType;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user