OneOf should handle Inheritance based type (#18892)

This commit is contained in:
Ghufran Zahidi 2024-06-15 21:36:56 +05:30 committed by GitHub
parent 642b1a3a95
commit 3d93862c6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
97 changed files with 241 additions and 241 deletions

View File

@ -56,7 +56,7 @@
set
{
{{#oneOf}}
{{^-first}}else {{/-first}}if (value.GetType() == typeof({{{.}}}))
{{^-first}}else {{/-first}}if (value.GetType() == typeof({{{.}}}) || value is {{{.}}})
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Apple))
if (value.GetType() == typeof(Apple) || value is Apple)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
else if (value.GetType() == typeof(Banana) || value is Banana)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(AppleReq))
if (value.GetType() == typeof(AppleReq) || value is AppleReq)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(BananaReq))
else if (value.GetType() == typeof(BananaReq) || value is BananaReq)
{
this._actualInstance = value;
}

View File

@ -86,15 +86,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Pig))
if (value.GetType() == typeof(Pig) || value is Pig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Whale))
else if (value.GetType() == typeof(Whale) || value is Whale)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Zebra))
else if (value.GetType() == typeof(Zebra) || value is Zebra)
{
this._actualInstance = value;
}

View File

@ -109,23 +109,23 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(MixedSubId))
if (value.GetType() == typeof(MixedSubId) || value is MixedSubId)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
else if (value.GetType() == typeof(decimal) || value is decimal)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(int))
else if (value.GetType() == typeof(int) || value is int)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -83,11 +83,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -61,7 +61,7 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(string))
if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -74,11 +74,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(BasquePig))
if (value.GetType() == typeof(BasquePig) || value is BasquePig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(DanishPig))
else if (value.GetType() == typeof(DanishPig) || value is DanishPig)
{
this._actualInstance = value;
}

View File

@ -97,19 +97,19 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(List<string>))
if (value.GetType() == typeof(List<string>) || value is List<string>)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Object))
else if (value.GetType() == typeof(Object) || value is Object)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -74,11 +74,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(ComplexQuadrilateral))
if (value.GetType() == typeof(ComplexQuadrilateral) || value is ComplexQuadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(SimpleQuadrilateral))
else if (value.GetType() == typeof(SimpleQuadrilateral) || value is SimpleQuadrilateral)
{
this._actualInstance = value;
}

View File

@ -74,11 +74,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -83,11 +83,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -86,15 +86,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(EquilateralTriangle))
if (value.GetType() == typeof(EquilateralTriangle) || value is EquilateralTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(IsoscelesTriangle))
else if (value.GetType() == typeof(IsoscelesTriangle) || value is IsoscelesTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(ScaleneTriangle))
else if (value.GetType() == typeof(ScaleneTriangle) || value is ScaleneTriangle)
{
this._actualInstance = value;
}

View File

@ -72,11 +72,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Apple))
if (value.GetType() == typeof(Apple) || value is Apple)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
else if (value.GetType() == typeof(Banana) || value is Banana)
{
this._actualInstance = value;
}

View File

@ -81,11 +81,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(AppleReq))
if (value.GetType() == typeof(AppleReq) || value is AppleReq)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(BananaReq))
else if (value.GetType() == typeof(BananaReq) || value is BananaReq)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Pig))
if (value.GetType() == typeof(Pig) || value is Pig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Whale))
else if (value.GetType() == typeof(Whale) || value is Whale)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Zebra))
else if (value.GetType() == typeof(Zebra) || value is Zebra)
{
this._actualInstance = value;
}

View File

@ -108,23 +108,23 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(MixedSubId))
if (value.GetType() == typeof(MixedSubId) || value is MixedSubId)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
else if (value.GetType() == typeof(decimal) || value is decimal)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(int))
else if (value.GetType() == typeof(int) || value is int)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -60,7 +60,7 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(string))
if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(BasquePig))
if (value.GetType() == typeof(BasquePig) || value is BasquePig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(DanishPig))
else if (value.GetType() == typeof(DanishPig) || value is DanishPig)
{
this._actualInstance = value;
}

View File

@ -96,19 +96,19 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(List<string>))
if (value.GetType() == typeof(List<string>) || value is List<string>)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Object))
else if (value.GetType() == typeof(Object) || value is Object)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(ComplexQuadrilateral))
if (value.GetType() == typeof(ComplexQuadrilateral) || value is ComplexQuadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(SimpleQuadrilateral))
else if (value.GetType() == typeof(SimpleQuadrilateral) || value is SimpleQuadrilateral)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(EquilateralTriangle))
if (value.GetType() == typeof(EquilateralTriangle) || value is EquilateralTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(IsoscelesTriangle))
else if (value.GetType() == typeof(IsoscelesTriangle) || value is IsoscelesTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(ScaleneTriangle))
else if (value.GetType() == typeof(ScaleneTriangle) || value is ScaleneTriangle)
{
this._actualInstance = value;
}

