diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ImplementsIEquatable.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ImplementsIEquatable.mustache
index dd576dd0f1e3..3c3ceef7ac5e 100644
--- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ImplementsIEquatable.mustache
+++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/ImplementsIEquatable.mustache
@@ -1 +1 @@
-{{#equatable}}{{#readOnlyVars}}{{#-first}}IEquatable<{{classname}}{{nrt?}}> {{/-first}}{{/readOnlyVars}}{{/equatable}}
\ No newline at end of file
+{{#equatable}}IEquatable<{{classname}}{{nrt?}}> {{/equatable}}
\ No newline at end of file
diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache
index 587057cddd32..785a0db9ddbb 100644
--- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache
+++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/modelGeneric.mustache
@@ -1,7 +1,7 @@
///
/// {{description}}{{^description}}{{classname}}{{/description}}
///
- {{>visibility}} partial class {{classname}}{{#lambda.firstDot}}{{#parent}} : .{{/parent}}{{#validatable}} : .{{/validatable}}{{#equatable}}{{#readOnlyVars}}{{#-first}} : .{{/-first}}{{/readOnlyVars}}{{/equatable}}{{/lambda.firstDot}}{{#lambda.joinWithComma}}{{#parent}}{{{.}}} {{/parent}}{{>ImplementsIEquatable}}{{#validatable}}IValidatableObject {{/validatable}}{{/lambda.joinWithComma}}
+ {{>visibility}} partial class {{classname}}{{#lambda.firstDot}}{{#parent}} : .{{/parent}}{{#validatable}} : .{{/validatable}}{{#equatable}} : {{/equatable}}{{/lambda.firstDot}}{{#lambda.joinWithComma}}{{#parent}}{{{.}}} {{/parent}}{{>ImplementsIEquatable}}{{#validatable}}IValidatableObject {{/validatable}}{{/lambda.joinWithComma}}
{
{{#composedSchemas.oneOf}}
{{^vendorExtensions.x-duplicated-data-type}}
@@ -281,8 +281,6 @@
return sb.ToString();
}
{{#equatable}}
- {{#readOnlyVars}}
- {{#-first}}
///
/// Returns true if objects are equal
@@ -311,29 +309,28 @@
{{/useCompareNetObjects}}
{{^useCompareNetObjects}}
if (input == null)
+ {
return false;
-
- return {{#parent}}base.Equals(input) && {{/parent}}{{#readOnlyVars}}{{^isInherited}}{{^isContainer}}
+ }
+ return {{#vars}}{{#parent}}base.Equals(input) && {{/parent}}{{^isContainer}}
(
- {{name}} == input.{{name}} ||
+ this.{{name}} == input.{{name}} ||
{{^vendorExtensions.x-is-value-type}}
- ({{name}} != null &&
- {{name}}.Equals(input.{{name}}))
+ (this.{{name}} != null &&
+ this.{{name}}.Equals(input.{{name}}))
{{/vendorExtensions.x-is-value-type}}
{{#vendorExtensions.x-is-value-type}}
- {{name}}.Equals(input.{{name}})
+ this.{{name}}.Equals(input.{{name}})
{{/vendorExtensions.x-is-value-type}}
){{^-last}} && {{/-last}}{{/isContainer}}{{#isContainer}}
(
- {{name}} == input.{{name}} ||
- {{^vendorExtensions.x-is-value-type}}{{name}} != null &&
+ this.{{name}} == input.{{name}} ||
+ {{^vendorExtensions.x-is-value-type}}this.{{name}} != null &&
input.{{name}} != null &&
- {{/vendorExtensions.x-is-value-type}}{{name}}.SequenceEqual(input.{{name}})
- ){{^-last}} && {{/-last}}{{/isContainer}}{{/isInherited}}{{/readOnlyVars}}{{^readOnlyVars}}{{#parent}}base.Equals(input){{/parent}}{{^parent}}false{{/parent}}{{/readOnlyVars}}{{^isAdditionalPropertiesTrue}};{{/isAdditionalPropertiesTrue}}
+ {{/vendorExtensions.x-is-value-type}}this.{{name}}.SequenceEqual(input.{{name}})
+ ){{^-last}} && {{/-last}}{{/isContainer}}{{/vars}}{{^vars}}{{#parent}}base.Equals(input){{/parent}}{{^parent}}false{{/parent}}{{/vars}}{{^isAdditionalPropertiesTrue}};{{/isAdditionalPropertiesTrue}}
{{#isAdditionalPropertiesTrue}}
- {{^parentModel}}
- && (AdditionalProperties.Count == input.AdditionalProperties.Count && !AdditionalProperties.Except(input.AdditionalProperties).Any());
- {{/parentModel}}
+ && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any());
{{/isAdditionalPropertiesTrue}}
{{/useCompareNetObjects}}
}
@@ -352,14 +349,14 @@
{{^parent}}
int hashCode = 41;
{{/parent}}
- {{#readOnlyVars}}
+ {{#vars}}
{{#required}}
{{^isNullable}}
hashCode = (hashCode * 59) + {{name}}.GetHashCode();
{{/isNullable}}
{{/required}}
- {{/readOnlyVars}}
- {{#readOnlyVars}}
+ {{/vars}}
+ {{#vars}}
{{#lambda.copy}}
if ({{name}} != null)
hashCode = (hashCode * 59) + {{name}}.GetHashCode();
@@ -373,7 +370,7 @@
{{#lambda.pasteOnce}}
{{/lambda.pasteOnce}}
{{/required}}
- {{/readOnlyVars}}
+ {{/vars}}
{{#isAdditionalPropertiesTrue}}
{{^parentModel}}
hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
@@ -383,8 +380,6 @@
return hashCode;
}
}
- {{/-first}}
- {{/readOnlyVars}}
{{/equatable}}
{{#validatable}}
{{^parentModel}}
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs
index f25596215be6..4fa5c5218093 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// A representation of an adult
///
- public partial class Adult : Person, IValidatableObject
+ public partial class Adult : Person, IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -70,6 +70,43 @@ public override string ToString()
sb.Append("}\n");
return sb.ToString();
}
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Adult).AreEqual;
+ }
+
+ ///
+ /// Returns true if Adult instances are equal
+ ///
+ /// Instance of Adult to be compared
+ /// Boolean
+ public bool Equals(Adult input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = base.GetHashCode();
+ if (Children != null)
+ hashCode = (hashCode * 59) + Children.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
}
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs
index c6f78d43c423..96f67da0148d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// A representation of a child
///
- public partial class Child : Person, IValidatableObject
+ public partial class Child : Person, IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -86,6 +86,46 @@ public override string ToString()
sb.Append("}\n");
return sb.ToString();
}
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Child).AreEqual;
+ }
+
+ ///
+ /// Returns true if Child instances are equal
+ ///
+ /// Instance of Child to be compared
+ /// Boolean
+ public bool Equals(Child input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = base.GetHashCode();
+ if (Age != null)
+ hashCode = (hashCode * 59) + Age.GetHashCode();
+
+ if (BoosterSeat != null)
+ hashCode = (hashCode * 59) + BoosterSeat.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
}
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs
index b1c00a2eda29..419898e228ff 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Person
///
- public partial class Person : IValidatableObject
+ public partial class Person : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -99,6 +99,50 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Person).AreEqual;
+ }
+
+ ///
+ /// Returns true if Person instances are equal
+ ///
+ /// Instance of Person to be compared
+ /// Boolean
+ public bool Equals(Person input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (FirstName != null)
+ hashCode = (hashCode * 59) + FirstName.GetHashCode();
+
+ if (LastName != null)
+ hashCode = (hashCode * 59) + LastName.GetHashCode();
+
+ if (Type != null)
+ hashCode = (hashCode * 59) + Type.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs
index 7867e6645419..628e5e8ba608 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Apple
///
- public partial class Apple : IValidatableObject
+ public partial class Apple : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Apple).AreEqual;
+ }
+
+ ///
+ /// Returns true if Apple instances are equal
+ ///
+ /// Instance of Apple to be compared
+ /// Boolean
+ public bool Equals(Apple input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Kind != null)
+ hashCode = (hashCode * 59) + Kind.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs
index edf36db227d5..ad44625adf83 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Banana
///
- public partial class Banana : IValidatableObject
+ public partial class Banana : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Banana).AreEqual;
+ }
+
+ ///
+ /// Returns true if Banana instances are equal
+ ///
+ /// Instance of Banana to be compared
+ /// Boolean
+ public bool Equals(Banana input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Count != null)
+ hashCode = (hashCode * 59) + Count.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs
index cd1e938ffb37..2e31aef5bc8d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Fruit
///
- public partial class Fruit : IValidatableObject
+ public partial class Fruit : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -102,6 +102,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Fruit).AreEqual;
+ }
+
+ ///
+ /// Returns true if Fruit instances are equal
+ ///
+ /// Instance of Fruit to be compared
+ /// Boolean
+ public bool Equals(Fruit input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Color != null)
+ hashCode = (hashCode * 59) + Color.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs
index 70534c23212e..3d05aa6c5aba 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs
@@ -26,7 +26,7 @@ namespace Org.OpenAPITools.Model
///
/// Apple
///
- public partial class Apple : IValidatableObject
+ public partial class Apple : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -74,6 +74,54 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as Apple);
+ }
+
+ ///
+ /// Returns true if Apple instances are equal
+ ///
+ /// Instance of Apple to be compared
+ /// Boolean
+ public bool Equals(Apple input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Kind == input.Kind ||
+ (this.Kind != null &&
+ this.Kind.Equals(input.Kind))
+ )
+ && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any());
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Kind != null)
+ hashCode = (hashCode * 59) + Kind.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs
index 2cf5830c69f6..ed4d18399b9f 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs
@@ -26,7 +26,7 @@ namespace Org.OpenAPITools.Model
///
/// Banana
///
- public partial class Banana : IValidatableObject
+ public partial class Banana : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -74,6 +74,53 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as Banana);
+ }
+
+ ///
+ /// Returns true if Banana instances are equal
+ ///
+ /// Instance of Banana to be compared
+ /// Boolean
+ public bool Equals(Banana input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Count == input.Count ||
+ this.Count.Equals(input.Count)
+ )
+ && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any());
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Count != null)
+ hashCode = (hashCode * 59) + Count.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs
index de8c3fcf7b7b..1502f36a93f7 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs
@@ -26,7 +26,7 @@ namespace Org.OpenAPITools.Model
///
/// Fruit
///
- public partial class Fruit : IValidatableObject
+ public partial class Fruit : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -101,6 +101,54 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as Fruit);
+ }
+
+ ///
+ /// Returns true if Fruit instances are equal
+ ///
+ /// Instance of Fruit to be compared
+ /// Boolean
+ public bool Equals(Fruit input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.Color == input.Color ||
+ (this.Color != null &&
+ this.Color.Equals(input.Color))
+ )
+ && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any());
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Color != null)
+ hashCode = (hashCode * 59) + Color.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs
index 4562d4ceb728..0ac5a7015a9f 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// test map of maps
///
- public partial class Activity : IValidatableObject
+ public partial class Activity : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Activity).AreEqual;
+ }
+
+ ///
+ /// Returns true if Activity instances are equal
+ ///
+ /// Instance of Activity to be compared
+ /// Boolean
+ public bool Equals(Activity input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ActivityOutputs != null)
+ hashCode = (hashCode * 59) + ActivityOutputs.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
index db832150ed96..9521ebe66825 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ActivityOutputElementRepresentation
///
- public partial class ActivityOutputElementRepresentation : IValidatableObject
+ public partial class ActivityOutputElementRepresentation : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -91,6 +91,47 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ActivityOutputElementRepresentation).AreEqual;
+ }
+
+ ///
+ /// Returns true if ActivityOutputElementRepresentation instances are equal
+ ///
+ /// Instance of ActivityOutputElementRepresentation to be compared
+ /// Boolean
+ public bool Equals(ActivityOutputElementRepresentation input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Prop1 != null)
+ hashCode = (hashCode * 59) + Prop1.GetHashCode();
+
+ if (Prop2 != null)
+ hashCode = (hashCode * 59) + Prop2.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
index f70c7a4c5fc3..616a0cabe479 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// AdditionalPropertiesClass
///
- public partial class AdditionalPropertiesClass : IValidatableObject
+ public partial class AdditionalPropertiesClass : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -188,6 +188,65 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as AdditionalPropertiesClass).AreEqual;
+ }
+
+ ///
+ /// Returns true if AdditionalPropertiesClass instances are equal
+ ///
+ /// Instance of AdditionalPropertiesClass to be compared
+ /// Boolean
+ public bool Equals(AdditionalPropertiesClass input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Anytype1 != null)
+ hashCode = (hashCode * 59) + Anytype1.GetHashCode();
+
+ if (EmptyMap != null)
+ hashCode = (hashCode * 59) + EmptyMap.GetHashCode();
+
+ if (MapOfMapProperty != null)
+ hashCode = (hashCode * 59) + MapOfMapProperty.GetHashCode();
+
+ if (MapProperty != null)
+ hashCode = (hashCode * 59) + MapProperty.GetHashCode();
+
+ if (MapWithUndeclaredPropertiesAnytype1 != null)
+ hashCode = (hashCode * 59) + MapWithUndeclaredPropertiesAnytype1.GetHashCode();
+
+ if (MapWithUndeclaredPropertiesAnytype2 != null)
+ hashCode = (hashCode * 59) + MapWithUndeclaredPropertiesAnytype2.GetHashCode();
+
+ if (MapWithUndeclaredPropertiesAnytype3 != null)
+ hashCode = (hashCode * 59) + MapWithUndeclaredPropertiesAnytype3.GetHashCode();
+
+ if (MapWithUndeclaredPropertiesString != null)
+ hashCode = (hashCode * 59) + MapWithUndeclaredPropertiesString.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs
index f172cd70bc53..7cedbffdbcf6 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Animal
///
- public partial class Animal : IValidatableObject
+ public partial class Animal : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -83,6 +83,45 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Animal).AreEqual;
+ }
+
+ ///
+ /// Returns true if Animal instances are equal
+ ///
+ /// Instance of Animal to be compared
+ /// Boolean
+ public bool Equals(Animal input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ClassName.GetHashCode();
+ if (Color != null)
+ hashCode = (hashCode * 59) + Color.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs
index 74dbae3c6ba3..176933bfd50d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ApiResponse
///
- public partial class ApiResponse : IValidatableObject
+ public partial class ApiResponse : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -107,6 +107,50 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ApiResponse).AreEqual;
+ }
+
+ ///
+ /// Returns true if ApiResponse instances are equal
+ ///
+ /// Instance of ApiResponse to be compared
+ /// Boolean
+ public bool Equals(ApiResponse input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Code != null)
+ hashCode = (hashCode * 59) + Code.GetHashCode();
+
+ if (Message != null)
+ hashCode = (hashCode * 59) + Message.GetHashCode();
+
+ if (Type != null)
+ hashCode = (hashCode * 59) + Type.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs
index df3bc9af06cc..ca96c6586a85 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Apple
///
- public partial class Apple : IValidatableObject
+ public partial class Apple : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -107,6 +107,50 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Apple).AreEqual;
+ }
+
+ ///
+ /// Returns true if Apple instances are equal
+ ///
+ /// Instance of Apple to be compared
+ /// Boolean
+ public bool Equals(Apple input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ColorCode != null)
+ hashCode = (hashCode * 59) + ColorCode.GetHashCode();
+
+ if (Cultivar != null)
+ hashCode = (hashCode * 59) + Cultivar.GetHashCode();
+
+ if (Origin != null)
+ hashCode = (hashCode * 59) + Origin.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs
index 1a839ecb01b6..ac0d7ce04ae9 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// AppleReq
///
- public partial class AppleReq : IValidatableObject
+ public partial class AppleReq : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -77,6 +77,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as AppleReq).AreEqual;
+ }
+
+ ///
+ /// Returns true if AppleReq instances are equal
+ ///
+ /// Instance of AppleReq to be compared
+ /// Boolean
+ public bool Equals(AppleReq input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + Cultivar.GetHashCode();
+ if (Mealy != null)
+ hashCode = (hashCode * 59) + Mealy.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
index cea3f5a4ba50..ceae5298ed9b 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ArrayOfArrayOfNumberOnly
///
- public partial class ArrayOfArrayOfNumberOnly : IValidatableObject
+ public partial class ArrayOfArrayOfNumberOnly : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ArrayOfArrayOfNumberOnly).AreEqual;
+ }
+
+ ///
+ /// Returns true if ArrayOfArrayOfNumberOnly instances are equal
+ ///
+ /// Instance of ArrayOfArrayOfNumberOnly to be compared
+ /// Boolean
+ public bool Equals(ArrayOfArrayOfNumberOnly input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ArrayArrayNumber != null)
+ hashCode = (hashCode * 59) + ArrayArrayNumber.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
index 47bac6ba97c6..8ce9459915ff 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ArrayOfNumberOnly
///
- public partial class ArrayOfNumberOnly : IValidatableObject
+ public partial class ArrayOfNumberOnly : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ArrayOfNumberOnly).AreEqual;
+ }
+
+ ///
+ /// Returns true if ArrayOfNumberOnly instances are equal
+ ///
+ /// Instance of ArrayOfNumberOnly to be compared
+ /// Boolean
+ public bool Equals(ArrayOfNumberOnly input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ArrayNumber != null)
+ hashCode = (hashCode * 59) + ArrayNumber.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs
index 1992bf9e932d..ce5e03122363 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ArrayTest
///
- public partial class ArrayTest : IValidatableObject
+ public partial class ArrayTest : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -107,6 +107,50 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ArrayTest).AreEqual;
+ }
+
+ ///
+ /// Returns true if ArrayTest instances are equal
+ ///
+ /// Instance of ArrayTest to be compared
+ /// Boolean
+ public bool Equals(ArrayTest input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ArrayArrayOfInteger != null)
+ hashCode = (hashCode * 59) + ArrayArrayOfInteger.GetHashCode();
+
+ if (ArrayArrayOfModel != null)
+ hashCode = (hashCode * 59) + ArrayArrayOfModel.GetHashCode();
+
+ if (ArrayOfString != null)
+ hashCode = (hashCode * 59) + ArrayOfString.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs
index d7b7e8188f75..ac171273b5fc 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Banana
///
- public partial class Banana : IValidatableObject
+ public partial class Banana : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Banana).AreEqual;
+ }
+
+ ///
+ /// Returns true if Banana instances are equal
+ ///
+ /// Instance of Banana to be compared
+ /// Boolean
+ public bool Equals(Banana input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (LengthCm != null)
+ hashCode = (hashCode * 59) + LengthCm.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs
index 8aa8da44caea..7d9cb85757a4 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// BananaReq
///
- public partial class BananaReq : IValidatableObject
+ public partial class BananaReq : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -77,6 +77,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as BananaReq).AreEqual;
+ }
+
+ ///
+ /// Returns true if BananaReq instances are equal
+ ///
+ /// Instance of BananaReq to be compared
+ /// Boolean
+ public bool Equals(BananaReq input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + LengthCm.GetHashCode();
+ if (Sweet != null)
+ hashCode = (hashCode * 59) + Sweet.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs
index 9938d89e008d..1577fab0eaba 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// BasquePig
///
- public partial class BasquePig : IValidatableObject
+ public partial class BasquePig : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -68,6 +68,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as BasquePig).AreEqual;
+ }
+
+ ///
+ /// Returns true if BasquePig instances are equal
+ ///
+ /// Instance of BasquePig to be compared
+ /// Boolean
+ public bool Equals(BasquePig input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ClassName.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs
index a1fb0b3eb574..477cd5c1cb70 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Capitalization
///
- public partial class Capitalization : IValidatableObject
+ public partial class Capitalization : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -156,6 +156,59 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Capitalization).AreEqual;
+ }
+
+ ///
+ /// Returns true if Capitalization instances are equal
+ ///
+ /// Instance of Capitalization to be compared
+ /// Boolean
+ public bool Equals(Capitalization input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ATT_NAME != null)
+ hashCode = (hashCode * 59) + ATT_NAME.GetHashCode();
+
+ if (CapitalCamel != null)
+ hashCode = (hashCode * 59) + CapitalCamel.GetHashCode();
+
+ if (CapitalSnake != null)
+ hashCode = (hashCode * 59) + CapitalSnake.GetHashCode();
+
+ if (SCAETHFlowPoints != null)
+ hashCode = (hashCode * 59) + SCAETHFlowPoints.GetHashCode();
+
+ if (SmallCamel != null)
+ hashCode = (hashCode * 59) + SmallCamel.GetHashCode();
+
+ if (SmallSnake != null)
+ hashCode = (hashCode * 59) + SmallSnake.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs
index 9ed61c34f667..0e4dfd825ca3 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Cat
///
- public partial class Cat : Animal, IValidatableObject
+ public partial class Cat : Animal, IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -69,6 +69,43 @@ public override string ToString()
sb.Append("}\n");
return sb.ToString();
}
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Cat).AreEqual;
+ }
+
+ ///
+ /// Returns true if Cat instances are equal
+ ///
+ /// Instance of Cat to be compared
+ /// Boolean
+ public bool Equals(Cat input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = base.GetHashCode();
+ if (Declawed != null)
+ hashCode = (hashCode * 59) + Declawed.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
}
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs
index 7db5ba3129ff..3315b089337d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Category
///
- public partial class Category : IValidatableObject
+ public partial class Category : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -84,6 +84,45 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Category).AreEqual;
+ }
+
+ ///
+ /// Returns true if Category instances are equal
+ ///
+ /// Instance of Category to be compared
+ /// Boolean
+ public bool Equals(Category input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + Name.GetHashCode();
+ if (Id != null)
+ hashCode = (hashCode * 59) + Id.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs
index 632caa963cf7..69bfecd64fef 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ChildCat
///
- public partial class ChildCat : ParentPet, IValidatableObject
+ public partial class ChildCat : ParentPet, IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -76,6 +76,44 @@ public override string ToString()
sb.Append("}\n");
return sb.ToString();
}
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ChildCat).AreEqual;
+ }
+
+ ///
+ /// Returns true if ChildCat instances are equal
+ ///
+ /// Instance of ChildCat to be compared
+ /// Boolean
+ public bool Equals(ChildCat input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = base.GetHashCode();
+ hashCode = (hashCode * 59) + PetType.GetHashCode();
+ if (Name != null)
+ hashCode = (hashCode * 59) + Name.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
}
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs
index 7c49d7adb55c..4fc40c3323c3 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Model for testing model with \"_class\" property
///
- public partial class ClassModel : IValidatableObject
+ public partial class ClassModel : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ClassModel).AreEqual;
+ }
+
+ ///
+ /// Returns true if ClassModel instances are equal
+ ///
+ /// Instance of ClassModel to be compared
+ /// Boolean
+ public bool Equals(ClassModel input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Class != null)
+ hashCode = (hashCode * 59) + Class.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
index 3023a45610e4..fad0ea2936f8 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ComplexQuadrilateral
///
- public partial class ComplexQuadrilateral : IValidatableObject
+ public partial class ComplexQuadrilateral : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -77,6 +77,43 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ComplexQuadrilateral).AreEqual;
+ }
+
+ ///
+ /// Returns true if ComplexQuadrilateral instances are equal
+ ///
+ /// Instance of ComplexQuadrilateral to be compared
+ /// Boolean
+ public bool Equals(ComplexQuadrilateral input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + QuadrilateralType.GetHashCode();
+ hashCode = (hashCode * 59) + ShapeType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs
index 7a8ae9371f73..9ed938867edb 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// CopyActivity
///
- public partial class CopyActivity : EntityBase, IValidatableObject
+ public partial class CopyActivity : EntityBase, IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -121,6 +121,42 @@ public override string ToString()
sb.Append("}\n");
return sb.ToString();
}
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as CopyActivity).AreEqual;
+ }
+
+ ///
+ /// Returns true if CopyActivity instances are equal
+ ///
+ /// Instance of CopyActivity to be compared
+ /// Boolean
+ public bool Equals(CopyActivity input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = base.GetHashCode();
+ hashCode = (hashCode * 59) + CopyActivitytt.GetHashCode();
+ hashCode = (hashCode * 59) + Schema.GetHashCode();
+
+ return hashCode;
+ }
+ }
}
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs
index 14b2ed3b153f..c3ade9d078db 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// DanishPig
///
- public partial class DanishPig : IValidatableObject
+ public partial class DanishPig : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -68,6 +68,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as DanishPig).AreEqual;
+ }
+
+ ///
+ /// Returns true if DanishPig instances are equal
+ ///
+ /// Instance of DanishPig to be compared
+ /// Boolean
+ public bool Equals(DanishPig input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ClassName.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs
index 62ae935e4564..3811c02effd4 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// DateOnlyClass
///
- public partial class DateOnlyClass : IValidatableObject
+ public partial class DateOnlyClass : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -76,6 +76,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as DateOnlyClass).AreEqual;
+ }
+
+ ///
+ /// Returns true if DateOnlyClass instances are equal
+ ///
+ /// Instance of DateOnlyClass to be compared
+ /// Boolean
+ public bool Equals(DateOnlyClass input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (DateOnlyProperty != null)
+ hashCode = (hashCode * 59) + DateOnlyProperty.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs
index 08067c5cc07c..35c0c6474f16 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// DeprecatedObject
///
- public partial class DeprecatedObject : IValidatableObject
+ public partial class DeprecatedObject : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as DeprecatedObject).AreEqual;
+ }
+
+ ///
+ /// Returns true if DeprecatedObject instances are equal
+ ///
+ /// Instance of DeprecatedObject to be compared
+ /// Boolean
+ public bool Equals(DeprecatedObject input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Name != null)
+ hashCode = (hashCode * 59) + Name.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs
index 1ed4938d5fa7..6430cf735f75 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Descendant1
///
- public partial class Descendant1 : TestDescendants, IValidatableObject
+ public partial class Descendant1 : TestDescendants, IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -62,6 +62,41 @@ public override string ToString()
sb.Append("}\n");
return sb.ToString();
}
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Descendant1).AreEqual;
+ }
+
+ ///
+ /// Returns true if Descendant1 instances are equal
+ ///
+ /// Instance of Descendant1 to be compared
+ /// Boolean
+ public bool Equals(Descendant1 input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = base.GetHashCode();
+ hashCode = (hashCode * 59) + DescendantName.GetHashCode();
+
+ return hashCode;
+ }
+ }
}
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs
index fd2ec581e4df..11379a0c41ba 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Descendant2
///
- public partial class Descendant2 : TestDescendants, IValidatableObject
+ public partial class Descendant2 : TestDescendants, IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -62,6 +62,41 @@ public override string ToString()
sb.Append("}\n");
return sb.ToString();
}
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Descendant2).AreEqual;
+ }
+
+ ///
+ /// Returns true if Descendant2 instances are equal
+ ///
+ /// Instance of Descendant2 to be compared
+ /// Boolean
+ public bool Equals(Descendant2 input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = base.GetHashCode();
+ hashCode = (hashCode * 59) + Confidentiality.GetHashCode();
+
+ return hashCode;
+ }
+ }
}
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs
index 509278540c44..78058b51ec4c 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Dog
///
- public partial class Dog : Animal, IValidatableObject
+ public partial class Dog : Animal, IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -69,6 +69,43 @@ public override string ToString()
sb.Append("}\n");
return sb.ToString();
}
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Dog).AreEqual;
+ }
+
+ ///
+ /// Returns true if Dog instances are equal
+ ///
+ /// Instance of Dog to be compared
+ /// Boolean
+ public bool Equals(Dog input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = base.GetHashCode();
+ if (Breed != null)
+ hashCode = (hashCode * 59) + Breed.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
}
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs
index e83b95303760..9bf0a759348e 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Drawing
///
- public partial class Drawing : IValidatableObject
+ public partial class Drawing : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -123,6 +123,53 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Drawing).AreEqual;
+ }
+
+ ///
+ /// Returns true if Drawing instances are equal
+ ///
+ /// Instance of Drawing to be compared
+ /// Boolean
+ public bool Equals(Drawing input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (MainShape != null)
+ hashCode = (hashCode * 59) + MainShape.GetHashCode();
+
+ if (NullableShape != null)
+ hashCode = (hashCode * 59) + NullableShape.GetHashCode();
+
+ if (ShapeOrNull != null)
+ hashCode = (hashCode * 59) + ShapeOrNull.GetHashCode();
+
+ if (Shapes != null)
+ hashCode = (hashCode * 59) + Shapes.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs
index 6ad9d8ea3a34..f4e520f072b1 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// EntityBase
///
- public partial class EntityBase : IValidatableObject
+ public partial class EntityBase : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -67,6 +67,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as EntityBase).AreEqual;
+ }
+
+ ///
+ /// Returns true if EntityBase instances are equal
+ ///
+ /// Instance of EntityBase to be compared
+ /// Boolean
+ public bool Equals(EntityBase input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + Schema.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs
index 007eba77a358..cf0d8a7cf612 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// EnumArrays
///
- public partial class EnumArrays : IValidatableObject
+ public partial class EnumArrays : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -91,6 +91,47 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as EnumArrays).AreEqual;
+ }
+
+ ///
+ /// Returns true if EnumArrays instances are equal
+ ///
+ /// Instance of EnumArrays to be compared
+ /// Boolean
+ public bool Equals(EnumArrays input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ArrayEnum != null)
+ hashCode = (hashCode * 59) + ArrayEnum.GetHashCode();
+
+ if (JustSymbol != null)
+ hashCode = (hashCode * 59) + JustSymbol.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs
index cb22e561feaf..154d5e3a1ea9 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// EnumTest
///
- public partial class EnumTest : IValidatableObject
+ public partial class EnumTest : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -196,6 +196,66 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as EnumTest).AreEqual;
+ }
+
+ ///
+ /// Returns true if EnumTest instances are equal
+ ///
+ /// Instance of EnumTest to be compared
+ /// Boolean
+ public bool Equals(EnumTest input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + EnumStringRequired.GetHashCode();
+ if (EnumInteger != null)
+ hashCode = (hashCode * 59) + EnumInteger.GetHashCode();
+
+ if (EnumIntegerOnly != null)
+ hashCode = (hashCode * 59) + EnumIntegerOnly.GetHashCode();
+
+ if (EnumNumber != null)
+ hashCode = (hashCode * 59) + EnumNumber.GetHashCode();
+
+ if (EnumString != null)
+ hashCode = (hashCode * 59) + EnumString.GetHashCode();
+
+ if (OuterEnum != null)
+ hashCode = (hashCode * 59) + OuterEnum.GetHashCode();
+
+ if (OuterEnumDefaultValue != null)
+ hashCode = (hashCode * 59) + OuterEnumDefaultValue.GetHashCode();
+
+ if (OuterEnumInteger != null)
+ hashCode = (hashCode * 59) + OuterEnumInteger.GetHashCode();
+
+ if (OuterEnumIntegerDefaultValue != null)
+ hashCode = (hashCode * 59) + OuterEnumIntegerDefaultValue.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs
index d65c7740e5e8..0c7823a35cdc 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// EquilateralTriangle
///
- public partial class EquilateralTriangle : IValidatableObject
+ public partial class EquilateralTriangle : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -77,6 +77,43 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as EquilateralTriangle).AreEqual;
+ }
+
+ ///
+ /// Returns true if EquilateralTriangle instances are equal
+ ///
+ /// Instance of EquilateralTriangle to be compared
+ /// Boolean
+ public bool Equals(EquilateralTriangle input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ShapeType.GetHashCode();
+ hashCode = (hashCode * 59) + TriangleType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs
index 092f10c09324..9c5ae3ecb3c3 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Must be named `File` for test.
///
- public partial class File : IValidatableObject
+ public partial class File : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -76,6 +76,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as File).AreEqual;
+ }
+
+ ///
+ /// Returns true if File instances are equal
+ ///
+ /// Instance of File to be compared
+ /// Boolean
+ public bool Equals(File input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (SourceURI != null)
+ hashCode = (hashCode * 59) + SourceURI.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
index 76db6338890f..3458f9cfef70 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// FileSchemaTestClass
///
- public partial class FileSchemaTestClass : IValidatableObject
+ public partial class FileSchemaTestClass : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -91,6 +91,47 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as FileSchemaTestClass).AreEqual;
+ }
+
+ ///
+ /// Returns true if FileSchemaTestClass instances are equal
+ ///
+ /// Instance of FileSchemaTestClass to be compared
+ /// Boolean
+ public bool Equals(FileSchemaTestClass input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (File != null)
+ hashCode = (hashCode * 59) + File.GetHashCode();
+
+ if (Files != null)
+ hashCode = (hashCode * 59) + Files.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs
index 3eeca0aa2112..5cbc2e7d9847 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Foo
///
- public partial class Foo : IValidatableObject
+ public partial class Foo : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Foo).AreEqual;
+ }
+
+ ///
+ /// Returns true if Foo instances are equal
+ ///
+ /// Instance of Foo to be compared
+ /// Boolean
+ public bool Equals(Foo input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Bar != null)
+ hashCode = (hashCode * 59) + Bar.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
index 285e193a7e15..5fed92ae4324 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// FooGetDefaultResponse
///
- public partial class FooGetDefaultResponse : IValidatableObject
+ public partial class FooGetDefaultResponse : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as FooGetDefaultResponse).AreEqual;
+ }
+
+ ///
+ /// Returns true if FooGetDefaultResponse instances are equal
+ ///
+ /// Instance of FooGetDefaultResponse to be compared
+ /// Boolean
+ public bool Equals(FooGetDefaultResponse input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (String != null)
+ hashCode = (hashCode * 59) + String.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs
index 1887346c88b6..d2cbf7c9e7b5 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// FormatTest
///
- public partial class FormatTest : IValidatableObject
+ public partial class FormatTest : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -446,6 +446,109 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as FormatTest).AreEqual;
+ }
+
+ ///
+ /// Returns true if FormatTest instances are equal
+ ///
+ /// Instance of FormatTest to be compared
+ /// Boolean
+ public bool Equals(FormatTest input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + Byte.GetHashCode();
+ hashCode = (hashCode * 59) + Date.GetHashCode();
+ hashCode = (hashCode * 59) + Number.GetHashCode();
+ hashCode = (hashCode * 59) + Password.GetHashCode();
+ hashCode = (hashCode * 59) + StringFormattedAsDecimalRequired.GetHashCode();
+ if (Binary != null)
+ hashCode = (hashCode * 59) + Binary.GetHashCode();
+
+ if (DateTime != null)
+ hashCode = (hashCode * 59) + DateTime.GetHashCode();
+
+ if (Decimal != null)
+ hashCode = (hashCode * 59) + Decimal.GetHashCode();
+
+ if (Double != null)
+ hashCode = (hashCode * 59) + Double.GetHashCode();
+
+ if (Float != null)
+ hashCode = (hashCode * 59) + Float.GetHashCode();
+
+ if (Int32 != null)
+ hashCode = (hashCode * 59) + Int32.GetHashCode();
+
+ if (Int32Range != null)
+ hashCode = (hashCode * 59) + Int32Range.GetHashCode();
+
+ if (Int64 != null)
+ hashCode = (hashCode * 59) + Int64.GetHashCode();
+
+ if (Int64Negative != null)
+ hashCode = (hashCode * 59) + Int64Negative.GetHashCode();
+
+ if (Int64NegativeExclusive != null)
+ hashCode = (hashCode * 59) + Int64NegativeExclusive.GetHashCode();
+
+ if (Int64Positive != null)
+ hashCode = (hashCode * 59) + Int64Positive.GetHashCode();
+
+ if (Int64PositiveExclusive != null)
+ hashCode = (hashCode * 59) + Int64PositiveExclusive.GetHashCode();
+
+ if (Integer != null)
+ hashCode = (hashCode * 59) + Integer.GetHashCode();
+
+ if (PatternWithBackslash != null)
+ hashCode = (hashCode * 59) + PatternWithBackslash.GetHashCode();
+
+ if (PatternWithDigits != null)
+ hashCode = (hashCode * 59) + PatternWithDigits.GetHashCode();
+
+ if (PatternWithDigitsAndDelimiter != null)
+ hashCode = (hashCode * 59) + PatternWithDigitsAndDelimiter.GetHashCode();
+
+ if (String != null)
+ hashCode = (hashCode * 59) + String.GetHashCode();
+
+ if (StringFormattedAsDecimal != null)
+ hashCode = (hashCode * 59) + StringFormattedAsDecimal.GetHashCode();
+
+ if (UnsignedInteger != null)
+ hashCode = (hashCode * 59) + UnsignedInteger.GetHashCode();
+
+ if (UnsignedLong != null)
+ hashCode = (hashCode * 59) + UnsignedLong.GetHashCode();
+
+ if (Uuid != null)
+ hashCode = (hashCode * 59) + Uuid.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs
index cc8b4530f01c..1327c362aab6 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Fruit
///
- public partial class Fruit : IValidatableObject
+ public partial class Fruit : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -91,6 +91,43 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Fruit).AreEqual;
+ }
+
+ ///
+ /// Returns true if Fruit instances are equal
+ ///
+ /// Instance of Fruit to be compared
+ /// Boolean
+ public bool Equals(Fruit input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Color != null)
+ hashCode = (hashCode * 59) + Color.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs
index 1e72875d4d32..899c5dd1c24c 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FruitReq.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// FruitReq
///
- public partial class FruitReq : IValidatableObject
+ public partial class FruitReq : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -73,6 +73,40 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as FruitReq).AreEqual;
+ }
+
+ ///
+ /// Returns true if FruitReq instances are equal
+ ///
+ /// Instance of FruitReq to be compared
+ /// Boolean
+ public bool Equals(FruitReq input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs
index 78cb87b61a31..e5950e5799ea 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// GmFruit
///
- public partial class GmFruit : IValidatableObject
+ public partial class GmFruit : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -95,6 +95,43 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as GmFruit).AreEqual;
+ }
+
+ ///
+ /// Returns true if GmFruit instances are equal
+ ///
+ /// Instance of GmFruit to be compared
+ /// Boolean
+ public bool Equals(GmFruit input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Color != null)
+ hashCode = (hashCode * 59) + Color.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs
index 78b741ac8c69..210daeb0c340 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// GrandparentAnimal
///
- public partial class GrandparentAnimal : IValidatableObject
+ public partial class GrandparentAnimal : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -67,6 +67,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as GrandparentAnimal).AreEqual;
+ }
+
+ ///
+ /// Returns true if GrandparentAnimal instances are equal
+ ///
+ /// Instance of GrandparentAnimal to be compared
+ /// Boolean
+ public bool Equals(GrandparentAnimal input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + PetType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs
index 16afc025fa03..9bccf4cf1110 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HealthCheckResult.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
///
- public partial class HealthCheckResult : IValidatableObject
+ public partial class HealthCheckResult : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as HealthCheckResult).AreEqual;
+ }
+
+ ///
+ /// Returns true if HealthCheckResult instances are equal
+ ///
+ /// Instance of HealthCheckResult to be compared
+ /// Boolean
+ public bool Equals(HealthCheckResult input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (NullableMessage != null)
+ hashCode = (hashCode * 59) + NullableMessage.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
index cce859524111..39c722d32440 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// IsoscelesTriangle
///
- public partial class IsoscelesTriangle : IValidatableObject
+ public partial class IsoscelesTriangle : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -70,6 +70,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as IsoscelesTriangle).AreEqual;
+ }
+
+ ///
+ /// Returns true if IsoscelesTriangle instances are equal
+ ///
+ /// Instance of IsoscelesTriangle to be compared
+ /// Boolean
+ public bool Equals(IsoscelesTriangle input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ShapeType.GetHashCode();
+ hashCode = (hashCode * 59) + TriangleType.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs
index 050d58f85c23..9034be04da57 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// List
///
- public partial class List : IValidatableObject
+ public partial class List : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as List).AreEqual;
+ }
+
+ ///
+ /// Returns true if List instances are equal
+ ///
+ /// Instance of List to be compared
+ /// Boolean
+ public bool Equals(List input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Var123List != null)
+ hashCode = (hashCode * 59) + Var123List.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs
index 522ba51e6cb3..8873ba2f28d7 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// LiteralStringClass
///
- public partial class LiteralStringClass : IValidatableObject
+ public partial class LiteralStringClass : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -91,6 +91,47 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as LiteralStringClass).AreEqual;
+ }
+
+ ///
+ /// Returns true if LiteralStringClass instances are equal
+ ///
+ /// Instance of LiteralStringClass to be compared
+ /// Boolean
+ public bool Equals(LiteralStringClass input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (EscapedLiteralString != null)
+ hashCode = (hashCode * 59) + EscapedLiteralString.GetHashCode();
+
+ if (UnescapedLiteralString != null)
+ hashCode = (hashCode * 59) + UnescapedLiteralString.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs
index 267ac8769d31..f8018a8357fe 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Mammal
///
- public partial class Mammal : IValidatableObject
+ public partial class Mammal : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -95,6 +95,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Mammal).AreEqual;
+ }
+
+ ///
+ /// Returns true if Mammal instances are equal
+ ///
+ /// Instance of Mammal to be compared
+ /// Boolean
+ public bool Equals(Mammal input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ClassName.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs
index 7331b5d3f61b..c0738f30d127 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// MapTest
///
- public partial class MapTest : IValidatableObject
+ public partial class MapTest : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -123,6 +123,53 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as MapTest).AreEqual;
+ }
+
+ ///
+ /// Returns true if MapTest instances are equal
+ ///
+ /// Instance of MapTest to be compared
+ /// Boolean
+ public bool Equals(MapTest input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (DirectMap != null)
+ hashCode = (hashCode * 59) + DirectMap.GetHashCode();
+
+ if (IndirectMap != null)
+ hashCode = (hashCode * 59) + IndirectMap.GetHashCode();
+
+ if (MapMapOfString != null)
+ hashCode = (hashCode * 59) + MapMapOfString.GetHashCode();
+
+ if (MapOfEnumString != null)
+ hashCode = (hashCode * 59) + MapOfEnumString.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs
index 3a559f831196..60ad1cc56304 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// MixedAnyOf
///
- public partial class MixedAnyOf : IValidatableObject
+ public partial class MixedAnyOf : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as MixedAnyOf).AreEqual;
+ }
+
+ ///
+ /// Returns true if MixedAnyOf instances are equal
+ ///
+ /// Instance of MixedAnyOf to be compared
+ /// Boolean
+ public bool Equals(MixedAnyOf input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Content != null)
+ hashCode = (hashCode * 59) + Content.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
index 5de026753ef2..9221d78c62e5 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOfContent.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Mixed anyOf types for testing
///
- public partial class MixedAnyOfContent : IValidatableObject
+ public partial class MixedAnyOfContent : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -128,6 +128,41 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as MixedAnyOfContent).AreEqual;
+ }
+
+ ///
+ /// Returns true if MixedAnyOfContent instances are equal
+ ///
+ /// Instance of MixedAnyOfContent to be compared
+ /// Boolean
+ public bool Equals(MixedAnyOfContent input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs
index 5e238e0f7b30..53e9c518a45a 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// MixedOneOf
///
- public partial class MixedOneOf : IValidatableObject
+ public partial class MixedOneOf : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as MixedOneOf).AreEqual;
+ }
+
+ ///
+ /// Returns true if MixedOneOf instances are equal
+ ///
+ /// Instance of MixedOneOf to be compared
+ /// Boolean
+ public bool Equals(MixedOneOf input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Content != null)
+ hashCode = (hashCode * 59) + Content.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs
index 4cb69dae28cd..39f75816b620 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOfContent.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Mixed oneOf types for testing
///
- public partial class MixedOneOfContent : IValidatableObject
+ public partial class MixedOneOfContent : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -125,6 +125,41 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as MixedOneOfContent).AreEqual;
+ }
+
+ ///
+ /// Returns true if MixedOneOfContent instances are equal
+ ///
+ /// Instance of MixedOneOfContent to be compared
+ /// Boolean
+ public bool Equals(MixedOneOfContent input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
index e0462d7c8a25..ee5ce7a4ecec 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// MixedPropertiesAndAdditionalPropertiesClass
///
- public partial class MixedPropertiesAndAdditionalPropertiesClass : IValidatableObject
+ public partial class MixedPropertiesAndAdditionalPropertiesClass : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -123,6 +123,53 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as MixedPropertiesAndAdditionalPropertiesClass).AreEqual;
+ }
+
+ ///
+ /// Returns true if MixedPropertiesAndAdditionalPropertiesClass instances are equal
+ ///
+ /// Instance of MixedPropertiesAndAdditionalPropertiesClass to be compared
+ /// Boolean
+ public bool Equals(MixedPropertiesAndAdditionalPropertiesClass input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (DateTime != null)
+ hashCode = (hashCode * 59) + DateTime.GetHashCode();
+
+ if (Map != null)
+ hashCode = (hashCode * 59) + Map.GetHashCode();
+
+ if (Uuid != null)
+ hashCode = (hashCode * 59) + Uuid.GetHashCode();
+
+ if (UuidWithPattern != null)
+ hashCode = (hashCode * 59) + UuidWithPattern.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs
index 34198e6f437a..61a7dc5f21a2 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// MixedSubId
///
- public partial class MixedSubId : IValidatableObject
+ public partial class MixedSubId : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as MixedSubId).AreEqual;
+ }
+
+ ///
+ /// Returns true if MixedSubId instances are equal
+ ///
+ /// Instance of MixedSubId to be compared
+ /// Boolean
+ public bool Equals(MixedSubId input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Id != null)
+ hashCode = (hashCode * 59) + Id.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs
index 882bf7ccda47..67fef894159e 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Model for testing model name starting with number
///
- public partial class Model200Response : IValidatableObject
+ public partial class Model200Response : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -91,6 +91,47 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Model200Response).AreEqual;
+ }
+
+ ///
+ /// Returns true if Model200Response instances are equal
+ ///
+ /// Instance of Model200Response to be compared
+ /// Boolean
+ public bool Equals(Model200Response input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Class != null)
+ hashCode = (hashCode * 59) + Class.GetHashCode();
+
+ if (Name != null)
+ hashCode = (hashCode * 59) + Name.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs
index 5d459e8b5eb1..58e29caf89b2 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ModelClient
///
- public partial class ModelClient : IValidatableObject
+ public partial class ModelClient : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ModelClient).AreEqual;
+ }
+
+ ///
+ /// Returns true if ModelClient instances are equal
+ ///
+ /// Instance of ModelClient to be compared
+ /// Boolean
+ public bool Equals(ModelClient input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (VarClient != null)
+ hashCode = (hashCode * 59) + VarClient.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs
index dba5779e547d..082c57c305c6 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs
@@ -145,6 +145,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
+ hashCode = (hashCode * 59) + VarName.GetHashCode();
+ if (Property != null)
+ hashCode = (hashCode * 59) + Property.GetHashCode();
+
if (SnakeCase != null)
hashCode = (hashCode * 59) + SnakeCase.GetHashCode();
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
index 9da492190051..3ae2c1e54eae 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// NotificationtestGetElementsV1ResponseMPayload
///
- public partial class NotificationtestGetElementsV1ResponseMPayload : IValidatableObject
+ public partial class NotificationtestGetElementsV1ResponseMPayload : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -77,6 +77,43 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NotificationtestGetElementsV1ResponseMPayload).AreEqual;
+ }
+
+ ///
+ /// Returns true if NotificationtestGetElementsV1ResponseMPayload instances are equal
+ ///
+ /// Instance of NotificationtestGetElementsV1ResponseMPayload to be compared
+ /// Boolean
+ public bool Equals(NotificationtestGetElementsV1ResponseMPayload input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + AObjVariableobject.GetHashCode();
+ hashCode = (hashCode * 59) + PkiNotificationtestID.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs
index 397f12bffbb0..415192871a7f 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// NullableClass
///
- public partial class NullableClass : IValidatableObject
+ public partial class NullableClass : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -251,6 +251,77 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NullableClass).AreEqual;
+ }
+
+ ///
+ /// Returns true if NullableClass instances are equal
+ ///
+ /// Instance of NullableClass to be compared
+ /// Boolean
+ public bool Equals(NullableClass input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ArrayAndItemsNullableProp != null)
+ hashCode = (hashCode * 59) + ArrayAndItemsNullableProp.GetHashCode();
+
+ if (ArrayItemsNullable != null)
+ hashCode = (hashCode * 59) + ArrayItemsNullable.GetHashCode();
+
+ if (ArrayNullableProp != null)
+ hashCode = (hashCode * 59) + ArrayNullableProp.GetHashCode();
+
+ if (BooleanProp != null)
+ hashCode = (hashCode * 59) + BooleanProp.GetHashCode();
+
+ if (DateProp != null)
+ hashCode = (hashCode * 59) + DateProp.GetHashCode();
+
+ if (DatetimeProp != null)
+ hashCode = (hashCode * 59) + DatetimeProp.GetHashCode();
+
+ if (IntegerProp != null)
+ hashCode = (hashCode * 59) + IntegerProp.GetHashCode();
+
+ if (NumberProp != null)
+ hashCode = (hashCode * 59) + NumberProp.GetHashCode();
+
+ if (ObjectAndItemsNullableProp != null)
+ hashCode = (hashCode * 59) + ObjectAndItemsNullableProp.GetHashCode();
+
+ if (ObjectItemsNullable != null)
+ hashCode = (hashCode * 59) + ObjectItemsNullable.GetHashCode();
+
+ if (ObjectNullableProp != null)
+ hashCode = (hashCode * 59) + ObjectNullableProp.GetHashCode();
+
+ if (StringProp != null)
+ hashCode = (hashCode * 59) + StringProp.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs
index 6efbeef44dcd..73d065eb7b0f 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableGuidClass.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// NullableGuidClass
///
- public partial class NullableGuidClass : IValidatableObject
+ public partial class NullableGuidClass : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -76,6 +76,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NullableGuidClass).AreEqual;
+ }
+
+ ///
+ /// Returns true if NullableGuidClass instances are equal
+ ///
+ /// Instance of NullableGuidClass to be compared
+ /// Boolean
+ public bool Equals(NullableGuidClass input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Uuid != null)
+ hashCode = (hashCode * 59) + Uuid.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs
index 9a93cb734e9c..41b8669f492d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// The value may be a shape or the 'null' value. The 'nullable' attribute was introduced in OAS schema >= 3.0 and has been deprecated in OAS schema >= 3.1.
///
- public partial class NullableShape : IValidatableObject
+ public partial class NullableShape : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -80,6 +80,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NullableShape).AreEqual;
+ }
+
+ ///
+ /// Returns true if NullableShape instances are equal
+ ///
+ /// Instance of NullableShape to be compared
+ /// Boolean
+ public bool Equals(NullableShape input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ShapeType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs
index 55ab016ac3db..b5bbaa65e7f5 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// NumberOnly
///
- public partial class NumberOnly : IValidatableObject
+ public partial class NumberOnly : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as NumberOnly).AreEqual;
+ }
+
+ ///
+ /// Returns true if NumberOnly instances are equal
+ ///
+ /// Instance of NumberOnly to be compared
+ /// Boolean
+ public bool Equals(NumberOnly input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (JustNumber != null)
+ hashCode = (hashCode * 59) + JustNumber.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
index 541a621953aa..377db506794d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ObjectWithDeprecatedFields
///
- public partial class ObjectWithDeprecatedFields : IValidatableObject
+ public partial class ObjectWithDeprecatedFields : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -126,6 +126,53 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ObjectWithDeprecatedFields).AreEqual;
+ }
+
+ ///
+ /// Returns true if ObjectWithDeprecatedFields instances are equal
+ ///
+ /// Instance of ObjectWithDeprecatedFields to be compared
+ /// Boolean
+ public bool Equals(ObjectWithDeprecatedFields input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Bars != null)
+ hashCode = (hashCode * 59) + Bars.GetHashCode();
+
+ if (DeprecatedRef != null)
+ hashCode = (hashCode * 59) + DeprecatedRef.GetHashCode();
+
+ if (Id != null)
+ hashCode = (hashCode * 59) + Id.GetHashCode();
+
+ if (Uuid != null)
+ hashCode = (hashCode * 59) + Uuid.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs
index c89963f55a36..9f7bc8d17301 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// OneOfString
///
- public partial class OneOfString : IValidatableObject
+ public partial class OneOfString : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -65,6 +65,41 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as OneOfString).AreEqual;
+ }
+
+ ///
+ /// Returns true if OneOfString instances are equal
+ ///
+ /// Instance of OneOfString to be compared
+ /// Boolean
+ public bool Equals(OneOfString input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs
index 8af5defaed7e..b459f3644c09 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Order
///
- public partial class Order : IValidatableObject
+ public partial class Order : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -156,6 +156,59 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Order).AreEqual;
+ }
+
+ ///
+ /// Returns true if Order instances are equal
+ ///
+ /// Instance of Order to be compared
+ /// Boolean
+ public bool Equals(Order input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Complete != null)
+ hashCode = (hashCode * 59) + Complete.GetHashCode();
+
+ if (Id != null)
+ hashCode = (hashCode * 59) + Id.GetHashCode();
+
+ if (PetId != null)
+ hashCode = (hashCode * 59) + PetId.GetHashCode();
+
+ if (Quantity != null)
+ hashCode = (hashCode * 59) + Quantity.GetHashCode();
+
+ if (ShipDate != null)
+ hashCode = (hashCode * 59) + ShipDate.GetHashCode();
+
+ if (Status != null)
+ hashCode = (hashCode * 59) + Status.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs
index d366c24ec24c..838de079def8 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// OuterComposite
///
- public partial class OuterComposite : IValidatableObject
+ public partial class OuterComposite : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -107,6 +107,50 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as OuterComposite).AreEqual;
+ }
+
+ ///
+ /// Returns true if OuterComposite instances are equal
+ ///
+ /// Instance of OuterComposite to be compared
+ /// Boolean
+ public bool Equals(OuterComposite input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (MyBoolean != null)
+ hashCode = (hashCode * 59) + MyBoolean.GetHashCode();
+
+ if (MyNumber != null)
+ hashCode = (hashCode * 59) + MyNumber.GetHashCode();
+
+ if (MyString != null)
+ hashCode = (hashCode * 59) + MyString.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs
index e69a7e25caa5..86983a5ae718 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ParentPet
///
- public partial class ParentPet : GrandparentAnimal, IValidatableObject
+ public partial class ParentPet : GrandparentAnimal, IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -52,6 +52,40 @@ public override string ToString()
sb.Append("}\n");
return sb.ToString();
}
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ParentPet).AreEqual;
+ }
+
+ ///
+ /// Returns true if ParentPet instances are equal
+ ///
+ /// Instance of ParentPet to be compared
+ /// Boolean
+ public bool Equals(ParentPet input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = base.GetHashCode();
+
+ return hashCode;
+ }
+ }
}
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs
index 6e741c362d66..50273f72d2a6 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Pet
///
- public partial class Pet : IValidatableObject
+ public partial class Pet : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -142,6 +142,55 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Pet).AreEqual;
+ }
+
+ ///
+ /// Returns true if Pet instances are equal
+ ///
+ /// Instance of Pet to be compared
+ /// Boolean
+ public bool Equals(Pet input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + Name.GetHashCode();
+ hashCode = (hashCode * 59) + PhotoUrls.GetHashCode();
+ if (Category != null)
+ hashCode = (hashCode * 59) + Category.GetHashCode();
+
+ if (Id != null)
+ hashCode = (hashCode * 59) + Id.GetHashCode();
+
+ if (Status != null)
+ hashCode = (hashCode * 59) + Status.GetHashCode();
+
+ if (Tags != null)
+ hashCode = (hashCode * 59) + Tags.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs
index b6f300c94400..4ca819c4d699 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Pig
///
- public partial class Pig : IValidatableObject
+ public partial class Pig : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -80,6 +80,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Pig).AreEqual;
+ }
+
+ ///
+ /// Returns true if Pig instances are equal
+ ///
+ /// Instance of Pig to be compared
+ /// Boolean
+ public bool Equals(Pig input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ClassName.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs
index ddea47edf40c..8473cacd0ff5 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// PolymorphicProperty
///
- public partial class PolymorphicProperty : IValidatableObject
+ public partial class PolymorphicProperty : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -110,6 +110,41 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as PolymorphicProperty).AreEqual;
+ }
+
+ ///
+ /// Returns true if PolymorphicProperty instances are equal
+ ///
+ /// Instance of PolymorphicProperty to be compared
+ /// Boolean
+ public bool Equals(PolymorphicProperty input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs
index e8a2e2439975..e26a93281ae3 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Quadrilateral
///
- public partial class Quadrilateral : IValidatableObject
+ public partial class Quadrilateral : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -80,6 +80,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Quadrilateral).AreEqual;
+ }
+
+ ///
+ /// Returns true if Quadrilateral instances are equal
+ ///
+ /// Instance of Quadrilateral to be compared
+ /// Boolean
+ public bool Equals(Quadrilateral input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + QuadrilateralType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs
index 519ed66393ca..3389630a55ab 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// QuadrilateralInterface
///
- public partial class QuadrilateralInterface : IValidatableObject
+ public partial class QuadrilateralInterface : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -68,6 +68,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as QuadrilateralInterface).AreEqual;
+ }
+
+ ///
+ /// Returns true if QuadrilateralInterface instances are equal
+ ///
+ /// Instance of QuadrilateralInterface to be compared
+ /// Boolean
+ public bool Equals(QuadrilateralInterface input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + QuadrilateralType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
index a7cd43316ac8..cbc9b21a9bc7 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs
@@ -123,6 +123,9 @@ public override int GetHashCode()
if (Bar != null)
hashCode = (hashCode * 59) + Bar.GetHashCode();
+ if (Baz != null)
+ hashCode = (hashCode * 59) + Baz.GetHashCode();
+
hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
return hashCode;
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs
index f7422f86f558..7fbd98de5880 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// RequiredClass
///
- public partial class RequiredClass : IValidatableObject
+ public partial class RequiredClass : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -613,6 +613,151 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as RequiredClass).AreEqual;
+ }
+
+ ///
+ /// Returns true if RequiredClass instances are equal
+ ///
+ /// Instance of RequiredClass to be compared
+ /// Boolean
+ public bool Equals(RequiredClass input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + RequiredNotNullableDateProp.GetHashCode();
+ hashCode = (hashCode * 59) + RequiredNotnullableArrayOfString.GetHashCode();
+ hashCode = (hashCode * 59) + RequiredNotnullableBooleanProp.GetHashCode();
+ hashCode = (hashCode * 59) + RequiredNotnullableDatetimeProp.GetHashCode();
+ hashCode = (hashCode * 59) + RequiredNotnullableEnumInteger.GetHashCode();
+ hashCode = (hashCode * 59) + RequiredNotnullableEnumIntegerOnly.GetHashCode();
+ hashCode = (hashCode * 59) + RequiredNotnullableEnumString.GetHashCode();
+ hashCode = (hashCode * 59) + RequiredNotnullableOuterEnumDefaultValue.GetHashCode();
+ hashCode = (hashCode * 59) + RequiredNotnullableStringProp.GetHashCode();
+ hashCode = (hashCode * 59) + RequiredNotnullableUuid.GetHashCode();
+ hashCode = (hashCode * 59) + RequiredNotnullableintegerProp.GetHashCode();
+ if (NotRequiredNotnullableDateProp != null)
+ hashCode = (hashCode * 59) + NotRequiredNotnullableDateProp.GetHashCode();
+
+ if (NotRequiredNotnullableintegerProp != null)
+ hashCode = (hashCode * 59) + NotRequiredNotnullableintegerProp.GetHashCode();
+
+ if (NotRequiredNullableDateProp != null)
+ hashCode = (hashCode * 59) + NotRequiredNullableDateProp.GetHashCode();
+
+ if (NotRequiredNullableIntegerProp != null)
+ hashCode = (hashCode * 59) + NotRequiredNullableIntegerProp.GetHashCode();
+
+ if (NotrequiredNotnullableArrayOfString != null)
+ hashCode = (hashCode * 59) + NotrequiredNotnullableArrayOfString.GetHashCode();
+
+ if (NotrequiredNotnullableBooleanProp != null)
+ hashCode = (hashCode * 59) + NotrequiredNotnullableBooleanProp.GetHashCode();
+
+ if (NotrequiredNotnullableDatetimeProp != null)
+ hashCode = (hashCode * 59) + NotrequiredNotnullableDatetimeProp.GetHashCode();
+
+ if (NotrequiredNotnullableEnumInteger != null)
+ hashCode = (hashCode * 59) + NotrequiredNotnullableEnumInteger.GetHashCode();
+
+ if (NotrequiredNotnullableEnumIntegerOnly != null)
+ hashCode = (hashCode * 59) + NotrequiredNotnullableEnumIntegerOnly.GetHashCode();
+
+ if (NotrequiredNotnullableEnumString != null)
+ hashCode = (hashCode * 59) + NotrequiredNotnullableEnumString.GetHashCode();
+
+ if (NotrequiredNotnullableOuterEnumDefaultValue != null)
+ hashCode = (hashCode * 59) + NotrequiredNotnullableOuterEnumDefaultValue.GetHashCode();
+
+ if (NotrequiredNotnullableStringProp != null)
+ hashCode = (hashCode * 59) + NotrequiredNotnullableStringProp.GetHashCode();
+
+ if (NotrequiredNotnullableUuid != null)
+ hashCode = (hashCode * 59) + NotrequiredNotnullableUuid.GetHashCode();
+
+ if (NotrequiredNullableArrayOfString != null)
+ hashCode = (hashCode * 59) + NotrequiredNullableArrayOfString.GetHashCode();
+
+ if (NotrequiredNullableBooleanProp != null)
+ hashCode = (hashCode * 59) + NotrequiredNullableBooleanProp.GetHashCode();
+
+ if (NotrequiredNullableDatetimeProp != null)
+ hashCode = (hashCode * 59) + NotrequiredNullableDatetimeProp.GetHashCode();
+
+ if (NotrequiredNullableEnumInteger != null)
+ hashCode = (hashCode * 59) + NotrequiredNullableEnumInteger.GetHashCode();
+
+ if (NotrequiredNullableEnumIntegerOnly != null)
+ hashCode = (hashCode * 59) + NotrequiredNullableEnumIntegerOnly.GetHashCode();
+
+ if (NotrequiredNullableEnumString != null)
+ hashCode = (hashCode * 59) + NotrequiredNullableEnumString.GetHashCode();
+
+ if (NotrequiredNullableOuterEnumDefaultValue != null)
+ hashCode = (hashCode * 59) + NotrequiredNullableOuterEnumDefaultValue.GetHashCode();
+
+ if (NotrequiredNullableStringProp != null)
+ hashCode = (hashCode * 59) + NotrequiredNullableStringProp.GetHashCode();
+
+ if (NotrequiredNullableUuid != null)
+ hashCode = (hashCode * 59) + NotrequiredNullableUuid.GetHashCode();
+
+ if (RequiredNullableArrayOfString != null)
+ hashCode = (hashCode * 59) + RequiredNullableArrayOfString.GetHashCode();
+
+ if (RequiredNullableBooleanProp != null)
+ hashCode = (hashCode * 59) + RequiredNullableBooleanProp.GetHashCode();
+
+ if (RequiredNullableDateProp != null)
+ hashCode = (hashCode * 59) + RequiredNullableDateProp.GetHashCode();
+
+ if (RequiredNullableDatetimeProp != null)
+ hashCode = (hashCode * 59) + RequiredNullableDatetimeProp.GetHashCode();
+
+ if (RequiredNullableEnumInteger != null)
+ hashCode = (hashCode * 59) + RequiredNullableEnumInteger.GetHashCode();
+
+ if (RequiredNullableEnumIntegerOnly != null)
+ hashCode = (hashCode * 59) + RequiredNullableEnumIntegerOnly.GetHashCode();
+
+ if (RequiredNullableEnumString != null)
+ hashCode = (hashCode * 59) + RequiredNullableEnumString.GetHashCode();
+
+ if (RequiredNullableIntegerProp != null)
+ hashCode = (hashCode * 59) + RequiredNullableIntegerProp.GetHashCode();
+
+ if (RequiredNullableOuterEnumDefaultValue != null)
+ hashCode = (hashCode * 59) + RequiredNullableOuterEnumDefaultValue.GetHashCode();
+
+ if (RequiredNullableStringProp != null)
+ hashCode = (hashCode * 59) + RequiredNullableStringProp.GetHashCode();
+
+ if (RequiredNullableUuid != null)
+ hashCode = (hashCode * 59) + RequiredNullableUuid.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs
index fb1b3546a031..b516f1e23a07 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Result
///
- public partial class Result : IValidatableObject
+ public partial class Result : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -110,6 +110,50 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Result).AreEqual;
+ }
+
+ ///
+ /// Returns true if Result instances are equal
+ ///
+ /// Instance of Result to be compared
+ /// Boolean
+ public bool Equals(Result input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Code != null)
+ hashCode = (hashCode * 59) + Code.GetHashCode();
+
+ if (Data != null)
+ hashCode = (hashCode * 59) + Data.GetHashCode();
+
+ if (Uuid != null)
+ hashCode = (hashCode * 59) + Uuid.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs
index 81211e0ce4ac..a6cec7f4ab13 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Model for testing reserved words
///
- public partial class Return : IValidatableObject
+ public partial class Return : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -109,6 +109,51 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Return).AreEqual;
+ }
+
+ ///
+ /// Returns true if Return instances are equal
+ ///
+ /// Instance of Return to be compared
+ /// Boolean
+ public bool Equals(Return input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + Lock.GetHashCode();
+ if (Abstract != null)
+ hashCode = (hashCode * 59) + Abstract.GetHashCode();
+
+ if (VarReturn != null)
+ hashCode = (hashCode * 59) + VarReturn.GetHashCode();
+
+ if (Unsafe != null)
+ hashCode = (hashCode * 59) + Unsafe.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs
index 5b7a88bd659a..a630e939dd9b 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Role report Hash
///
- public partial class RolesReportsHash : IValidatableObject
+ public partial class RolesReportsHash : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -91,6 +91,47 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as RolesReportsHash).AreEqual;
+ }
+
+ ///
+ /// Returns true if RolesReportsHash instances are equal
+ ///
+ /// Instance of RolesReportsHash to be compared
+ /// Boolean
+ public bool Equals(RolesReportsHash input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Role != null)
+ hashCode = (hashCode * 59) + Role.GetHashCode();
+
+ if (RoleUuid != null)
+ hashCode = (hashCode * 59) + RoleUuid.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
index 29c8760c9722..96c1912c44e1 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// RolesReportsHashRole
///
- public partial class RolesReportsHashRole : IValidatableObject
+ public partial class RolesReportsHashRole : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as RolesReportsHashRole).AreEqual;
+ }
+
+ ///
+ /// Returns true if RolesReportsHashRole instances are equal
+ ///
+ /// Instance of RolesReportsHashRole to be compared
+ /// Boolean
+ public bool Equals(RolesReportsHashRole input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Name != null)
+ hashCode = (hashCode * 59) + Name.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs
index 5c960eb54744..e6e7ba44c94d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ScaleneTriangle
///
- public partial class ScaleneTriangle : IValidatableObject
+ public partial class ScaleneTriangle : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -77,6 +77,43 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ScaleneTriangle).AreEqual;
+ }
+
+ ///
+ /// Returns true if ScaleneTriangle instances are equal
+ ///
+ /// Instance of ScaleneTriangle to be compared
+ /// Boolean
+ public bool Equals(ScaleneTriangle input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ShapeType.GetHashCode();
+ hashCode = (hashCode * 59) + TriangleType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs
index c651ac7d2454..28f687694345 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Shape
///
- public partial class Shape : IValidatableObject
+ public partial class Shape : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -80,6 +80,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Shape).AreEqual;
+ }
+
+ ///
+ /// Returns true if Shape instances are equal
+ ///
+ /// Instance of Shape to be compared
+ /// Boolean
+ public bool Equals(Shape input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ShapeType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs
index 37db5df64908..226c2b95f32d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ShapeInterface
///
- public partial class ShapeInterface : IValidatableObject
+ public partial class ShapeInterface : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -68,6 +68,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ShapeInterface).AreEqual;
+ }
+
+ ///
+ /// Returns true if ShapeInterface instances are equal
+ ///
+ /// Instance of ShapeInterface to be compared
+ /// Boolean
+ public bool Equals(ShapeInterface input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ShapeType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs
index 1f0b22030070..aa5ab3585b45 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// The value may be a shape or the 'null' value. This is introduced in OAS schema >= 3.1.
///
- public partial class ShapeOrNull : IValidatableObject
+ public partial class ShapeOrNull : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -80,6 +80,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ShapeOrNull).AreEqual;
+ }
+
+ ///
+ /// Returns true if ShapeOrNull instances are equal
+ ///
+ /// Instance of ShapeOrNull to be compared
+ /// Boolean
+ public bool Equals(ShapeOrNull input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ShapeType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
index ffa68d1e75de..fb1f60c70f36 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// SimpleQuadrilateral
///
- public partial class SimpleQuadrilateral : IValidatableObject
+ public partial class SimpleQuadrilateral : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -77,6 +77,43 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as SimpleQuadrilateral).AreEqual;
+ }
+
+ ///
+ /// Returns true if SimpleQuadrilateral instances are equal
+ ///
+ /// Instance of SimpleQuadrilateral to be compared
+ /// Boolean
+ public bool Equals(SimpleQuadrilateral input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + QuadrilateralType.GetHashCode();
+ hashCode = (hashCode * 59) + ShapeType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs
index f30e2a11997b..59ac9471da5c 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// SpecialModelName
///
- public partial class SpecialModelName : IValidatableObject
+ public partial class SpecialModelName : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -91,6 +91,47 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as SpecialModelName).AreEqual;
+ }
+
+ ///
+ /// Returns true if SpecialModelName instances are equal
+ ///
+ /// Instance of SpecialModelName to be compared
+ /// Boolean
+ public bool Equals(SpecialModelName input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (VarSpecialModelName != null)
+ hashCode = (hashCode * 59) + VarSpecialModelName.GetHashCode();
+
+ if (SpecialPropertyName != null)
+ hashCode = (hashCode * 59) + SpecialPropertyName.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs
index 6b9d5082405b..4229b0b75aa3 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Tag
///
- public partial class Tag : IValidatableObject
+ public partial class Tag : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -91,6 +91,47 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Tag).AreEqual;
+ }
+
+ ///
+ /// Returns true if Tag instances are equal
+ ///
+ /// Instance of Tag to be compared
+ /// Boolean
+ public bool Equals(Tag input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Id != null)
+ hashCode = (hashCode * 59) + Id.GetHashCode();
+
+ if (Name != null)
+ hashCode = (hashCode * 59) + Name.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
index 11d1cd5963c0..57c30556c29c 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// TestCollectionEndingWithWordList
///
- public partial class TestCollectionEndingWithWordList : IValidatableObject
+ public partial class TestCollectionEndingWithWordList : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordList).AreEqual;
+ }
+
+ ///
+ /// Returns true if TestCollectionEndingWithWordList instances are equal
+ ///
+ /// Instance of TestCollectionEndingWithWordList to be compared
+ /// Boolean
+ public bool Equals(TestCollectionEndingWithWordList input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Value != null)
+ hashCode = (hashCode * 59) + Value.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
index 7328caf1ead5..46bd8cab9cb5 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// TestCollectionEndingWithWordListObject
///
- public partial class TestCollectionEndingWithWordListObject : IValidatableObject
+ public partial class TestCollectionEndingWithWordListObject : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as TestCollectionEndingWithWordListObject).AreEqual;
+ }
+
+ ///
+ /// Returns true if TestCollectionEndingWithWordListObject instances are equal
+ ///
+ /// Instance of TestCollectionEndingWithWordListObject to be compared
+ /// Boolean
+ public bool Equals(TestCollectionEndingWithWordListObject input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (TestCollectionEndingWithWordList != null)
+ hashCode = (hashCode * 59) + TestCollectionEndingWithWordList.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs
index df5553038566..badbeff43421 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// TestDescendants
///
- public partial class TestDescendants : IValidatableObject
+ public partial class TestDescendants : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -76,6 +76,43 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as TestDescendants).AreEqual;
+ }
+
+ ///
+ /// Returns true if TestDescendants instances are equal
+ ///
+ /// Instance of TestDescendants to be compared
+ /// Boolean
+ public bool Equals(TestDescendants input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + AlternativeName.GetHashCode();
+ hashCode = (hashCode * 59) + ObjectType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
index 33f5183651a3..bb83884c6e2e 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// TestInlineFreeformAdditionalPropertiesRequest
///
- public partial class TestInlineFreeformAdditionalPropertiesRequest : IValidatableObject
+ public partial class TestInlineFreeformAdditionalPropertiesRequest : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as TestInlineFreeformAdditionalPropertiesRequest).AreEqual;
+ }
+
+ ///
+ /// Returns true if TestInlineFreeformAdditionalPropertiesRequest instances are equal
+ ///
+ /// Instance of TestInlineFreeformAdditionalPropertiesRequest to be compared
+ /// Boolean
+ public bool Equals(TestInlineFreeformAdditionalPropertiesRequest input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (SomeProperty != null)
+ hashCode = (hashCode * 59) + SomeProperty.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs
index cfa1aee10f8d..f0fa0884d97d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// TestResult
///
- public partial class TestResult : IValidatableObject
+ public partial class TestResult : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -109,6 +109,50 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as TestResult).AreEqual;
+ }
+
+ ///
+ /// Returns true if TestResult instances are equal
+ ///
+ /// Instance of TestResult to be compared
+ /// Boolean
+ public bool Equals(TestResult input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Code != null)
+ hashCode = (hashCode * 59) + Code.GetHashCode();
+
+ if (Data != null)
+ hashCode = (hashCode * 59) + Data.GetHashCode();
+
+ if (Uuid != null)
+ hashCode = (hashCode * 59) + Uuid.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs
index cf22051519ad..5aace5b51f1d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Triangle
///
- public partial class Triangle : IValidatableObject
+ public partial class Triangle : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -95,6 +95,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Triangle).AreEqual;
+ }
+
+ ///
+ /// Returns true if Triangle instances are equal
+ ///
+ /// Instance of Triangle to be compared
+ /// Boolean
+ public bool Equals(Triangle input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + TriangleType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs
index 0f13b0e77451..d2cdf13edc72 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// TriangleInterface
///
- public partial class TriangleInterface : IValidatableObject
+ public partial class TriangleInterface : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -68,6 +68,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as TriangleInterface).AreEqual;
+ }
+
+ ///
+ /// Returns true if TriangleInterface instances are equal
+ ///
+ /// Instance of TriangleInterface to be compared
+ /// Boolean
+ public bool Equals(TriangleInterface input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + TriangleType.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs
index a85e556bb9e8..9d46caed8e10 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// User
///
- public partial class User : IValidatableObject
+ public partial class User : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -256,6 +256,77 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as User).AreEqual;
+ }
+
+ ///
+ /// Returns true if User instances are equal
+ ///
+ /// Instance of User to be compared
+ /// Boolean
+ public bool Equals(User input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (AnyTypeProp != null)
+ hashCode = (hashCode * 59) + AnyTypeProp.GetHashCode();
+
+ if (AnyTypePropNullable != null)
+ hashCode = (hashCode * 59) + AnyTypePropNullable.GetHashCode();
+
+ if (Email != null)
+ hashCode = (hashCode * 59) + Email.GetHashCode();
+
+ if (FirstName != null)
+ hashCode = (hashCode * 59) + FirstName.GetHashCode();
+
+ if (Id != null)
+ hashCode = (hashCode * 59) + Id.GetHashCode();
+
+ if (LastName != null)
+ hashCode = (hashCode * 59) + LastName.GetHashCode();
+
+ if (ObjectWithNoDeclaredProps != null)
+ hashCode = (hashCode * 59) + ObjectWithNoDeclaredProps.GetHashCode();
+
+ if (ObjectWithNoDeclaredPropsNullable != null)
+ hashCode = (hashCode * 59) + ObjectWithNoDeclaredPropsNullable.GetHashCode();
+
+ if (Password != null)
+ hashCode = (hashCode * 59) + Password.GetHashCode();
+
+ if (Phone != null)
+ hashCode = (hashCode * 59) + Phone.GetHashCode();
+
+ if (UserStatus != null)
+ hashCode = (hashCode * 59) + UserStatus.GetHashCode();
+
+ if (Username != null)
+ hashCode = (hashCode * 59) + Username.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs
index 56da6f6db3c6..fd4741ccf020 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Whale
///
- public partial class Whale : IValidatableObject
+ public partial class Whale : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -100,6 +100,48 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Whale).AreEqual;
+ }
+
+ ///
+ /// Returns true if Whale instances are equal
+ ///
+ /// Instance of Whale to be compared
+ /// Boolean
+ public bool Equals(Whale input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ClassName.GetHashCode();
+ if (HasBaleen != null)
+ hashCode = (hashCode * 59) + HasBaleen.GetHashCode();
+
+ if (HasTeeth != null)
+ hashCode = (hashCode * 59) + HasTeeth.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs
index 0b9bb3c3bc51..36b1554933d0 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Zebra
///
- public partial class Zebra : IValidatableObject
+ public partial class Zebra : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -84,6 +84,45 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Zebra).AreEqual;
+ }
+
+ ///
+ /// Returns true if Zebra instances are equal
+ ///
+ /// Instance of Zebra to be compared
+ /// Boolean
+ public bool Equals(Zebra input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ClassName.GetHashCode();
+ if (Type != null)
+ hashCode = (hashCode * 59) + Type.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs
index d538b722cae0..53ad2f0e1fb1 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ZeroBasedEnumClass
///
- public partial class ZeroBasedEnumClass : IValidatableObject
+ public partial class ZeroBasedEnumClass : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ZeroBasedEnumClass).AreEqual;
+ }
+
+ ///
+ /// Returns true if ZeroBasedEnumClass instances are equal
+ ///
+ /// Instance of ZeroBasedEnumClass to be compared
+ /// Boolean
+ public bool Equals(ZeroBasedEnumClass input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ZeroBasedEnum != null)
+ hashCode = (hashCode * 59) + ZeroBasedEnum.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs
index 7867e6645419..628e5e8ba608 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Apple
///
- public partial class Apple : IValidatableObject
+ public partial class Apple : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Apple).AreEqual;
+ }
+
+ ///
+ /// Returns true if Apple instances are equal
+ ///
+ /// Instance of Apple to be compared
+ /// Boolean
+ public bool Equals(Apple input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Kind != null)
+ hashCode = (hashCode * 59) + Kind.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs
index edf36db227d5..ad44625adf83 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Banana
///
- public partial class Banana : IValidatableObject
+ public partial class Banana : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Banana).AreEqual;
+ }
+
+ ///
+ /// Returns true if Banana instances are equal
+ ///
+ /// Instance of Banana to be compared
+ /// Boolean
+ public bool Equals(Banana input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Count != null)
+ hashCode = (hashCode * 59) + Count.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs
index 1d1c7c5388c0..7ac80bbb8284 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Fruit
///
- public partial class Fruit : IValidatableObject
+ public partial class Fruit : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -98,6 +98,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Fruit).AreEqual;
+ }
+
+ ///
+ /// Returns true if Fruit instances are equal
+ ///
+ /// Instance of Fruit to be compared
+ /// Boolean
+ public bool Equals(Fruit input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Color != null)
+ hashCode = (hashCode * 59) + Color.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs
index 4562d4ceb728..0ac5a7015a9f 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// test map of maps
///
- public partial class Activity : IValidatableObject
+ public partial class Activity : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Activity).AreEqual;
+ }
+
+ ///
+ /// Returns true if Activity instances are equal
+ ///
+ /// Instance of Activity to be compared
+ /// Boolean
+ public bool Equals(Activity input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ActivityOutputs != null)
+ hashCode = (hashCode * 59) + ActivityOutputs.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
index db832150ed96..9521ebe66825 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ActivityOutputElementRepresentation
///
- public partial class ActivityOutputElementRepresentation : IValidatableObject
+ public partial class ActivityOutputElementRepresentation : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -91,6 +91,47 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ActivityOutputElementRepresentation).AreEqual;
+ }
+
+ ///
+ /// Returns true if ActivityOutputElementRepresentation instances are equal
+ ///
+ /// Instance of ActivityOutputElementRepresentation to be compared
+ /// Boolean
+ public bool Equals(ActivityOutputElementRepresentation input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Prop1 != null)
+ hashCode = (hashCode * 59) + Prop1.GetHashCode();
+
+ if (Prop2 != null)
+ hashCode = (hashCode * 59) + Prop2.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
index f70c7a4c5fc3..616a0cabe479 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// AdditionalPropertiesClass
///
- public partial class AdditionalPropertiesClass : IValidatableObject
+ public partial class AdditionalPropertiesClass : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -188,6 +188,65 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as AdditionalPropertiesClass).AreEqual;
+ }
+
+ ///
+ /// Returns true if AdditionalPropertiesClass instances are equal
+ ///
+ /// Instance of AdditionalPropertiesClass to be compared
+ /// Boolean
+ public bool Equals(AdditionalPropertiesClass input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Anytype1 != null)
+ hashCode = (hashCode * 59) + Anytype1.GetHashCode();
+
+ if (EmptyMap != null)
+ hashCode = (hashCode * 59) + EmptyMap.GetHashCode();
+
+ if (MapOfMapProperty != null)
+ hashCode = (hashCode * 59) + MapOfMapProperty.GetHashCode();
+
+ if (MapProperty != null)
+ hashCode = (hashCode * 59) + MapProperty.GetHashCode();
+
+ if (MapWithUndeclaredPropertiesAnytype1 != null)
+ hashCode = (hashCode * 59) + MapWithUndeclaredPropertiesAnytype1.GetHashCode();
+
+ if (MapWithUndeclaredPropertiesAnytype2 != null)
+ hashCode = (hashCode * 59) + MapWithUndeclaredPropertiesAnytype2.GetHashCode();
+
+ if (MapWithUndeclaredPropertiesAnytype3 != null)
+ hashCode = (hashCode * 59) + MapWithUndeclaredPropertiesAnytype3.GetHashCode();
+
+ if (MapWithUndeclaredPropertiesString != null)
+ hashCode = (hashCode * 59) + MapWithUndeclaredPropertiesString.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs
index f172cd70bc53..7cedbffdbcf6 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Animal
///
- public partial class Animal : IValidatableObject
+ public partial class Animal : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -83,6 +83,45 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Animal).AreEqual;
+ }
+
+ ///
+ /// Returns true if Animal instances are equal
+ ///
+ /// Instance of Animal to be compared
+ /// Boolean
+ public bool Equals(Animal input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ClassName.GetHashCode();
+ if (Color != null)
+ hashCode = (hashCode * 59) + Color.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs
index 74dbae3c6ba3..176933bfd50d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ApiResponse
///
- public partial class ApiResponse : IValidatableObject
+ public partial class ApiResponse : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -107,6 +107,50 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ApiResponse).AreEqual;
+ }
+
+ ///
+ /// Returns true if ApiResponse instances are equal
+ ///
+ /// Instance of ApiResponse to be compared
+ /// Boolean
+ public bool Equals(ApiResponse input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (Code != null)
+ hashCode = (hashCode * 59) + Code.GetHashCode();
+
+ if (Message != null)
+ hashCode = (hashCode * 59) + Message.GetHashCode();
+
+ if (Type != null)
+ hashCode = (hashCode * 59) + Type.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs
index df3bc9af06cc..ca96c6586a85 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Apple
///
- public partial class Apple : IValidatableObject
+ public partial class Apple : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -107,6 +107,50 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Apple).AreEqual;
+ }
+
+ ///
+ /// Returns true if Apple instances are equal
+ ///
+ /// Instance of Apple to be compared
+ /// Boolean
+ public bool Equals(Apple input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ColorCode != null)
+ hashCode = (hashCode * 59) + ColorCode.GetHashCode();
+
+ if (Cultivar != null)
+ hashCode = (hashCode * 59) + Cultivar.GetHashCode();
+
+ if (Origin != null)
+ hashCode = (hashCode * 59) + Origin.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs
index 1a839ecb01b6..ac0d7ce04ae9 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// AppleReq
///
- public partial class AppleReq : IValidatableObject
+ public partial class AppleReq : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -77,6 +77,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as AppleReq).AreEqual;
+ }
+
+ ///
+ /// Returns true if AppleReq instances are equal
+ ///
+ /// Instance of AppleReq to be compared
+ /// Boolean
+ public bool Equals(AppleReq input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + Cultivar.GetHashCode();
+ if (Mealy != null)
+ hashCode = (hashCode * 59) + Mealy.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
index cea3f5a4ba50..ceae5298ed9b 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ArrayOfArrayOfNumberOnly
///
- public partial class ArrayOfArrayOfNumberOnly : IValidatableObject
+ public partial class ArrayOfArrayOfNumberOnly : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ArrayOfArrayOfNumberOnly).AreEqual;
+ }
+
+ ///
+ /// Returns true if ArrayOfArrayOfNumberOnly instances are equal
+ ///
+ /// Instance of ArrayOfArrayOfNumberOnly to be compared
+ /// Boolean
+ public bool Equals(ArrayOfArrayOfNumberOnly input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ArrayArrayNumber != null)
+ hashCode = (hashCode * 59) + ArrayArrayNumber.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
index 47bac6ba97c6..8ce9459915ff 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ArrayOfNumberOnly
///
- public partial class ArrayOfNumberOnly : IValidatableObject
+ public partial class ArrayOfNumberOnly : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ArrayOfNumberOnly).AreEqual;
+ }
+
+ ///
+ /// Returns true if ArrayOfNumberOnly instances are equal
+ ///
+ /// Instance of ArrayOfNumberOnly to be compared
+ /// Boolean
+ public bool Equals(ArrayOfNumberOnly input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ArrayNumber != null)
+ hashCode = (hashCode * 59) + ArrayNumber.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs
index 1992bf9e932d..ce5e03122363 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ArrayTest
///
- public partial class ArrayTest : IValidatableObject
+ public partial class ArrayTest : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -107,6 +107,50 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ArrayTest).AreEqual;
+ }
+
+ ///
+ /// Returns true if ArrayTest instances are equal
+ ///
+ /// Instance of ArrayTest to be compared
+ /// Boolean
+ public bool Equals(ArrayTest input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ArrayArrayOfInteger != null)
+ hashCode = (hashCode * 59) + ArrayArrayOfInteger.GetHashCode();
+
+ if (ArrayArrayOfModel != null)
+ hashCode = (hashCode * 59) + ArrayArrayOfModel.GetHashCode();
+
+ if (ArrayOfString != null)
+ hashCode = (hashCode * 59) + ArrayOfString.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs
index d7b7e8188f75..ac171273b5fc 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Banana
///
- public partial class Banana : IValidatableObject
+ public partial class Banana : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -75,6 +75,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Banana).AreEqual;
+ }
+
+ ///
+ /// Returns true if Banana instances are equal
+ ///
+ /// Instance of Banana to be compared
+ /// Boolean
+ public bool Equals(Banana input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (LengthCm != null)
+ hashCode = (hashCode * 59) + LengthCm.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs
index 8aa8da44caea..7d9cb85757a4 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// BananaReq
///
- public partial class BananaReq : IValidatableObject
+ public partial class BananaReq : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -77,6 +77,44 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as BananaReq).AreEqual;
+ }
+
+ ///
+ /// Returns true if BananaReq instances are equal
+ ///
+ /// Instance of BananaReq to be compared
+ /// Boolean
+ public bool Equals(BananaReq input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + LengthCm.GetHashCode();
+ if (Sweet != null)
+ hashCode = (hashCode * 59) + Sweet.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs
index 9938d89e008d..1577fab0eaba 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// BasquePig
///
- public partial class BasquePig : IValidatableObject
+ public partial class BasquePig : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -68,6 +68,42 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as BasquePig).AreEqual;
+ }
+
+ ///
+ /// Returns true if BasquePig instances are equal
+ ///
+ /// Instance of BasquePig to be compared
+ /// Boolean
+ public bool Equals(BasquePig input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + ClassName.GetHashCode();
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs
index a1fb0b3eb574..477cd5c1cb70 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Capitalization
///
- public partial class Capitalization : IValidatableObject
+ public partial class Capitalization : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -156,6 +156,59 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Capitalization).AreEqual;
+ }
+
+ ///
+ /// Returns true if Capitalization instances are equal
+ ///
+ /// Instance of Capitalization to be compared
+ /// Boolean
+ public bool Equals(Capitalization input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (ATT_NAME != null)
+ hashCode = (hashCode * 59) + ATT_NAME.GetHashCode();
+
+ if (CapitalCamel != null)
+ hashCode = (hashCode * 59) + CapitalCamel.GetHashCode();
+
+ if (CapitalSnake != null)
+ hashCode = (hashCode * 59) + CapitalSnake.GetHashCode();
+
+ if (SCAETHFlowPoints != null)
+ hashCode = (hashCode * 59) + SCAETHFlowPoints.GetHashCode();
+
+ if (SmallCamel != null)
+ hashCode = (hashCode * 59) + SmallCamel.GetHashCode();
+
+ if (SmallSnake != null)
+ hashCode = (hashCode * 59) + SmallSnake.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs
index 9ed61c34f667..0e4dfd825ca3 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Cat
///
- public partial class Cat : Animal, IValidatableObject
+ public partial class Cat : Animal, IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -69,6 +69,43 @@ public override string ToString()
sb.Append("}\n");
return sb.ToString();
}
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Cat).AreEqual;
+ }
+
+ ///
+ /// Returns true if Cat instances are equal
+ ///
+ /// Instance of Cat to be compared
+ /// Boolean
+ public bool Equals(Cat input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = base.GetHashCode();
+ if (Declawed != null)
+ hashCode = (hashCode * 59) + Declawed.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
}
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs
index 7db5ba3129ff..3315b089337d 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// Category
///
- public partial class Category : IValidatableObject
+ public partial class Category : IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -84,6 +84,45 @@ public override string ToString()
return sb.ToString();
}
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as Category).AreEqual;
+ }
+
+ ///
+ /// Returns true if Category instances are equal
+ ///
+ /// Instance of Category to be compared
+ /// Boolean
+ public bool Equals(Category input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + Name.GetHashCode();
+ if (Id != null)
+ hashCode = (hashCode * 59) + Id.GetHashCode();
+
+ hashCode = (hashCode * 59) + AdditionalProperties.GetHashCode();
+
+ return hashCode;
+ }
+ }
+
///
/// To validate all properties of the instance
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs
index cce039237aea..5d3849406886 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///
/// ChildCat
///
- public partial class ChildCat : ParentPet, IValidatableObject
+ public partial class ChildCat : ParentPet, IEquatable, IValidatableObject
{
///
/// Initializes a new instance of the class.
@@ -128,6 +128,44 @@ public override string ToString()
sb.Append("}\n");
return sb.ToString();
}
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input as ChildCat).AreEqual;
+ }
+
+ ///
+ /// Returns true if ChildCat instances are equal
+ ///
+ /// Instance of ChildCat to be compared
+ /// Boolean
+ public bool Equals(ChildCat input)
+ {
+ return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = base.GetHashCode();
+ hashCode = (hashCode * 59) + PetType.GetHashCode();
+ if (Name != null)
+ hashCode = (hashCode * 59) + Name.GetHashCode();
+
+
+ return hashCode;
+ }
+ }
}
///
diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs
index 7c49d7adb55c..4fc40c3323c3 100644
--- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs
+++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs
@@ -27,7 +27,7 @@ namespace Org.OpenAPITools.Model
///