mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-09 17:10:56 +00:00
do not inherit additional properties (#17140)
This commit is contained in:
parent
ad95d551ed
commit
3fa21b5603
@ -5714,6 +5714,10 @@ public class DefaultCodegen implements CodegenConfig {
|
||||
co.baseName = tag;
|
||||
}
|
||||
|
||||
protected void addParentFromContainer(CodegenModel model, Schema schema) {
|
||||
model.parent = toInstantiationType(schema);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value of the 'model.parent' property in CodegenModel, based on the value
|
||||
* of the 'additionalProperties' keyword. Some language generator use class inheritance
|
||||
@ -5733,7 +5737,7 @@ public class DefaultCodegen implements CodegenConfig {
|
||||
protected void addParentContainer(CodegenModel model, String name, Schema schema) {
|
||||
final CodegenProperty property = fromProperty(name, schema, false);
|
||||
addImport(model, property.complexType);
|
||||
model.parent = toInstantiationType(schema);
|
||||
addParentFromContainer(model, schema);
|
||||
final String instantiationType = instantiationTypes.get(property.containerType);
|
||||
if (instantiationType != null) {
|
||||
addImport(model, instantiationType);
|
||||
|
@ -234,6 +234,11 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
||||
this.setTypeMapping();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void addParentFromContainer(CodegenModel model, Schema schema) {
|
||||
// we do not want to inherit simply because additionalProperties is true
|
||||
// do nothing here
|
||||
}
|
||||
|
||||
@Override
|
||||
public void processOpts() {
|
||||
|
@ -588,7 +588,7 @@ public class CSharpModelTest {
|
||||
Assert.assertEquals(cm.classname, "Sample");
|
||||
Assert.assertEquals(cm.description, "an array model");
|
||||
Assert.assertEquals(cm.vars.size(), 0);
|
||||
Assert.assertEquals(cm.parent, "List<Children>");
|
||||
// TODO: additional properties should be of type Dictionary<string, List<Children>>
|
||||
Assert.assertEquals(cm.imports.size(), 1);
|
||||
Assert.assertEquals(Sets.intersection(cm.imports, Sets.newHashSet("Children")).size(), 1);
|
||||
}
|
||||
@ -608,7 +608,7 @@ public class CSharpModelTest {
|
||||
Assert.assertEquals(cm.classname, "Sample");
|
||||
Assert.assertEquals(cm.description, "a map model");
|
||||
Assert.assertEquals(cm.vars.size(), 0);
|
||||
Assert.assertEquals(cm.parent, "Dictionary<String, Children>");
|
||||
// TODO: additional properties should be of type Dictionary<string, Children>
|
||||
Assert.assertEquals(cm.imports.size(), 1);
|
||||
Assert.assertEquals(Sets.intersection(cm.imports, Sets.newHashSet("Children")).size(), 1);
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
[DataContract(Name = "Drawing")]
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IEquatable<Drawing>, IValidatableObject
|
||||
public partial class Drawing : IEquatable<Drawing>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -39,7 +39,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull.</param>
|
||||
/// <param name="nullableShape">nullableShape.</param>
|
||||
/// <param name="shapes">shapes.</param>
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>)) : base()
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>))
|
||||
{
|
||||
this._MainShape = mainShape;
|
||||
if (this.MainShape != null)
|
||||
@ -174,7 +174,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
@ -188,7 +187,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -221,7 +220,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.MainShape != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
@ -252,16 +251,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
[DataContract(Name = "NullableClass")]
|
||||
public partial class NullableClass : Dictionary<String, Object>, IEquatable<NullableClass>, IValidatableObject
|
||||
public partial class NullableClass : IEquatable<NullableClass>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp.</param>
|
||||
/// <param name="objectAndItemsNullableProp">objectAndItemsNullableProp.</param>
|
||||
/// <param name="objectItemsNullable">objectItemsNullable.</param>
|
||||
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()
|
||||
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>))
|
||||
{
|
||||
this._IntegerProp = integerProp;
|
||||
if (this.IntegerProp != null)
|
||||
@ -415,7 +415,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" IntegerProp: ").Append(IntegerProp).Append("\n");
|
||||
sb.Append(" NumberProp: ").Append(NumberProp).Append("\n");
|
||||
sb.Append(" BooleanProp: ").Append(BooleanProp).Append("\n");
|
||||
@ -437,7 +436,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -470,7 +469,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.IntegerProp != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IntegerProp.GetHashCode();
|
||||
@ -533,16 +532,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,13 +30,13 @@ namespace Org.OpenAPITools.Model
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "testInlineFreeformAdditionalProperties_request")]
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty.</param>
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string)) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string))
|
||||
{
|
||||
this._SomeProperty = someProperty;
|
||||
if (this.SomeProperty != null)
|
||||
@ -84,7 +84,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -95,7 +94,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -128,7 +127,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.SomeProperty != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SomeProperty.GetHashCode();
|
||||
@ -147,16 +146,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
[DataContract(Name = "zebra")]
|
||||
public partial class Zebra : Dictionary<String, Object>, IEquatable<Zebra>, IValidatableObject
|
||||
public partial class Zebra : IEquatable<Zebra>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines Type
|
||||
@ -96,7 +96,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="className">className (required).</param>
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string)) : base()
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null)
|
||||
@ -150,7 +150,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -162,7 +161,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -195,7 +194,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
{
|
||||
@ -215,16 +214,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace UseSourceGeneration.Model
|
||||
/// <summary>
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IValidatableObject
|
||||
public partial class Drawing : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -40,7 +40,7 @@ namespace UseSourceGeneration.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull</param>
|
||||
/// <param name="shapes">shapes</param>
|
||||
[JsonConstructor]
|
||||
public Drawing(Option<Shape?> mainShape = default, Option<NullableShape?> nullableShape = default, Option<ShapeOrNull?> shapeOrNull = default, Option<List<Shape>?> shapes = default) : base()
|
||||
public Drawing(Option<Shape?> mainShape = default, Option<NullableShape?> nullableShape = default, Option<ShapeOrNull?> shapeOrNull = default, Option<List<Shape>?> shapes = default)
|
||||
{
|
||||
MainShapeOption = mainShape;
|
||||
NullableShapeOption = nullableShape;
|
||||
@ -117,7 +117,6 @@ namespace UseSourceGeneration.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
@ -133,16 +132,6 @@ namespace UseSourceGeneration.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace UseSourceGeneration.Model
|
||||
/// <summary>
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
public partial class NullableClass : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class NullableClass : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -48,7 +48,7 @@ namespace UseSourceGeneration.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp</param>
|
||||
/// <param name="stringProp">stringProp</param>
|
||||
[JsonConstructor]
|
||||
public NullableClass(Option<List<Object>?> arrayAndItemsNullableProp = default, Option<List<Object>?> arrayItemsNullable = default, Option<List<Object>?> arrayNullableProp = default, Option<bool?> booleanProp = default, Option<DateTime?> dateProp = default, Option<DateTime?> datetimeProp = default, Option<int?> integerProp = default, Option<decimal?> numberProp = default, Option<Dictionary<string, Object>?> objectAndItemsNullableProp = default, Option<Dictionary<string, Object>?> objectItemsNullable = default, Option<Dictionary<string, Object>?> objectNullableProp = default, Option<string?> stringProp = default) : base()
|
||||
public NullableClass(Option<List<Object>?> arrayAndItemsNullableProp = default, Option<List<Object>?> arrayItemsNullable = default, Option<List<Object>?> arrayNullableProp = default, Option<bool?> booleanProp = default, Option<DateTime?> dateProp = default, Option<DateTime?> datetimeProp = default, Option<int?> integerProp = default, Option<decimal?> numberProp = default, Option<Dictionary<string, Object>?> objectAndItemsNullableProp = default, Option<Dictionary<string, Object>?> objectItemsNullable = default, Option<Dictionary<string, Object>?> objectNullableProp = default, Option<string?> stringProp = default)
|
||||
{
|
||||
ArrayAndItemsNullablePropOption = arrayAndItemsNullableProp;
|
||||
ArrayItemsNullableOption = arrayItemsNullable;
|
||||
@ -237,7 +237,6 @@ namespace UseSourceGeneration.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" ArrayAndItemsNullableProp: ").Append(ArrayAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ArrayItemsNullable: ").Append(ArrayItemsNullable).Append("\n");
|
||||
sb.Append(" ArrayNullableProp: ").Append(ArrayNullableProp).Append("\n");
|
||||
@ -261,16 +260,6 @@ namespace UseSourceGeneration.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,14 +30,14 @@ namespace UseSourceGeneration.Model
|
||||
/// <summary>
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty</param>
|
||||
[JsonConstructor]
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(Option<string?> someProperty = default) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(Option<string?> someProperty = default)
|
||||
{
|
||||
SomePropertyOption = someProperty;
|
||||
OnCreated();
|
||||
@ -72,7 +72,6 @@ namespace UseSourceGeneration.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -85,16 +84,6 @@ namespace UseSourceGeneration.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace UseSourceGeneration.Model
|
||||
/// <summary>
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
public partial class Zebra : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class Zebra : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Zebra" /> class.
|
||||
@ -38,7 +38,7 @@ namespace UseSourceGeneration.Model
|
||||
/// <param name="className">className</param>
|
||||
/// <param name="type">type</param>
|
||||
[JsonConstructor]
|
||||
public Zebra(string className, Option<TypeEnum?> type = default) : base()
|
||||
public Zebra(string className, Option<TypeEnum?> type = default)
|
||||
{
|
||||
ClassName = className;
|
||||
TypeOption = type;
|
||||
@ -160,7 +160,6 @@ namespace UseSourceGeneration.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -174,16 +173,6 @@ namespace UseSourceGeneration.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IValidatableObject
|
||||
public partial class Drawing : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -39,7 +39,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull</param>
|
||||
/// <param name="shapes">shapes</param>
|
||||
[JsonConstructor]
|
||||
public Drawing(Option<Shape?> mainShape = default, Option<NullableShape?> nullableShape = default, Option<ShapeOrNull?> shapeOrNull = default, Option<List<Shape>?> shapes = default) : base()
|
||||
public Drawing(Option<Shape?> mainShape = default, Option<NullableShape?> nullableShape = default, Option<ShapeOrNull?> shapeOrNull = default, Option<List<Shape>?> shapes = default)
|
||||
{
|
||||
MainShapeOption = mainShape;
|
||||
NullableShapeOption = nullableShape;
|
||||
@ -116,7 +116,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
@ -132,16 +131,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
public partial class NullableClass : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class NullableClass : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp</param>
|
||||
/// <param name="stringProp">stringProp</param>
|
||||
[JsonConstructor]
|
||||
public NullableClass(Option<List<Object>?> arrayAndItemsNullableProp = default, Option<List<Object>?> arrayItemsNullable = default, Option<List<Object>?> arrayNullableProp = default, Option<bool?> booleanProp = default, Option<DateTime?> dateProp = default, Option<DateTime?> datetimeProp = default, Option<int?> integerProp = default, Option<decimal?> numberProp = default, Option<Dictionary<string, Object>?> objectAndItemsNullableProp = default, Option<Dictionary<string, Object>?> objectItemsNullable = default, Option<Dictionary<string, Object>?> objectNullableProp = default, Option<string?> stringProp = default) : base()
|
||||
public NullableClass(Option<List<Object>?> arrayAndItemsNullableProp = default, Option<List<Object>?> arrayItemsNullable = default, Option<List<Object>?> arrayNullableProp = default, Option<bool?> booleanProp = default, Option<DateTime?> dateProp = default, Option<DateTime?> datetimeProp = default, Option<int?> integerProp = default, Option<decimal?> numberProp = default, Option<Dictionary<string, Object>?> objectAndItemsNullableProp = default, Option<Dictionary<string, Object>?> objectItemsNullable = default, Option<Dictionary<string, Object>?> objectNullableProp = default, Option<string?> stringProp = default)
|
||||
{
|
||||
ArrayAndItemsNullablePropOption = arrayAndItemsNullableProp;
|
||||
ArrayItemsNullableOption = arrayItemsNullable;
|
||||
@ -236,7 +236,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" ArrayAndItemsNullableProp: ").Append(ArrayAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ArrayItemsNullable: ").Append(ArrayItemsNullable).Append("\n");
|
||||
sb.Append(" ArrayNullableProp: ").Append(ArrayNullableProp).Append("\n");
|
||||
@ -260,16 +259,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -29,14 +29,14 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty</param>
|
||||
[JsonConstructor]
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(Option<string?> someProperty = default) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(Option<string?> someProperty = default)
|
||||
{
|
||||
SomePropertyOption = someProperty;
|
||||
OnCreated();
|
||||
@ -71,7 +71,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -84,16 +83,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
public partial class Zebra : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class Zebra : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Zebra" /> class.
|
||||
@ -37,7 +37,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="className">className</param>
|
||||
/// <param name="type">type</param>
|
||||
[JsonConstructor]
|
||||
public Zebra(string className, Option<TypeEnum?> type = default) : base()
|
||||
public Zebra(string className, Option<TypeEnum?> type = default)
|
||||
{
|
||||
ClassName = className;
|
||||
TypeOption = type;
|
||||
@ -159,7 +159,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -173,16 +172,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IValidatableObject
|
||||
public partial class Drawing : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -37,7 +37,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull</param>
|
||||
/// <param name="shapes">shapes</param>
|
||||
[JsonConstructor]
|
||||
public Drawing(Option<Shape> mainShape = default, Option<NullableShape> nullableShape = default, Option<ShapeOrNull> shapeOrNull = default, Option<List<Shape>> shapes = default) : base()
|
||||
public Drawing(Option<Shape> mainShape = default, Option<NullableShape> nullableShape = default, Option<ShapeOrNull> shapeOrNull = default, Option<List<Shape>> shapes = default)
|
||||
{
|
||||
MainShapeOption = mainShape;
|
||||
NullableShapeOption = nullableShape;
|
||||
@ -114,7 +114,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
@ -130,16 +129,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
public partial class NullableClass : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class NullableClass : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp</param>
|
||||
/// <param name="stringProp">stringProp</param>
|
||||
[JsonConstructor]
|
||||
public NullableClass(Option<List<Object>> arrayAndItemsNullableProp = default, Option<List<Object>> arrayItemsNullable = default, Option<List<Object>> arrayNullableProp = default, Option<bool?> booleanProp = default, Option<DateTime?> dateProp = default, Option<DateTime?> datetimeProp = default, Option<int?> integerProp = default, Option<decimal?> numberProp = default, Option<Dictionary<string, Object>> objectAndItemsNullableProp = default, Option<Dictionary<string, Object>> objectItemsNullable = default, Option<Dictionary<string, Object>> objectNullableProp = default, Option<string> stringProp = default) : base()
|
||||
public NullableClass(Option<List<Object>> arrayAndItemsNullableProp = default, Option<List<Object>> arrayItemsNullable = default, Option<List<Object>> arrayNullableProp = default, Option<bool?> booleanProp = default, Option<DateTime?> dateProp = default, Option<DateTime?> datetimeProp = default, Option<int?> integerProp = default, Option<decimal?> numberProp = default, Option<Dictionary<string, Object>> objectAndItemsNullableProp = default, Option<Dictionary<string, Object>> objectItemsNullable = default, Option<Dictionary<string, Object>> objectNullableProp = default, Option<string> stringProp = default)
|
||||
{
|
||||
ArrayAndItemsNullablePropOption = arrayAndItemsNullableProp;
|
||||
ArrayItemsNullableOption = arrayItemsNullable;
|
||||
@ -234,7 +234,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" ArrayAndItemsNullableProp: ").Append(ArrayAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ArrayItemsNullable: ").Append(ArrayItemsNullable).Append("\n");
|
||||
sb.Append(" ArrayNullableProp: ").Append(ArrayNullableProp).Append("\n");
|
||||
@ -258,16 +257,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -27,14 +27,14 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty</param>
|
||||
[JsonConstructor]
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(Option<string> someProperty = default) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(Option<string> someProperty = default)
|
||||
{
|
||||
SomePropertyOption = someProperty;
|
||||
OnCreated();
|
||||
@ -69,7 +69,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -82,16 +81,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
public partial class Zebra : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class Zebra : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Zebra" /> class.
|
||||
@ -35,7 +35,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="className">className</param>
|
||||
/// <param name="type">type</param>
|
||||
[JsonConstructor]
|
||||
public Zebra(string className, Option<TypeEnum?> type = default) : base()
|
||||
public Zebra(string className, Option<TypeEnum?> type = default)
|
||||
{
|
||||
ClassName = className;
|
||||
TypeOption = type;
|
||||
@ -157,7 +157,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -171,16 +170,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IValidatableObject
|
||||
public partial class Drawing : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -37,7 +37,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull</param>
|
||||
/// <param name="shapes">shapes</param>
|
||||
[JsonConstructor]
|
||||
public Drawing(Option<Shape> mainShape = default, Option<NullableShape> nullableShape = default, Option<ShapeOrNull> shapeOrNull = default, Option<List<Shape>> shapes = default) : base()
|
||||
public Drawing(Option<Shape> mainShape = default, Option<NullableShape> nullableShape = default, Option<ShapeOrNull> shapeOrNull = default, Option<List<Shape>> shapes = default)
|
||||
{
|
||||
MainShapeOption = mainShape;
|
||||
NullableShapeOption = nullableShape;
|
||||
@ -114,7 +114,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
@ -130,16 +129,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
public partial class NullableClass : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class NullableClass : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp</param>
|
||||
/// <param name="stringProp">stringProp</param>
|
||||
[JsonConstructor]
|
||||
public NullableClass(Option<List<Object>> arrayAndItemsNullableProp = default, Option<List<Object>> arrayItemsNullable = default, Option<List<Object>> arrayNullableProp = default, Option<bool?> booleanProp = default, Option<DateTime?> dateProp = default, Option<DateTime?> datetimeProp = default, Option<int?> integerProp = default, Option<decimal?> numberProp = default, Option<Dictionary<string, Object>> objectAndItemsNullableProp = default, Option<Dictionary<string, Object>> objectItemsNullable = default, Option<Dictionary<string, Object>> objectNullableProp = default, Option<string> stringProp = default) : base()
|
||||
public NullableClass(Option<List<Object>> arrayAndItemsNullableProp = default, Option<List<Object>> arrayItemsNullable = default, Option<List<Object>> arrayNullableProp = default, Option<bool?> booleanProp = default, Option<DateTime?> dateProp = default, Option<DateTime?> datetimeProp = default, Option<int?> integerProp = default, Option<decimal?> numberProp = default, Option<Dictionary<string, Object>> objectAndItemsNullableProp = default, Option<Dictionary<string, Object>> objectItemsNullable = default, Option<Dictionary<string, Object>> objectNullableProp = default, Option<string> stringProp = default)
|
||||
{
|
||||
ArrayAndItemsNullablePropOption = arrayAndItemsNullableProp;
|
||||
ArrayItemsNullableOption = arrayItemsNullable;
|
||||
@ -234,7 +234,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" ArrayAndItemsNullableProp: ").Append(ArrayAndItemsNullableProp).Append("\n");
|
||||
sb.Append(" ArrayItemsNullable: ").Append(ArrayItemsNullable).Append("\n");
|
||||
sb.Append(" ArrayNullableProp: ").Append(ArrayNullableProp).Append("\n");
|
||||
@ -258,16 +257,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -27,14 +27,14 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty</param>
|
||||
[JsonConstructor]
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(Option<string> someProperty = default) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(Option<string> someProperty = default)
|
||||
{
|
||||
SomePropertyOption = someProperty;
|
||||
OnCreated();
|
||||
@ -69,7 +69,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -82,16 +81,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <summary>
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
public partial class Zebra : Dictionary<String, Object>, IValidatableObject
|
||||
public partial class Zebra : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Zebra" /> class.
|
||||
@ -35,7 +35,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="className">className</param>
|
||||
/// <param name="type">type</param>
|
||||
[JsonConstructor]
|
||||
public Zebra(string className, Option<TypeEnum?> type = default) : base()
|
||||
public Zebra(string className, Option<TypeEnum?> type = default)
|
||||
{
|
||||
ClassName = className;
|
||||
TypeOption = type;
|
||||
@ -157,7 +157,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString()?.Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -171,16 +170,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
[DataContract(Name = "Drawing")]
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IEquatable<Drawing>, IValidatableObject
|
||||
public partial class Drawing : IEquatable<Drawing>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -40,7 +40,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull.</param>
|
||||
/// <param name="nullableShape">nullableShape.</param>
|
||||
/// <param name="shapes">shapes.</param>
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>)) : base()
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>))
|
||||
{
|
||||
this.MainShape = mainShape;
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
@ -87,7 +87,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
@ -101,7 +100,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -134,7 +133,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.MainShape != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
@ -165,16 +164,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
[DataContract(Name = "NullableClass")]
|
||||
public partial class NullableClass : Dictionary<String, Object>, IEquatable<NullableClass>, IValidatableObject
|
||||
public partial class NullableClass : IEquatable<NullableClass>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -48,7 +48,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp.</param>
|
||||
/// <param name="objectAndItemsNullableProp">objectAndItemsNullableProp.</param>
|
||||
/// <param name="objectItemsNullable">objectItemsNullable.</param>
|
||||
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()
|
||||
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>))
|
||||
{
|
||||
this.IntegerProp = integerProp;
|
||||
this.NumberProp = numberProp;
|
||||
@ -152,7 +152,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" IntegerProp: ").Append(IntegerProp).Append("\n");
|
||||
sb.Append(" NumberProp: ").Append(NumberProp).Append("\n");
|
||||
sb.Append(" BooleanProp: ").Append(BooleanProp).Append("\n");
|
||||
@ -174,7 +173,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -207,7 +206,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.IntegerProp != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IntegerProp.GetHashCode();
|
||||
@ -270,16 +269,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -31,13 +31,13 @@ namespace Org.OpenAPITools.Model
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "testInlineFreeformAdditionalProperties_request")]
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty.</param>
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string)) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string))
|
||||
{
|
||||
this.SomeProperty = someProperty;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
@ -63,7 +63,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -74,7 +73,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -107,7 +106,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.SomeProperty != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SomeProperty.GetHashCode();
|
||||
@ -126,16 +125,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
[DataContract(Name = "zebra")]
|
||||
public partial class Zebra : Dictionary<String, Object>, IEquatable<Zebra>, IValidatableObject
|
||||
public partial class Zebra : IEquatable<Zebra>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines Type
|
||||
@ -77,7 +77,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="className">className (required).</param>
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string)) : base()
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null)
|
||||
@ -109,7 +109,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -121,7 +120,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -154,7 +153,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
{
|
||||
@ -174,16 +173,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
[DataContract(Name = "Drawing")]
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IEquatable<Drawing>, IValidatableObject
|
||||
public partial class Drawing : IEquatable<Drawing>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -39,7 +39,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull.</param>
|
||||
/// <param name="nullableShape">nullableShape.</param>
|
||||
/// <param name="shapes">shapes.</param>
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>)) : base()
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>))
|
||||
{
|
||||
this.MainShape = mainShape;
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
@ -86,7 +86,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
@ -100,7 +99,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -133,7 +132,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.MainShape != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
@ -164,16 +163,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
[DataContract(Name = "NullableClass")]
|
||||
public partial class NullableClass : Dictionary<String, Object>, IEquatable<NullableClass>, IValidatableObject
|
||||
public partial class NullableClass : IEquatable<NullableClass>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp.</param>
|
||||
/// <param name="objectAndItemsNullableProp">objectAndItemsNullableProp.</param>
|
||||
/// <param name="objectItemsNullable">objectItemsNullable.</param>
|
||||
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()
|
||||
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>))
|
||||
{
|
||||
this.IntegerProp = integerProp;
|
||||
this.NumberProp = numberProp;
|
||||
@ -151,7 +151,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" IntegerProp: ").Append(IntegerProp).Append("\n");
|
||||
sb.Append(" NumberProp: ").Append(NumberProp).Append("\n");
|
||||
sb.Append(" BooleanProp: ").Append(BooleanProp).Append("\n");
|
||||
@ -173,7 +172,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -206,7 +205,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.IntegerProp != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IntegerProp.GetHashCode();
|
||||
@ -269,16 +268,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,13 +30,13 @@ namespace Org.OpenAPITools.Model
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "testInlineFreeformAdditionalProperties_request")]
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty.</param>
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string)) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string))
|
||||
{
|
||||
this.SomeProperty = someProperty;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
@ -62,7 +62,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -73,7 +72,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -106,7 +105,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.SomeProperty != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SomeProperty.GetHashCode();
|
||||
@ -125,16 +124,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
[DataContract(Name = "zebra")]
|
||||
public partial class Zebra : Dictionary<String, Object>, IEquatable<Zebra>, IValidatableObject
|
||||
public partial class Zebra : IEquatable<Zebra>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines Type
|
||||
@ -76,7 +76,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="className">className (required).</param>
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string)) : base()
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null)
|
||||
@ -108,7 +108,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -120,7 +119,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -153,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
{
|
||||
@ -173,16 +172,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
[DataContract(Name = "Drawing")]
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IEquatable<Drawing>, IValidatableObject
|
||||
public partial class Drawing : IEquatable<Drawing>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -39,7 +39,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull.</param>
|
||||
/// <param name="nullableShape">nullableShape.</param>
|
||||
/// <param name="shapes">shapes.</param>
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>)) : base()
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>))
|
||||
{
|
||||
this.MainShape = mainShape;
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
@ -86,7 +86,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
@ -100,7 +99,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -133,7 +132,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.MainShape != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
@ -164,16 +163,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
[DataContract(Name = "NullableClass")]
|
||||
public partial class NullableClass : Dictionary<String, Object>, IEquatable<NullableClass>, IValidatableObject
|
||||
public partial class NullableClass : IEquatable<NullableClass>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp.</param>
|
||||
/// <param name="objectAndItemsNullableProp">objectAndItemsNullableProp.</param>
|
||||
/// <param name="objectItemsNullable">objectItemsNullable.</param>
|
||||
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()
|
||||
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>))
|
||||
{
|
||||
this.IntegerProp = integerProp;
|
||||
this.NumberProp = numberProp;
|
||||
@ -151,7 +151,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" IntegerProp: ").Append(IntegerProp).Append("\n");
|
||||
sb.Append(" NumberProp: ").Append(NumberProp).Append("\n");
|
||||
sb.Append(" BooleanProp: ").Append(BooleanProp).Append("\n");
|
||||
@ -173,7 +172,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -206,7 +205,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.IntegerProp != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IntegerProp.GetHashCode();
|
||||
@ -269,16 +268,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,13 +30,13 @@ namespace Org.OpenAPITools.Model
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "testInlineFreeformAdditionalProperties_request")]
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty.</param>
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string)) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string))
|
||||
{
|
||||
this.SomeProperty = someProperty;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
@ -62,7 +62,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -73,7 +72,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -106,7 +105,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.SomeProperty != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SomeProperty.GetHashCode();
|
||||
@ -125,16 +124,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
[DataContract(Name = "zebra")]
|
||||
public partial class Zebra : Dictionary<String, Object>, IEquatable<Zebra>, IValidatableObject
|
||||
public partial class Zebra : IEquatable<Zebra>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines Type
|
||||
@ -76,7 +76,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="className">className (required).</param>
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string)) : base()
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null)
|
||||
@ -108,7 +108,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -120,7 +119,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -153,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
{
|
||||
@ -173,16 +172,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
[DataContract(Name = "Drawing")]
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IEquatable<Drawing>, IValidatableObject
|
||||
public partial class Drawing : IEquatable<Drawing>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -39,7 +39,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull.</param>
|
||||
/// <param name="nullableShape">nullableShape.</param>
|
||||
/// <param name="shapes">shapes.</param>
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>)) : base()
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>))
|
||||
{
|
||||
this.MainShape = mainShape;
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
@ -86,7 +86,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
@ -100,7 +99,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -133,7 +132,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.MainShape != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
@ -164,16 +163,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
[DataContract(Name = "NullableClass")]
|
||||
public partial class NullableClass : Dictionary<String, Object>, IEquatable<NullableClass>, IValidatableObject
|
||||
public partial class NullableClass : IEquatable<NullableClass>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp.</param>
|
||||
/// <param name="objectAndItemsNullableProp">objectAndItemsNullableProp.</param>
|
||||
/// <param name="objectItemsNullable">objectItemsNullable.</param>
|
||||
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()
|
||||
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>))
|
||||
{
|
||||
this.IntegerProp = integerProp;
|
||||
this.NumberProp = numberProp;
|
||||
@ -151,7 +151,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" IntegerProp: ").Append(IntegerProp).Append("\n");
|
||||
sb.Append(" NumberProp: ").Append(NumberProp).Append("\n");
|
||||
sb.Append(" BooleanProp: ").Append(BooleanProp).Append("\n");
|
||||
@ -173,7 +172,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -206,7 +205,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.IntegerProp != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IntegerProp.GetHashCode();
|
||||
@ -269,16 +268,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,13 +30,13 @@ namespace Org.OpenAPITools.Model
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "testInlineFreeformAdditionalProperties_request")]
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty.</param>
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string)) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string))
|
||||
{
|
||||
this.SomeProperty = someProperty;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
@ -62,7 +62,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -73,7 +72,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -106,7 +105,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.SomeProperty != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SomeProperty.GetHashCode();
|
||||
@ -125,16 +124,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
[DataContract(Name = "zebra")]
|
||||
public partial class Zebra : Dictionary<String, Object>, IEquatable<Zebra>, IValidatableObject
|
||||
public partial class Zebra : IEquatable<Zebra>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines Type
|
||||
@ -76,7 +76,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="className">className (required).</param>
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string)) : base()
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null)
|
||||
@ -108,7 +108,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -120,7 +119,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -153,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
{
|
||||
@ -173,16 +172,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
[DataContract(Name = "Drawing")]
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IEquatable<Drawing>
|
||||
public partial class Drawing : IEquatable<Drawing>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -37,7 +37,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull.</param>
|
||||
/// <param name="nullableShape">nullableShape.</param>
|
||||
/// <param name="shapes">shapes.</param>
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>)) : base()
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>))
|
||||
{
|
||||
this.MainShape = mainShape;
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
@ -84,7 +84,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
@ -98,7 +97,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -124,22 +123,22 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return base.Equals(input) &&
|
||||
return
|
||||
(
|
||||
this.MainShape == input.MainShape ||
|
||||
(this.MainShape != null &&
|
||||
this.MainShape.Equals(input.MainShape))
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.ShapeOrNull == input.ShapeOrNull ||
|
||||
(this.ShapeOrNull != null &&
|
||||
this.ShapeOrNull.Equals(input.ShapeOrNull))
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.NullableShape == input.NullableShape ||
|
||||
(this.NullableShape != null &&
|
||||
this.NullableShape.Equals(input.NullableShape))
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.Shapes == input.Shapes ||
|
||||
this.Shapes != null &&
|
||||
@ -157,7 +156,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.MainShape != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
|
@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
[DataContract(Name = "NullableClass")]
|
||||
public partial class NullableClass : Dictionary<String, Object>, IEquatable<NullableClass>
|
||||
public partial class NullableClass : IEquatable<NullableClass>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -45,7 +45,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp.</param>
|
||||
/// <param name="objectAndItemsNullableProp">objectAndItemsNullableProp.</param>
|
||||
/// <param name="objectItemsNullable">objectItemsNullable.</param>
|
||||
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()
|
||||
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>))
|
||||
{
|
||||
this.IntegerProp = integerProp;
|
||||
this.NumberProp = numberProp;
|
||||
@ -149,7 +149,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" IntegerProp: ").Append(IntegerProp).Append("\n");
|
||||
sb.Append(" NumberProp: ").Append(NumberProp).Append("\n");
|
||||
sb.Append(" BooleanProp: ").Append(BooleanProp).Append("\n");
|
||||
@ -171,7 +170,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -197,67 +196,67 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return base.Equals(input) &&
|
||||
return
|
||||
(
|
||||
this.IntegerProp == input.IntegerProp ||
|
||||
(this.IntegerProp != null &&
|
||||
this.IntegerProp.Equals(input.IntegerProp))
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.NumberProp == input.NumberProp ||
|
||||
(this.NumberProp != null &&
|
||||
this.NumberProp.Equals(input.NumberProp))
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.BooleanProp == input.BooleanProp ||
|
||||
(this.BooleanProp != null &&
|
||||
this.BooleanProp.Equals(input.BooleanProp))
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.StringProp == input.StringProp ||
|
||||
(this.StringProp != null &&
|
||||
this.StringProp.Equals(input.StringProp))
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.DateProp == input.DateProp ||
|
||||
(this.DateProp != null &&
|
||||
this.DateProp.Equals(input.DateProp))
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.DatetimeProp == input.DatetimeProp ||
|
||||
(this.DatetimeProp != null &&
|
||||
this.DatetimeProp.Equals(input.DatetimeProp))
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.ArrayNullableProp == input.ArrayNullableProp ||
|
||||
this.ArrayNullableProp != null &&
|
||||
input.ArrayNullableProp != null &&
|
||||
this.ArrayNullableProp.SequenceEqual(input.ArrayNullableProp)
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.ArrayAndItemsNullableProp == input.ArrayAndItemsNullableProp ||
|
||||
this.ArrayAndItemsNullableProp != null &&
|
||||
input.ArrayAndItemsNullableProp != null &&
|
||||
this.ArrayAndItemsNullableProp.SequenceEqual(input.ArrayAndItemsNullableProp)
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.ArrayItemsNullable == input.ArrayItemsNullable ||
|
||||
this.ArrayItemsNullable != null &&
|
||||
input.ArrayItemsNullable != null &&
|
||||
this.ArrayItemsNullable.SequenceEqual(input.ArrayItemsNullable)
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.ObjectNullableProp == input.ObjectNullableProp ||
|
||||
this.ObjectNullableProp != null &&
|
||||
input.ObjectNullableProp != null &&
|
||||
this.ObjectNullableProp.SequenceEqual(input.ObjectNullableProp)
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.ObjectAndItemsNullableProp == input.ObjectAndItemsNullableProp ||
|
||||
this.ObjectAndItemsNullableProp != null &&
|
||||
input.ObjectAndItemsNullableProp != null &&
|
||||
this.ObjectAndItemsNullableProp.SequenceEqual(input.ObjectAndItemsNullableProp)
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.ObjectItemsNullable == input.ObjectItemsNullable ||
|
||||
this.ObjectItemsNullable != null &&
|
||||
@ -275,7 +274,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.IntegerProp != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IntegerProp.GetHashCode();
|
||||
|
@ -28,13 +28,13 @@ namespace Org.OpenAPITools.Model
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "testInlineFreeformAdditionalProperties_request")]
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IEquatable<TestInlineFreeformAdditionalPropertiesRequest>
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable<TestInlineFreeformAdditionalPropertiesRequest>
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty.</param>
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string)) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string))
|
||||
{
|
||||
this.SomeProperty = someProperty;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
@ -60,7 +60,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -71,7 +70,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -97,7 +96,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return base.Equals(input) &&
|
||||
return
|
||||
(
|
||||
this.SomeProperty == input.SomeProperty ||
|
||||
(this.SomeProperty != null &&
|
||||
@ -114,7 +113,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.SomeProperty != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SomeProperty.GetHashCode();
|
||||
|
@ -28,7 +28,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
[DataContract(Name = "zebra")]
|
||||
public partial class Zebra : Dictionary<String, Object>, IEquatable<Zebra>
|
||||
public partial class Zebra : IEquatable<Zebra>
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines Type
|
||||
@ -74,7 +74,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="className">className (required).</param>
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string)) : base()
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null)
|
||||
@ -106,7 +106,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -118,7 +117,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -144,11 +143,11 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return base.Equals(input) &&
|
||||
return
|
||||
(
|
||||
this.Type == input.Type ||
|
||||
this.Type.Equals(input.Type)
|
||||
) && base.Equals(input) &&
|
||||
) &&
|
||||
(
|
||||
this.ClassName == input.ClassName ||
|
||||
(this.ClassName != null &&
|
||||
@ -165,7 +164,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
[DataContract(Name = "Drawing")]
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IEquatable<Drawing>, IValidatableObject
|
||||
public partial class Drawing : IEquatable<Drawing>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -39,7 +39,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull.</param>
|
||||
/// <param name="nullableShape">nullableShape.</param>
|
||||
/// <param name="shapes">shapes.</param>
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>)) : base()
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>))
|
||||
{
|
||||
this.MainShape = mainShape;
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
@ -86,7 +86,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
@ -100,7 +99,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -133,7 +132,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.MainShape != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
@ -164,16 +163,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
[DataContract(Name = "NullableClass")]
|
||||
public partial class NullableClass : Dictionary<String, Object>, IEquatable<NullableClass>, IValidatableObject
|
||||
public partial class NullableClass : IEquatable<NullableClass>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp.</param>
|
||||
/// <param name="objectAndItemsNullableProp">objectAndItemsNullableProp.</param>
|
||||
/// <param name="objectItemsNullable">objectItemsNullable.</param>
|
||||
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()
|
||||
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>))
|
||||
{
|
||||
this.IntegerProp = integerProp;
|
||||
this.NumberProp = numberProp;
|
||||
@ -151,7 +151,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" IntegerProp: ").Append(IntegerProp).Append("\n");
|
||||
sb.Append(" NumberProp: ").Append(NumberProp).Append("\n");
|
||||
sb.Append(" BooleanProp: ").Append(BooleanProp).Append("\n");
|
||||
@ -173,7 +172,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -206,7 +205,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.IntegerProp != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IntegerProp.GetHashCode();
|
||||
@ -269,16 +268,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,13 +30,13 @@ namespace Org.OpenAPITools.Model
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "testInlineFreeformAdditionalProperties_request")]
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty.</param>
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string)) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string))
|
||||
{
|
||||
this.SomeProperty = someProperty;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
@ -62,7 +62,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -73,7 +72,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -106,7 +105,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.SomeProperty != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SomeProperty.GetHashCode();
|
||||
@ -125,16 +124,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
[DataContract(Name = "zebra")]
|
||||
public partial class Zebra : Dictionary<String, Object>, IEquatable<Zebra>, IValidatableObject
|
||||
public partial class Zebra : IEquatable<Zebra>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines Type
|
||||
@ -76,7 +76,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="className">className (required).</param>
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string)) : base()
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null)
|
||||
@ -108,7 +108,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -120,7 +119,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -153,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
{
|
||||
@ -173,16 +172,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Drawing
|
||||
/// </summary>
|
||||
[DataContract(Name = "Drawing")]
|
||||
public partial class Drawing : Dictionary<String, Fruit>, IEquatable<Drawing>, IValidatableObject
|
||||
public partial class Drawing : IEquatable<Drawing>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Drawing" /> class.
|
||||
@ -39,7 +39,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="shapeOrNull">shapeOrNull.</param>
|
||||
/// <param name="nullableShape">nullableShape.</param>
|
||||
/// <param name="shapes">shapes.</param>
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>)) : base()
|
||||
public Drawing(Shape mainShape = default(Shape), ShapeOrNull shapeOrNull = default(ShapeOrNull), NullableShape nullableShape = default(NullableShape), List<Shape> shapes = default(List<Shape>))
|
||||
{
|
||||
this.MainShape = mainShape;
|
||||
this.ShapeOrNull = shapeOrNull;
|
||||
@ -86,7 +86,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Drawing {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" MainShape: ").Append(MainShape).Append("\n");
|
||||
sb.Append(" ShapeOrNull: ").Append(ShapeOrNull).Append("\n");
|
||||
sb.Append(" NullableShape: ").Append(NullableShape).Append("\n");
|
||||
@ -100,7 +99,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -133,7 +132,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.MainShape != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.MainShape.GetHashCode();
|
||||
@ -164,16 +163,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// NullableClass
|
||||
/// </summary>
|
||||
[DataContract(Name = "NullableClass")]
|
||||
public partial class NullableClass : Dictionary<String, Object>, IEquatable<NullableClass>, IValidatableObject
|
||||
public partial class NullableClass : IEquatable<NullableClass>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="NullableClass" /> class.
|
||||
@ -47,7 +47,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="objectNullableProp">objectNullableProp.</param>
|
||||
/// <param name="objectAndItemsNullableProp">objectAndItemsNullableProp.</param>
|
||||
/// <param name="objectItemsNullable">objectItemsNullable.</param>
|
||||
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()
|
||||
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>))
|
||||
{
|
||||
this.IntegerProp = integerProp;
|
||||
this.NumberProp = numberProp;
|
||||
@ -151,7 +151,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class NullableClass {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" IntegerProp: ").Append(IntegerProp).Append("\n");
|
||||
sb.Append(" NumberProp: ").Append(NumberProp).Append("\n");
|
||||
sb.Append(" BooleanProp: ").Append(BooleanProp).Append("\n");
|
||||
@ -173,7 +172,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -206,7 +205,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.IntegerProp != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.IntegerProp.GetHashCode();
|
||||
@ -269,16 +268,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,13 +30,13 @@ namespace Org.OpenAPITools.Model
|
||||
/// TestInlineFreeformAdditionalPropertiesRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "testInlineFreeformAdditionalProperties_request")]
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : Dictionary<String, Object>, IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable<TestInlineFreeformAdditionalPropertiesRequest>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TestInlineFreeformAdditionalPropertiesRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="someProperty">someProperty.</param>
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string)) : base()
|
||||
public TestInlineFreeformAdditionalPropertiesRequest(string someProperty = default(string))
|
||||
{
|
||||
this.SomeProperty = someProperty;
|
||||
this.AdditionalProperties = new Dictionary<string, object>();
|
||||
@ -62,7 +62,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class TestInlineFreeformAdditionalPropertiesRequest {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" SomeProperty: ").Append(SomeProperty).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
sb.Append("}\n");
|
||||
@ -73,7 +72,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -106,7 +105,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
if (this.SomeProperty != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.SomeProperty.GetHashCode();
|
||||
@ -125,16 +124,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Zebra
|
||||
/// </summary>
|
||||
[DataContract(Name = "zebra")]
|
||||
public partial class Zebra : Dictionary<String, Object>, IEquatable<Zebra>, IValidatableObject
|
||||
public partial class Zebra : IEquatable<Zebra>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines Type
|
||||
@ -76,7 +76,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// </summary>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="className">className (required).</param>
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string)) : base()
|
||||
public Zebra(TypeEnum? type = default(TypeEnum?), string className = default(string))
|
||||
{
|
||||
// to ensure "className" is required (not null)
|
||||
if (className == null)
|
||||
@ -108,7 +108,6 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Zebra {\n");
|
||||
sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" ClassName: ").Append(ClassName).Append("\n");
|
||||
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
|
||||
@ -120,7 +119,7 @@ namespace Org.OpenAPITools.Model
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public string ToJson()
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
@ -153,7 +152,7 @@ namespace Org.OpenAPITools.Model
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = base.GetHashCode();
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.Type.GetHashCode();
|
||||
if (this.ClassName != null)
|
||||
{
|
||||
@ -173,16 +172,6 @@ namespace Org.OpenAPITools.Model
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
return this.BaseValidate(validationContext);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
protected IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> BaseValidate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user