View File

@ -72,11 +72,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Apple))
if (value.GetType() == typeof(Apple) || value is Apple)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
else if (value.GetType() == typeof(Banana) || value is Banana)
{
this._actualInstance = value;
}

View File

@ -81,11 +81,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(AppleReq))
if (value.GetType() == typeof(AppleReq) || value is AppleReq)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(BananaReq))
else if (value.GetType() == typeof(BananaReq) || value is BananaReq)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Pig))
if (value.GetType() == typeof(Pig) || value is Pig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Whale))
else if (value.GetType() == typeof(Whale) || value is Whale)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Zebra))
else if (value.GetType() == typeof(Zebra) || value is Zebra)
{
this._actualInstance = value;
}

View File

@ -108,23 +108,23 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(MixedSubId))
if (value.GetType() == typeof(MixedSubId) || value is MixedSubId)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
else if (value.GetType() == typeof(decimal) || value is decimal)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(int))
else if (value.GetType() == typeof(int) || value is int)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -60,7 +60,7 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(string))
if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(BasquePig))
if (value.GetType() == typeof(BasquePig) || value is BasquePig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(DanishPig))
else if (value.GetType() == typeof(DanishPig) || value is DanishPig)
{
this._actualInstance = value;
}

View File

@ -96,19 +96,19 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(List<string>))
if (value.GetType() == typeof(List<string>) || value is List<string>)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Object))
else if (value.GetType() == typeof(Object) || value is Object)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(ComplexQuadrilateral))
if (value.GetType() == typeof(ComplexQuadrilateral) || value is ComplexQuadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(SimpleQuadrilateral))
else if (value.GetType() == typeof(SimpleQuadrilateral) || value is SimpleQuadrilateral)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(EquilateralTriangle))
if (value.GetType() == typeof(EquilateralTriangle) || value is EquilateralTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(IsoscelesTriangle))
else if (value.GetType() == typeof(IsoscelesTriangle) || value is IsoscelesTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(ScaleneTriangle))
else if (value.GetType() == typeof(ScaleneTriangle) || value is ScaleneTriangle)
{
this._actualInstance = value;
}

View File

@ -72,11 +72,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Apple))
if (value.GetType() == typeof(Apple) || value is Apple)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
else if (value.GetType() == typeof(Banana) || value is Banana)
{
this._actualInstance = value;
}

View File

@ -81,11 +81,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(AppleReq))
if (value.GetType() == typeof(AppleReq) || value is AppleReq)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(BananaReq))
else if (value.GetType() == typeof(BananaReq) || value is BananaReq)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Pig))
if (value.GetType() == typeof(Pig) || value is Pig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Whale))
else if (value.GetType() == typeof(Whale) || value is Whale)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Zebra))
else if (value.GetType() == typeof(Zebra) || value is Zebra)
{
this._actualInstance = value;
}

View File

@ -108,23 +108,23 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(MixedSubId))
if (value.GetType() == typeof(MixedSubId) || value is MixedSubId)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
else if (value.GetType() == typeof(decimal) || value is decimal)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(int))
else if (value.GetType() == typeof(int) || value is int)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -60,7 +60,7 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(string))
if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(BasquePig))
if (value.GetType() == typeof(BasquePig) || value is BasquePig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(DanishPig))
else if (value.GetType() == typeof(DanishPig) || value is DanishPig)
{
this._actualInstance = value;
}

View File

@ -96,19 +96,19 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(List<string>))
if (value.GetType() == typeof(List<string>) || value is List<string>)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Object))
else if (value.GetType() == typeof(Object) || value is Object)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(ComplexQuadrilateral))
if (value.GetType() == typeof(ComplexQuadrilateral) || value is ComplexQuadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(SimpleQuadrilateral))
else if (value.GetType() == typeof(SimpleQuadrilateral) || value is SimpleQuadrilateral)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(EquilateralTriangle))
if (value.GetType() == typeof(EquilateralTriangle) || value is EquilateralTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(IsoscelesTriangle))
else if (value.GetType() == typeof(IsoscelesTriangle) || value is IsoscelesTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(ScaleneTriangle))
else if (value.GetType() == typeof(ScaleneTriangle) || value is ScaleneTriangle)
{
this._actualInstance = value;
}

View File

@ -72,11 +72,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Apple))
if (value.GetType() == typeof(Apple) || value is Apple)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
else if (value.GetType() == typeof(Banana) || value is Banana)
{
this._actualInstance = value;
}

View File

@ -81,11 +81,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(AppleReq))
if (value.GetType() == typeof(AppleReq) || value is AppleReq)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(BananaReq))
else if (value.GetType() == typeof(BananaReq) || value is BananaReq)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Pig))
if (value.GetType() == typeof(Pig) || value is Pig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Whale))
else if (value.GetType() == typeof(Whale) || value is Whale)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Zebra))
else if (value.GetType() == typeof(Zebra) || value is Zebra)
{
this._actualInstance = value;
}

View File

@ -108,23 +108,23 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(MixedSubId))
if (value.GetType() == typeof(MixedSubId) || value is MixedSubId)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
else if (value.GetType() == typeof(decimal) || value is decimal)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(int))
else if (value.GetType() == typeof(int) || value is int)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -60,7 +60,7 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(string))
if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(BasquePig))
if (value.GetType() == typeof(BasquePig) || value is BasquePig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(DanishPig))
else if (value.GetType() == typeof(DanishPig) || value is DanishPig)
{
this._actualInstance = value;
}

View File

@ -96,19 +96,19 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(List<string>))
if (value.GetType() == typeof(List<string>) || value is List<string>)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Object))
else if (value.GetType() == typeof(Object) || value is Object)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(ComplexQuadrilateral))
if (value.GetType() == typeof(ComplexQuadrilateral) || value is ComplexQuadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(SimpleQuadrilateral))
else if (value.GetType() == typeof(SimpleQuadrilateral) || value is SimpleQuadrilateral)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(EquilateralTriangle))
if (value.GetType() == typeof(EquilateralTriangle) || value is EquilateralTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(IsoscelesTriangle))
else if (value.GetType() == typeof(IsoscelesTriangle) || value is IsoscelesTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(ScaleneTriangle))
else if (value.GetType() == typeof(ScaleneTriangle) || value is ScaleneTriangle)
{
this._actualInstance = value;
}

View File

@ -72,11 +72,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Apple))
if (value.GetType() == typeof(Apple) || value is Apple)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
else if (value.GetType() == typeof(Banana) || value is Banana)
{
this._actualInstance = value;
}

View File

@ -81,11 +81,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(AppleReq))
if (value.GetType() == typeof(AppleReq) || value is AppleReq)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(BananaReq))
else if (value.GetType() == typeof(BananaReq) || value is BananaReq)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Pig))
if (value.GetType() == typeof(Pig) || value is Pig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Whale))
else if (value.GetType() == typeof(Whale) || value is Whale)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Zebra))
else if (value.GetType() == typeof(Zebra) || value is Zebra)
{
this._actualInstance = value;
}

View File

@ -108,23 +108,23 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(MixedSubId))
if (value.GetType() == typeof(MixedSubId) || value is MixedSubId)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
else if (value.GetType() == typeof(decimal) || value is decimal)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(int))
else if (value.GetType() == typeof(int) || value is int)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -60,7 +60,7 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(string))
if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(BasquePig))
if (value.GetType() == typeof(BasquePig) || value is BasquePig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(DanishPig))
else if (value.GetType() == typeof(DanishPig) || value is DanishPig)
{
this._actualInstance = value;
}

View File

@ -96,19 +96,19 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(List<string>))
if (value.GetType() == typeof(List<string>) || value is List<string>)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Object))
else if (value.GetType() == typeof(Object) || value is Object)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(ComplexQuadrilateral))
if (value.GetType() == typeof(ComplexQuadrilateral) || value is ComplexQuadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(SimpleQuadrilateral))
else if (value.GetType() == typeof(SimpleQuadrilateral) || value is SimpleQuadrilateral)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(EquilateralTriangle))
if (value.GetType() == typeof(EquilateralTriangle) || value is EquilateralTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(IsoscelesTriangle))
else if (value.GetType() == typeof(IsoscelesTriangle) || value is IsoscelesTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(ScaleneTriangle))
else if (value.GetType() == typeof(ScaleneTriangle) || value is ScaleneTriangle)
{
this._actualInstance = value;
}

View File

@ -72,11 +72,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Apple))
if (value.GetType() == typeof(Apple) || value is Apple)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
else if (value.GetType() == typeof(Banana) || value is Banana)
{
this._actualInstance = value;
}

View File

@ -81,11 +81,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(AppleReq))
if (value.GetType() == typeof(AppleReq) || value is AppleReq)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(BananaReq))
else if (value.GetType() == typeof(BananaReq) || value is BananaReq)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Pig))
if (value.GetType() == typeof(Pig) || value is Pig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Whale))
else if (value.GetType() == typeof(Whale) || value is Whale)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Zebra))
else if (value.GetType() == typeof(Zebra) || value is Zebra)
{
this._actualInstance = value;
}

View File

@ -108,23 +108,23 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(MixedSubId))
if (value.GetType() == typeof(MixedSubId) || value is MixedSubId)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
else if (value.GetType() == typeof(decimal) || value is decimal)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(int))
else if (value.GetType() == typeof(int) || value is int)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -60,7 +60,7 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(string))
if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(BasquePig))
if (value.GetType() == typeof(BasquePig) || value is BasquePig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(DanishPig))
else if (value.GetType() == typeof(DanishPig) || value is DanishPig)
{
this._actualInstance = value;
}

View File

@ -96,19 +96,19 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(List<string>))
if (value.GetType() == typeof(List<string>) || value is List<string>)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Object))
else if (value.GetType() == typeof(Object) || value is Object)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(ComplexQuadrilateral))
if (value.GetType() == typeof(ComplexQuadrilateral) || value is ComplexQuadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(SimpleQuadrilateral))
else if (value.GetType() == typeof(SimpleQuadrilateral) || value is SimpleQuadrilateral)
{
this._actualInstance = value;
}

View File

@ -73,11 +73,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -82,11 +82,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -85,15 +85,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(EquilateralTriangle))
if (value.GetType() == typeof(EquilateralTriangle) || value is EquilateralTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(IsoscelesTriangle))
else if (value.GetType() == typeof(IsoscelesTriangle) || value is IsoscelesTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(ScaleneTriangle))
else if (value.GetType() == typeof(ScaleneTriangle) || value is ScaleneTriangle)
{
this._actualInstance = value;
}

View File

@ -70,11 +70,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Apple))
if (value.GetType() == typeof(Apple) || value is Apple)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Banana))
else if (value.GetType() == typeof(Banana) || value is Banana)
{
this._actualInstance = value;
}

View File

@ -79,11 +79,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(AppleReq))
if (value.GetType() == typeof(AppleReq) || value is AppleReq)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(BananaReq))
else if (value.GetType() == typeof(BananaReq) || value is BananaReq)
{
this._actualInstance = value;
}

View File

@ -82,15 +82,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Pig))
if (value.GetType() == typeof(Pig) || value is Pig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Whale))
else if (value.GetType() == typeof(Whale) || value is Whale)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Zebra))
else if (value.GetType() == typeof(Zebra) || value is Zebra)
{
this._actualInstance = value;
}

View File

@ -106,23 +106,23 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(MixedSubId))
if (value.GetType() == typeof(MixedSubId) || value is MixedSubId)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(decimal))
else if (value.GetType() == typeof(decimal) || value is decimal)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(int))
else if (value.GetType() == typeof(int) || value is int)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -79,11 +79,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -58,7 +58,7 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(string))
if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -70,11 +70,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(BasquePig))
if (value.GetType() == typeof(BasquePig) || value is BasquePig)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(DanishPig))
else if (value.GetType() == typeof(DanishPig) || value is DanishPig)
{
this._actualInstance = value;
}

View File

@ -94,19 +94,19 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(List<string>))
if (value.GetType() == typeof(List<string>) || value is List<string>)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Object))
else if (value.GetType() == typeof(Object) || value is Object)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(bool))
else if (value.GetType() == typeof(bool) || value is bool)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(string))
else if (value.GetType() == typeof(string) || value is string)
{
this._actualInstance = value;
}

View File

@ -70,11 +70,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(ComplexQuadrilateral))
if (value.GetType() == typeof(ComplexQuadrilateral) || value is ComplexQuadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(SimpleQuadrilateral))
else if (value.GetType() == typeof(SimpleQuadrilateral) || value is SimpleQuadrilateral)
{
this._actualInstance = value;
}

View File

@ -70,11 +70,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -79,11 +79,11 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(Quadrilateral))
if (value.GetType() == typeof(Quadrilateral) || value is Quadrilateral)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(Triangle))
else if (value.GetType() == typeof(Triangle) || value is Triangle)
{
this._actualInstance = value;
}

View File

@ -82,15 +82,15 @@ namespace Org.OpenAPITools.Model
}
set
{
if (value.GetType() == typeof(EquilateralTriangle))
if (value.GetType() == typeof(EquilateralTriangle) || value is EquilateralTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(IsoscelesTriangle))
else if (value.GetType() == typeof(IsoscelesTriangle) || value is IsoscelesTriangle)
{
this._actualInstance = value;
}
else if (value.GetType() == typeof(ScaleneTriangle))
else if (value.GetType() == typeof(ScaleneTriangle) || value is ScaleneTriangle)
{
this._actualInstance = value;
}